1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% UNLESS ( closedate ) %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script type="text/javascript">
8 $(document).ready(function() {
9 $("#orders").tablesorter({
15 $("#cancelledorderst").tablesorter();
17 function confirm_close() {
18 var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
20 window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
23 function confirm_deletion() {
24 var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
26 window.location = "[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]";
29 function confirm_delete_item(ordernumber, biblionumber) {
30 var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
32 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
36 function confirm_delete_biblio(ordernumber, biblionumber) {
37 var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
39 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
46 <script type="text/javascript">
48 $(document).ready(function(){
49 $("#basketgroupid").change(function(){
50 if($(this).val() == "new"){
51 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
57 [% UNLESS ( grouped ) %]
58 <script type="text/javascript">
60 function confirm_reopen(skip) {
61 var is_confirmed = skip || confirm(_('Are you sure you want to reopen this basket?'));
63 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
70 <style type="text/css">
71 .sortmsg {font-size: 80%;}
75 [% INCLUDE 'header.inc' %]
76 [% INCLUDE 'acquisitions-search.inc' %]
79 <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?booksellerid=[% booksellerid %]">[% name|html %]</a> › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</div>
81 <div id="doc3" class="yui-t2">
86 [% UNLESS ( confirm_close ) %]
87 [% UNLESS ( selectbasketg ) %]
88 [% UNLESS ( closedate ) %]
90 <script type="text/javascript">
92 // prepare DOM for YUI Toolbar
93 $(document).ready(function() {
96 // YUI Toolbar Functions
97 function yuiToolbar() {
98 [% IF ( unclosable ) %]
99 new YAHOO.widget.Button("closebutton", {disabled:true});
100 [% ELSIF ( uncertainprices ) %]
101 new YAHOO.widget.Button("uncertpricesbutton");
103 new YAHOO.widget.Button("closebutton");
105 new YAHOO.widget.Button("basketheadbutton");
106 new YAHOO.widget.Button("exportbutton");
107 new YAHOO.widget.Button("delbasketbutton");
112 <ul id="toolbar-list" class="toolbar">
113 <li><a href="basketheader.pl?basketno=[% basketno %]&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
114 <li><a href="javascript:confirm_deletion();" class="button" id="delbasketbutton">Delete this basket</a></li>
115 [% IF ( unclosable ) %]
116 [% ELSIF ( uncertainprices ) %]
117 <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
119 <li><a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="closebutton">Close this basket</a></li>
121 <li><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="button" id="exportbutton">Export this basket as CSV</a></li>
126 [% UNLESS ( grouped ) %]
128 <script type="text/javascript">
130 // prepare DOM for YUI Toolbar
131 $(document).ready(function() {
134 // YUI Toolbar Functions
135 function yuiToolbar() {
136 new YAHOO.widget.Button("reopenbutton");
140 <ul id="toolbar-list" class="toolbar">
141 <li><a href="javascript:confirm_reopen([% skip_confirm_reopen %]);" class="button" id="reopenbutton">Reopen this basket</a></li>
148 [% IF ( NO_BOOKSELLER ) %]
149 <h2>Vendor not found</h2>
151 [% IF ( delete_confirmed ) %]
152 <h3>Basket deleted</h3>
153 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
155 <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?booksellerid=[% booksellerid %]">[% name|html %]</a></h1>
156 [% IF ( delete_confirm ) %]
158 <span class="yui-button yui-link-button">
159 <em class="first-child">
160 <a href="[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="yui-link-button">Yes, delete this basket!</a>
163 <span class="yui-button yui-link-button">
164 <em class="first-child">
165 <a href="[% script_name %]?basketno=[% basketno %]" class="yui-link-button">Cancel</a>
170 [% IF ( basketno ) %]
171 <div id="acqui_basket_summary" class="yui-g">
173 <div class="yui-u first">
175 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
176 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
177 [% IF ( basketcontractno ) %]
178 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
180 [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
181 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate %]</li>[% END %]
182 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate %]</li>[% END %]
186 [% IF ( closedate ) %]
188 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
190 <p><label for="basketgroupid"><strong>Basket group:</strong></label></p>
191 <p><select id="basketgroupid" name="basketgroupid">
192 <option value="new">Add new group</option>
193 [% FOREACH basketgroup IN basketgroups %]
194 [% IF ( basketgroup.default ) %]
195 <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
197 <option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
202 <p><input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
203 <input type="hidden" value="mod_basket" name="op" />
204 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
205 <input type="submit" value="Change basket group" /></p>
214 [% UNLESS ( delete_confirm ) %]
215 <div id="acqui_basket_content" class="yui-g">
216 <h2>Order Details</h2>
217 [% IF ( books_loop ) %]
228 [% UNLESS ( closedate ) %]
238 <th scope="row">Total Tax Exc.</th>
239 <td>[% total_rrp_gste %]</td>
241 <td>[% qty_total %]</td>
242 <td>[% total_est_gste %]</td>
244 [% IF ( closedate ) %]
245 <td colspan="1" rowspan="3"> </td>
247 <td colspan="3" rowspan="3"> </td>
252 <th scope="row">Tax ([% gist_rate %])</th>
253 <td>[% gist_rrp %]</td>
256 <td>[% gist_est %]</td>
259 <th scope="row">Total Tax Inc. ([% currency %])</th>
260 <td>[% total_rrp_gsti %]</td>
262 <td>[% qty_total %]</td>
263 <td>[% total_est_gsti %]</td>
267 <th scope="row">Total ([% currency %])</th>
268 <td>[% total_rrp_gsti %]</td>
270 <td>[% qty_total %]</td>
271 <td>[% total_est_gsti %]</td>
276 [% FOREACH books_loo IN books_loop %]
277 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
279 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
280 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
281 [% IF ( books_loo.notes ) %] [% books_loo.notes %][% END %]
282 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
283 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
284 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
285 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
286 [% IF ( books_loo.suggestionid ) %]
288 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
289 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
291 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
294 <td class="number">[% books_loo.rrp %]</td>
295 <td class="number">[% books_loo.ecost %]</td>
296 <td class="number">[% books_loo.quantity %]</td>
297 <td class="number">[% books_loo.line_total %]</td>
298 <td>[% books_loo.budget_name %]</td>
300 [% UNLESS ( closedate ) %]
302 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
305 [% IF ( books_loo.left_holds_on_order ) %]
306 <span class="button" title="Can't delete order, ([% books_loo.holds_on_order %]) holds are linked with this order cancel holds first">Can't delete order</span><br>
308 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order</a><br>
310 [% IF ( books_loo.can_del_bib ) %]
311 <a href="javascript:confirm_delete_biblio([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order and catalog record</a><br>
313 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
315 [% IF ( books_loo.left_item ) %]
316 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
318 [% IF ( books_loo.left_biblio ) %]
319 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
321 [% IF ( books_loo.left_subscription ) %]
322 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
324 [% IF ( books_loo.left_holds ) %]
325 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
336 <tr><td>Basket empty</td></tr>
339 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
342 [% IF (cancelledorders_loop) %]
343 <div id="cancelledorders">
344 <h2>Cancelled orders</h2>
345 <table id="cancelledorderst">
357 [% FOREACH order IN cancelledorders_loop %]
358 <tr style="color:grey">
361 [% IF ( order.order_received ) %] (rcvd)[% END %]
362 [% IF (order.title) %]
363 [% order.title |html %] by [% order.author %]<br />
365 <em>Deleted bibliographic record, can't find title</em><br />
367 [% IF ( order.notes ) %] [% order.notes %][% END %]
368 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
369 [% IF ( order.issn ) %] - [% order.issn %][% END %]
370 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
371 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
372 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
375 <td><p>[% order.rrp %]</p></td>
376 <td><p>[% order.ecost %]</p></td>
377 <td><p>[% order.quantity %]</p></td>
378 <td><p>[% order.line_total %]</p></td>
379 <td><p>[% order.budget_name %]</p></td>
387 [% UNLESS ( closedate ) %]
388 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
392 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
394 [% IF ( confirm_close ) %]
395 <div id="closebasket_needsconfirmation" class="dialog alert">
397 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
398 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
400 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
401 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
403 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
404 <input type="hidden" value="close" name="op" />
405 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
406 <input type="hidden" name="confirm" value="1" />
407 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
408 <input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
409 <input type="submit" class="deny" value="No, Don't Close (N)" accesskey="n" onclick="javascript:window.location='/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]';return false;" />
416 [% INCLUDE 'acquisitions-menu.inc' %]
419 [% INCLUDE 'intranet-bottom.inc' %]