[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for [% name %]</title>
+<title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% UNLESS ( closedate ) %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
-<script type="text/JavaScript">
+<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$("#orders").tablesorter({
10: { sorter: false }
}
});
+ $("#cancelledorderst").tablesorter();
});
-//]]>
-</script>
-<script type="text/javascript">
-//<![CDATA[
function confirm_close() {
var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
if (is_confirmed) {
window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
}
}
-//]]>
- </script>
-<script type="text/javascript">
-//<![CDATA[
function confirm_deletion() {
var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
if (is_confirmed) {
//]]>
</script>
[% ELSE %]
+<script type="text/javascript">
+//<![CDATA[
+ $(document).ready(function(){
+ $("#basketgroupid").change(function(){
+ if($(this).val() == "new"){
+ location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
+ }
+ });
+ });
+//]]>
+</script>
[% UNLESS ( grouped ) %]
<script type="text/javascript">
//<![CDATA[
[% INCLUDE 'acquisitions-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% name %]</a> › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for [% name %]</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% name|html %]</a> › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</div>
<div id="doc3" class="yui-t2">
<h3>Basket deleted</h3>
<META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
[% ELSE %]
- <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for <a href="supplier.pl?supplierid=[% booksellerid %]">[% name %]</a></h1>
+ <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?supplierid=[% booksellerid %]">[% name|html %]</a></h1>
[% IF ( delete_confirm ) %]
<h2>
<span class="yui-button yui-link-button">
</h2>
[% END %]
[% IF ( basketno ) %]
- <div id="acqui_basket_summary" class="yui-g">
- <h2>Basket details</h2>
- [% IF ( basketnote ) %]<p>Internal note: [% basketnote %]</p>[% END %]
- [% IF ( basketbooksellernote ) %]<p>Vendor note: [% basketbooksellernote %]</p>[% END %]
+ <div id="acqui_basket_summary" class="yui-g">
+ <div class="rows">
+ <div class="yui-u first">
+ <ol>
+ [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
+ [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
[% IF ( basketcontractno ) %]
- <p>Contract name: <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></p>
+ <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
[% END %]
- [% IF ( authorisedbyname ) %]<p>Managed by: [% authorisedbyname %]</p>[% END %]
- [% IF ( creationdate ) %]<p>Opened on: [% creationdate %]</p>[% END %]
+ [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
+ [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate %]</li>[% END %]
+ [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate %]</li>[% END %]
+
+ </ol>
+ </div>
[% IF ( closedate ) %]
- <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
- <p>Closed on: [% closedate %]</p>
- [% IF ( basketgroups ) %]
- <p> Basket group: <select id="basketgroupid" name="basketgroupid">
- [% FOREACH basketgroup IN basketgroups %]
- [% IF ( basketgroup.default ) %]
+ <div class="yui-u">
+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
+
+ <p><label for="basketgroupid"><strong>Basket group:</strong></label></p>
+ <p><select id="basketgroupid" name="basketgroupid">
+ <option value="new">Add new group</option>
+ [% FOREACH basketgroup IN basketgroups %]
+ [% IF ( basketgroup.default ) %]
<option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
- [% ELSE %]
+ [% ELSE %]
<option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
- [% END %]
- [% END %]
- </select>
- <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
+ [% END %]
+ [% END %]
+ </select></p>
+
+ <p><input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
<input type="hidden" value="mod_basket" name="op" />
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
- <input type="submit" value="Change basket group" />
- </p>
- </form>
- [% ELSE %]
- <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroups %]&basketgroupid=[% id %]">[% name %]</a>
- [% END %]
+ <input type="submit" value="Change basket group" /></p>
+
+ </form>
+ </div>
[% END %]
</div>
+ </div>
[% END %]
[% UNLESS ( delete_confirm ) %]
- <div id="acqui_basket_content">
+ <div id="acqui_basket_content" class="yui-g">
<h2>Order Details</h2>
[% IF ( books_loop ) %]
<table id="orders">
<tfoot>
[% IF ( GST ) %]
<tr>
- <th>Total Tax Exc.</th>
- <th>[% total_rrp_gste %]</th>
- <th> </th>
- <th>[% qty_total %]</th>
- <th>[% total_est_gste %]</th>
+ <th scope="row">Total Tax Exc.</th>
+ <td>[% total_rrp_gste %]</td>
+ <td> </td>
+ <td>[% qty_total %]</td>
+ <td>[% total_est_gste %]</td>
[% IF ( active ) %]
[% IF ( closedate ) %]
<td colspan="1" rowspan="3"> </td>
[% END %]
</tr>
<tr>
- <th>Tax ([% gist_rate %])</th>
- <th>[% gist_rrp %]</th>
- <th> </th>
- <th> </th>
- <th>[% gist_est %]</th>
+ <th scope="row">Tax ([% gist_rate %])</th>
+ <td>[% gist_rrp %]</td>
+ <td> </td>
+ <td> </td>
+ <td>[% gist_est %]</td>
</tr>
<tr>
- <th>Total Tax Inc. ([% currency %])</th>
- <th>[% total_rrp_gsti %]</th>
- <th> </th>
- <th>[% qty_total %]</th>
- <th>[% total_est_gsti %]</th>
+ <th scope="row">Total Tax Inc. ([% currency %])</th>
+ <td>[% total_rrp_gsti %]</td>
+ <td> </td>
+ <td>[% qty_total %]</td>
+ <td>[% total_est_gsti %]</td>
</tr>
[% ELSE %]
<tr>
- <th>Total ([% currency %])</th>
- <th>[% total_rrp_gsti %]</th>
- <th> </th>
- <th>[% qty_total %]</th>
- <th>[% total_est_gsti %]</th>
+ <th scope="row">Total ([% currency %])</th>
+ <td>[% total_rrp_gsti %]</td>
+ <td> </td>
+ <td>[% qty_total %]</td>
+ <td>[% total_est_gsti %]</td>
</tr>
[% END %]
</tfoot>
[% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
[% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
[% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
+ [% IF ( books_loo.suggestionid ) %]
+ <br/>
+ Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
+ (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]">suggestion #[% books_loo.suggestionid %]</a>)
+ [% END %]
+ [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
</p>
</td>
<td class="number">[% books_loo.rrp %]</td>
[% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
[% END %]
</div>
+ [% IF (cancelledorders_loop) %]
+ <div id="cancelledorders">
+ <h2>Cancelled orders</h2>
+ <table id="cancelledorderst">
+ <thead>
+ <tr>
+ <th>Order</th>
+ <th>RRP</th>
+ <th>Est.</th>
+ <th>Qty.</th>
+ <th>Total</th>
+ <th>Fund</th>
+ </tr>
+ </thead>
+ <tbody>
+ [% FOREACH order IN cancelledorders_loop %]
+ <tr style="color:grey">
+ <td>
+ <p>
+ [% IF ( order.order_received ) %] (rcvd)[% END %]
+ [% IF (order.title) %]
+ [% order.title |html %] by [% order.author %]<br />
+ [% ELSE %]
+ <em>Deleted bibliographic record, can't find title</em><br />
+ [% END %]
+ [% IF ( order.notes ) %] [% order.notes %][% END %]
+ [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
+ [% IF ( order.issn ) %] - [% order.issn %][% END %]
+ [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
+ [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
+ [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
+ </p>
+ </td>
+ <td><p>[% order.rrp %]</p></td>
+ <td><p>[% order.ecost %]</p></td>
+ <td><p>[% order.quantity %]</p></td>
+ <td><p>[% order.line_total %]</p></td>
+ <td><p>[% order.budget_name %]</p></td>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
+ </div>
+ [% END %]
<br />
[% UNLESS ( closedate ) %]
[% INCLUDE 'acquisitions-add-to-basket.inc' %]
<div id="closebasket_needsconfirmation" class="dialog alert">
<form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
- <h1>Are you sure you want to close basket [% basketname %]?</h1>
+ <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
<p>
<label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
<input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>