2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
9 function updateColumnsVisibility(visible) {
11 $("table .gste, .gsti").show();
13 [% IF ( listincgst ) %]
14 $("table .gste").hide();
16 $("table .gsti").hide();
21 $(document).ready(function() {
22 $("#show_all_details").click(function(){
23 updateColumnsVisibility($(this+":checked").val());
26 $("#show_all_details").attr('checked', false);
27 updateColumnsVisibility(false);
28 [% UNLESS ( closedate ) %]
29 $('#addtoBasket').on('show', function () {
30 $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML);
37 [% UNLESS ( closedate ) %]
38 <script type="text/javascript">
40 function confirm_close() {
41 var is_confirmed = confirm(_("Are you sure you want to close this basket?"));
43 window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
47 function delete_basket(basketno,booksellerid,delbiblio) {
48 window.location = "[% script_name %]?op=delete_confirm&delbiblio="+delbiblio+"&basketno="+basketno+"&booksellerid="+booksellerid;
51 function confirm_delete_item(ordernumber, biblionumber) {
52 var is_confirmed = confirm(_("Are you sure you want to delete this order ?"));
54 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
58 function confirm_delete_biblio(ordernumber, biblionumber) {
59 var is_confirmed = confirm(_("Are you sure you want to delete this catalog record and order ?"));
61 window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
65 function transfer_order_popup(ordernumber) {
66 var url = "/cgi-bin/koha/acqui/transferorder.pl?"
67 + "ordernumber=" + ordernumber
68 window.open(url, 'TransferOrder','width=600,height=400,toolbar=false,scrollbars=yes');
74 <script type="text/javascript">
76 $(document).ready(function(){
77 $("#basketgroupid").change(function(){
78 if($(this).val() == "new"){
79 location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
85 [% UNLESS ( grouped ) %]
86 <script type="text/javascript">
88 function confirm_reopen() {
89 var skip = [% IF ( skip_confirm_reopen ) %] 1 [% ELSE %] 0 [% END %];
90 var is_confirmed = skip || confirm(_("Are you sure you want to reopen this basket?"));
92 window.location = "[% script_name %]?op=reopen&basketno=[% basketno %]";
99 <script type="text/javascript">
101 $(document).ready(function() {
102 var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
103 "sPaginationType": "four_button",
105 [% UNLESS ( closedate ) %]
107 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
112 var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
113 "sPaginationType": "four_button"
115 $("#reopenbutton").on("click",function(e){
121 function basketUserSearchPopup(f) {
123 "/cgi-bin/koha/acqui/aqbasketuser_search.pl",
124 'BasketUserSearchPopup',
125 'width=740,height=450,toolbar=no,'
129 function add_basket_user(borrowernumber, borrowername) {
130 var ids = $("#basketusers_ids").val();
132 ids = ids.split(':');
136 if (ids.indexOf(borrowernumber) < 0) {
137 ids.push(borrowernumber);
138 $("#basketusers_ids").val(ids.join(':'));
139 var li = '<li id="user_'+borrowernumber+'">'+borrowername
140 + ' [<a style="cursor:pointer" onclick="del_basket_user('+borrowernumber+');">'
141 + _("Delete user") + '</a>]</li>';
142 $("#basketusers_names").append(li);
148 function del_basket_user(borrowernumber) {
149 $("#user_"+borrowernumber).remove();
150 var ids = $("#basketusers_ids").val().split(':');
151 ids.splice(ids.indexOf(borrowernumber.toString()), 1);
152 $("#basketusers_ids").val(ids.join(':'));
156 <style type="text/css">
157 .sortmsg {font-size: 80%;}
160 <body id="acq_basket" class="acq">
161 [% INCLUDE 'header.inc' %]
162 [% INCLUDE 'acquisitions-search.inc' %]
165 <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>
167 <div id="doc3" class="yui-t2">
171 [% IF (cannot_manage_basket) %]
173 <p class="error">You are not authorised to manage this basket.</p>
177 [% UNLESS ( confirm_close ) %]
178 [% UNLESS ( selectbasketg ) %]
179 [% UNLESS ( closedate ) %]
180 <div id="toolbar" class="btn-toolbar">
181 <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-small" data-toggle="modal"><i class="icon-plus"></i> Add to basket</a></div>
182 <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&op=add_form" class="btn btn-small" id="basketheadbutton"><i class="icon-pencil"></i> Edit basket</a></div>
183 <div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-small" data-toggle="modal" id="delbasketbutton"><i class="icon-remove"></i> Delete this basket</a></div>
184 [% IF ( unclosable ) %]
185 [% ELSIF ( uncertainprices ) %]
186 <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="btn btn-small" id="uncertpricesbutton">Uncertain prices</a></div>
188 <div class="btn-group">
189 <a href="[% script_name %]?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="closebutton"><i class="icon-remove-sign"></i> Close this basket</a>
192 <div class="btn-group"><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="icon-download"></i> Export this basket as CSV</a></div>
194 <!-- Modal for confirm deletion box-->
195 <div class="modal hide" id="deleteBasketModal" tabindex="-1" role="dialog" aria-labelledby="delbasketModalLabel" aria-hidden="true">
196 <div class="modal-header">
197 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
198 <h3>Confirm deletion</h3>
200 <div class="modal-body">
201 <p>Are you sure you want to delete this basket?</p>
203 <p>All orders of this basket will be cancelled and used funds will be refunded.</p>
204 <p>If items have been created at ordering or receipt stage, they will be deleted.</p>
205 <p>You can choose to delete records if possible (if they don't have any item attached, any subscription and any other order).</p>
207 <div class="modal-footer">
208 <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
209 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],0); return false;" >Delete basket and orders</button>
210 <button type="submit" class="btn btn-default" onclick="delete_basket([% basketno %],[% booksellerid %],1); return false;">Delete basket, orders and records</button>
215 [% UNLESS ( grouped ) %]
216 <div id="toolbar" class="btn-toolbar">
217 <div class="btn-group"><a href="#" class="btn btn-small" id="reopenbutton"><i class="icon-refresh"></i> Reopen this basket</a></div>
218 <div class="btn-group"><a href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="exportbutton"><i class="icon-download"></i> Export this basket as CSV</a></div>
224 [% IF ( NO_BOOKSELLER ) %]
225 <h2>Vendor not found</h2>
227 [% IF ( delete_confirmed ) %]
228 <h3>Basket deleted</h3>
229 <META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
231 <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>
232 [% IF ( delete_confirm ) %]
234 <span class="yui-button yui-link-button">
235 <em class="first-child">
236 <a href="[% script_name %]?op=delete_confirm&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="yui-link-button">Yes, delete this basket!</a>
239 <span class="yui-button yui-link-button">
240 <em class="first-child">
241 <a href="[% script_name %]?basketno=[% basketno %]" class="yui-link-button">Cancel</a>
246 [% IF ( basketno ) %]
247 <div id="acqui_basket_summary" class="yui-g">
249 <div class="yui-u first">
251 [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
252 [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
253 [% IF ( basketcontractno ) %]
254 <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
256 [% IF ( deliveryplace ) %]<li><span class="label">Delivery place:</span> [% deliveryplace %]</li>[% END %]
257 [% IF ( billingplace ) %]<li><span class="label">Billing place:</span> [% billingplace %]</li>[% END %]
258 [% IF ( authorisedbyname ) %]<li><span class="label">Created by:</span> [% authorisedbyname %]</li>[% END %]
260 <form action="" method="post">
261 <span class="label">Managed by:</span>
262 <div style="float:left">
263 <ul id="basketusers_names" style="padding-left:0">
264 [% FOREACH user IN basketusers %]
265 <li id="user_[% user.borrowernumber %]">
266 [% user.firstname %] [% user.surname %]
267 [<a onclick="del_basket_user([% user.borrowernumber %]);" style="cursor:pointer">Delete user</a>]
271 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
272 <input type="hidden" id="basketusers_ids" name="basketusers_ids" value="[% basketusers_ids %]" />
273 <input type="hidden" id="op" name="op" value="mod_users" />
274 <input type="button" id="add_user" onclick="basketUserSearchPopup();" value="Add user" />
275 <input type="submit" value="Save changes" />
280 <span class="label">Branch:</span>
281 [% IF basketbranchname %]
282 [% basketbranchname %]
286 [% IF branches_loop.size %]
287 <form action="" method="post">
288 <select id="branch" name="branch">
289 <option value="">(no branch)</option>
290 [% FOREACH branch IN branches_loop %]
291 [% IF (branch.selected) %]
292 <option selected="selected" value="[% branch.branchcode %]"> [% branch.branchname %]</option>
294 <option value="[% branch.branchcode %]"> [% branch.branchname %]</option>
298 <input type="hidden" id="basketno" name="basketno" value="[% basketno %]" />
299 <input type="hidden" id="op" name="op" value="mod_branch" />
300 <input type="submit" value="Change" />
304 [% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate | $KohaDates %]</li>[% END %]
305 [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
306 [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates %]</li>[% END %]
310 [% IF ( closedate ) %]
312 [% IF ( CAN_user_acquisition_group_manage ) %]
313 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
317 <span class="label">Basket group:</span>
318 [% IF basketgroup.closed %]
319 [% basketgroup.name %] (closed)
320 [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
321 [%- IF basketgroup.name -%]
322 [% basketgroup.name %]
327 <select id="basketgroupid" name="basketgroupid">
328 <option value="new">Add new group</option>
329 [% FOREACH bg IN basketgroups %]
330 [% IF ( bg.default ) %]
331 <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
333 [% UNLESS bg.closed %]
334 <option value="[% bg.id %]">[% bg.name %]</option>
336 <option value="[% bg.id %]" disabled="disabled">[% bg.name %] (closed)</option>
341 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
342 <input type="hidden" value="mod_basket" name="op" />
343 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
344 <input type="submit" value="Change basket group" />
347 [% IF ( basketgroup.deliveryplacename ) %]<li><span class="label">Basket group delivery placename:</span> [% basketgroup.deliveryplacename %]</li>[% END %]
348 [% IF ( basketgroup.billingplacename ) %]<li><span class="label">Basket group billing place:</span> [% basketgroup.billingplacename %]</li>[% END %]
350 [% IF ( CAN_user_acquisition_group_manage ) %]
359 [% UNLESS ( delete_confirm ) %]
360 <div id="acqui_basket_content" class="yui-g">
361 [% IF ( books_loop ) %]
363 <label for="show_all_details">
364 <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
371 <th class="gste">RRP tax exc.</th>
372 <th class="gste">ecost tax exc.</th>
373 <th class="gsti">RRP tax inc.</th>
374 <th class="gsti">ecost tax inc.</th>
376 <th class="gste">Total tax exc. ([% currency %])</th>
377 <th class="gsti">Total tax inc. ([% currency %])</th>
382 [% UNLESS ( closedate ) %]
390 [% FOREACH foot_loo IN book_foot_loop %]
392 <th>Total (GST [% foot_loo.gstgsti %])</th>
393 <th class="gste"> </th>
394 <th class="gste"> </th>
395 <th class="gsti"> </th>
396 <th class="gsti"> </th>
397 <th>[% foot_loo.quantity %]</th>
398 <th class="gste">[% foot_loo.totalgste %]</th>
399 <th class="gsti">[% foot_loo.totalgsti %]</th>
401 <th>[% foot_loo.gstvalue %]</th>
404 [% UNLESS ( closedate ) %]
412 <th>Total ([% currency %])</th>
413 <th class="gste"> </th>
414 <th class="gste"> </th>
415 <th class="gsti"> </th>
416 <th class="gsti"> </th>
417 <th>[% total_quantity %]</th>
418 <th class="gste">[% total_gste %]</th>
419 <th class="gsti">[% total_gsti %]</th>
421 <th>[% total_gstvalue %]</th>
424 [% UNLESS ( closedate ) %]
432 [% FOREACH books_loo IN books_loop %]
433 [% IF ( books_loo.order_received ) %]<tr class="disabled">[% ELSE %][% IF ( books_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %][% END %]
435 <p>[% IF ( books_loo.order_received ) %] (rcvd)[% END %]
436 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a> by [% books_loo.author %]
438 [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
439 [% IF ( books_loo.issn ) %] - [% books_loo.issn %][% END %]
440 [% IF ( books_loo.publishercode ) %], [% books_loo.publishercode %][% END %]
441 [% IF ( books_loo.publicationyear ) %], [% books_loo.publicationyear %][% END %]
442 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
443 [% IF ( books_loo.suggestionid ) %]
445 Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
446 (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">suggestion #[% books_loo.suggestionid %]</a>)
449 [% IF ( books_loo.notes ) %]
450 <p class="ordernote"><strong>Note: </strong>[% books_loo.notes|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Change note</a>]</p>
452 <p>[<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]">Add note</a>]</p>
454 [% IF (books_loo.transferred_from) %]
455 [% basket = books_loo.transferred_from.basket %]
456 [% bookseller = books_loo.transferred_from.bookseller %]
457 [% timestamp = books_loo.transferred_from.timestamp %]
459 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">basket: [% basket.basketname %]</a>
460 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
461 on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
462 [% timestamp | $KohaDates %]
467 [% SET zero_regex = "^0{1,}\.?0{1,}[^1-9]" %] [%# 0 or 0.0 or 0.00 or 00 or 00.0 or 00.00 or 0.000 ... %]
468 [%# FIXME: use of a regexp is not ideal; bugs 9410 and 10929 suggest better way of handling this %]
469 <td class="number gste [% IF books_loo.rrpgste.search(zero_regex) %]error[% END %]">[% books_loo.rrpgste %]</td>
470 <td class="number gste [% IF books_loo.ecostgste.search(zero_regex) %]error[% END %]">[% books_loo.ecostgste %]</td>
471 <td class="number gsti [% IF books_loo.rrpgsti.search(zero_regex) %]error[% END %]">[% books_loo.rrpgsti %]</td>
472 <td class="number gsti [% IF books_loo.ecostgsti.search(zero_regex) %]error[% END %]">[% books_loo.ecostgsti %]</td>
473 <td class="number [% IF books_loo.quantity.search(zero_regex) %]error[% END %]">[% books_loo.quantity %]</td>
474 <td class="number gste [% IF books_loo.totalgste.search(zero_regex) %]error[% END %]">[% books_loo.totalgste %]</td>
475 <td class="number gsti [% IF books_loo.totalgsti.search(zero_regex) %]error[% END %]">[% books_loo.totalgsti %]</td>
476 <td class="number [% IF books_loo.gstgsti.search(zero_regex) %]error[% END %]">[% books_loo.gstgsti %]</td>
477 <td class="number [% IF books_loo.gstvalue.search(zero_regex) %]error[% END %]">[% books_loo.gstvalue %]</td>
478 <td>[% books_loo.budget_name %]</td>
480 [% UNLESS ( closedate ) %]
482 <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Modify</a>
483 [% UNLESS (books_loo.order_received) %]
485 <a href="#" onclick="transfer_order_popup([% books_loo.ordernumber %]); return false;">Transfer</a>
489 [% IF ( books_loo.left_holds_on_order ) %]
490 <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>
492 <a href="javascript:confirm_delete_item([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order</a><br>
494 [% IF ( books_loo.can_del_bib ) %]
495 <a href="javascript:confirm_delete_biblio([% books_loo.ordernumber %],[% books_loo.biblionumber %])" class="button">Delete order and catalog record</a><br>
497 <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
499 [% IF ( books_loo.left_item ) %]
500 <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
502 [% IF ( books_loo.left_biblio ) %]
503 <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
505 [% IF ( books_loo.left_subscription ) %]
506 <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
508 [% IF ( books_loo.left_holds ) %]
509 <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
519 [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
522 [% IF (cancelledorders_loop) %]
523 <div id="cancelledorders">
524 <h2>Cancelled orders</h2>
525 <table id="cancelledorderst">
529 <th class="gste">RRP tax exc.</th>
530 <th class="gste">ecost tax exc.</th>
531 <th class="gsti">RRP tax inc.</th>
532 <th class="gsti">ecost tax inc.</th>
534 <th class="gste">Total tax exc. ([% currency %])</th>
535 <th class="gsti">Total tax inc. ([% currency %])</th>
542 [% FOREACH order IN cancelledorders_loop %]
543 <tr style="color:grey">
546 [% IF ( order.order_received ) %] (rcvd)[% END %]
547 [% IF (order.title) %]
548 [% order.title |html %] by [% order.author %]<br />
550 <em>Deleted bibliographic record, can't find title</em><br />
552 [% IF ( order.notes ) %] [% order.notes %][% END %]
553 [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
554 [% IF ( order.issn ) %] - [% order.issn %][% END %]
555 [% IF ( order.publishercode ) %], [% order.publishercode %][% END %]
556 [% IF ( order.publicationyear ) %], [% order.publicationyear %][% END %]
557 [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
559 [% IF order.transferred_to %]
560 [% basket = order.transferred_to.basket %]
561 [% bookseller = order.transferred_to.bookseller %]
562 [% timestamp = order.transferred_to.timestamp %]
564 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">basket: [% basket.basketname %]</a>
565 (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
566 on <span title="[% timestamp | $KohaDates with_hours = 1%]">
567 [% timestamp | $KohaDates %]
572 <td class="number gste">[% order.rrpgste %]</td>
573 <td class="number gste">[% order.ecostgste %]</td>
574 <td class="number gsti">[% order.rrpgsti %]</td>
575 <td class="number gsti">[% order.ecostgsti %]</td>
576 <td class="number">[% order.quantity %]</td>
577 <td class="number gste">[% order.totalgste %]</td>
578 <td class="number gsti">[% order.totalgsti %]</td>
579 <td class="number">[% order.gstgsti %]</td>
580 <td class="number">[% order.gstvalue %]</td>
581 <td>[% order.budget_name %]
589 [% UNLESS ( closedate ) %]
592 <div id="addtoBasket" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel" aria-hidden="true">
593 <div class="modal-body"></div>
594 <div class="modal-footer">
595 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
599 [% INCLUDE 'acquisitions-add-to-basket.inc' %]
603 [% END %] [% ELSE %] <!-- if we want just to select a basketgroup for a closed basket -->
605 [% IF ( confirm_close ) %]
606 <div id="closebasket_needsconfirmation" class="dialog alert">
608 <form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
609 <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
610 [% IF ( CAN_user_acquisition_group_manage ) %]
612 <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
613 <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
616 <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
617 <input type="hidden" value="close" name="op" />
618 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
619 <input type="hidden" name="confirm" value="1" />
620 <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
621 <input type="submit" class="approve" value="Yes, close (Y)" accesskey="y" />
622 <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;" />
627 [% END %][%# IF (cannot_manage_basket) %]
630 [% INCLUDE 'acquisitions-menu.inc' %]
633 [% INCLUDE 'intranet-bottom.inc' %]