Bug 11565 [QA Followup] - Hide checkout options when not in use
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / circulation.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% USE KohaDates %]
4 [% USE ColumnsSettings %]
5 [% USE ItemTypes %]
6 [% USE Price %]
7 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
8    [% SET exports_enabled = 1 %]
9 [% END %]
10 [% USE AuthorisedValues %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 [% SET destination = "circ" %]
13 <title>Koha &rsaquo; Circulation
14 [% IF borrowernumber and borrower%]
15   &rsaquo; Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
16 [% END %]
17 </title>
18 [% INCLUDE 'doc-head-close.inc' %]
19 [% INCLUDE 'calendar.inc' %]
20
21 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
22 [% INCLUDE 'strings.inc' %]
23 [% INCLUDE 'datatables.inc' %]
24 [% INCLUDE 'columns_settings.inc' %]
25 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
26 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
27 [% INCLUDE 'timepicker.inc' %]
28 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
29 <script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script>
30 <script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script>
31 <script type="text/javascript" src="[% themelang %]/js/holds.js"></script>
32 <script type="text/javascript">
33 //<![CDATA[
34 /* Set some variable needed in circulation.js */
35 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
36 var interface = "[% interface %]";
37 var theme = "[% theme %]";
38 var borrowernumber = "[% borrowernumber %]";
39 var branchcode = "[% branch %]";
40 var exports_enabled = "[% exports_enabled %]";
41 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
42 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %];
43 var script = "circulation";
44 var relatives_borrowernumbers = new Array();
45 [% FOREACH b IN relatives_borrowernumbers %]
46     relatives_borrowernumbers.push("[% b %]");
47 [% END %]
48
49 var MSG_ADD_MESSAGE = _("Add a new message");
50 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
51 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
52
53 columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %]
54
55 [% IF borrowernumber and borrower %]
56     if($.cookie("holdfor") != [% borrowernumber %]){
57         $.removeCookie("holdfor", { path: '/' });
58     }
59 [% ELSE %]
60     $.removeCookie("holdfor", { path: '/' });
61 [% END %]
62
63 [% UNLESS ( borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
64
65 // On-site checkout
66 function toggle_onsite_checkout(){
67     if ( $("#onsite_checkout").attr('checked') ) {
68         $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1%]")
69         [% IF !Koha.Preference('SpecifyDueDate') %]
70             $("#duedatespec").datetimepicker('destroy');
71         [% END %]
72     } else {
73         $("#duedatespec").datetimepicker({
74             onClose: function(dateText, inst) { $("#barcode").focus(); },
75             hour: 23,
76             minute: 59
77         });
78     }
79 }
80
81 function Dopop(link) {
82     var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
83 }
84 $(document).ready(function() {
85     $('#mainform').on('submit',function() {
86         if ($("#barcode") && $("#barcode").val()) {
87             $('#barcode').on('keypress',function(event) {
88                 $('#barcodeSubmittedModal').modal();
89                 event.preventDefault(); }
90             );
91         }
92     });
93
94     $(".clickable").click(function() {
95         window.document.location = $(this).data('url');
96     });
97
98     [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
99         // listen submit to trigger qslip on empty checkout
100         $('#mainform').bind('submit',function() {
101             if ($('#barcode').val() == '') {
102                 return printx_window( '[% CircAutoPrintQuickSlip %]' );
103             }
104         });
105     [% END %]
106     toggle_onsite_checkout();
107     $("#onsite_checkout").click(function(){
108         toggle_onsite_checkout();
109     });
110
111     var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
112         "aoColumnDefs": [
113             { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
114         ],
115         "aaSorting": [ 2, "asc" ],
116         "sDom": "t",
117         "iDisplayLength": -1
118     }));
119     $(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) {
120         $('#table_borrowers tbody tr').removeClass('selected');
121         $(this).addClass('selected');
122         if (event.target.type !== 'radio') {
123             $(':radio', this).attr('checked', 'true')
124         }
125     });
126
127 });
128
129 //]]>
130 </script>
131 </head>
132 <body id="circ_circulation" class="circ">
133
134 [% INCLUDE 'header.inc' %]
135 [% INCLUDE 'circ-search.inc' %]
136
137 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo;
138 [% IF borrowernumber and borrower %]
139     <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> &rsaquo; [% INCLUDE 'patron-title.inc' %]
140 [% ELSE %]
141     <strong>Checkouts</strong>
142 [% END %]
143 </div>
144 [% IF ( $borrowers ) %]
145 <div id="doc" class="yui-t7">
146
147    <div id="bd">
148         <div id="yui-main">
149         <div class="yui-g">
150 [% ELSE %]
151 <div id="doc3" class="yui-t2">
152
153    <div id="bd">
154         <div id="yui-main">
155         <div class="yui-b">
156 [% END %]
157
158 [% IF borrowernumber and borrower %]
159 [% INCLUDE 'members-toolbar.inc' %]
160 [% END %]
161
162 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
163 <div style="display: none;" id="add_message_form">
164 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
165 <fieldset id="borrower_messages" class="brief">
166 <legend>Leave a message</legend>
167         <ol>
168     <li>
169             <label for="message_type">Add a message for:</label>
170           <select name="message_type" id="message_type">
171             <option value="L">Staff - Internal note</option>
172             <option value="B">OPAC - [% firstname %] [% surname %]</option>
173         </select>
174     </li>
175     [% IF ( canned_bor_notes_loop ) %]
176         <li>
177                 <label for="type">Predefined notes: </label>
178                 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
179                     <option value="">Select note</option>
180                     [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
181                     <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
182                     [% END %]
183                 </select>
184         </li>
185     [% END %]
186     <li>
187         <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
188     </li>
189         </ol>
190     <fieldset class="action">
191         <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
192     </fieldset>
193
194         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
195         <input type="hidden" name="branchcode" value="[% branch %]" />
196 </fieldset>
197 </form>
198 </div>
199
200 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
201
202 [% IF additional_materials %]
203     <div id="materials" class="dialog message">Note about the accompanying materials: <br />
204     [% additional_materials %]
205     </div>
206 [% END %]
207
208 [% IF ( alert.ITEM_LOST ) %]
209     <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
210 [% END %]
211
212 [% IF ( alert.OTHER_CHARGES ) %]
213     <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]</div>
214 [% END %]
215
216 [% IF alert.HIGHHOLDS %]
217     <div class="dialog message">High demand item. <b>Loan period was not shortened due to override.</b> Shortened due date would have been [% alert.HIGHHOLDS.returndate %] ([% alert.HIGHHOLDS.duration %] days).</div>
218 [% END %]
219
220 [% IF ( NEEDSCONFIRMATION ) %]
221 <div class="yui-g">
222
223 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
224 [% IF CAN_user_circulate_force_checkout %]
225   <h3>Please confirm checkout</h3>
226 [% ELSE %]
227   <h3>Cannot check out</h3>
228 [% END %]
229
230 <ul>
231 [%IF ( AGE_RESTRICTION ) %]
232     <li>Age restriction [% AGE_RESTRICTION %].
233       [% IF CAN_user_circulate_force_checkout %]
234         Check out anyway?
235       [% END %]
236     </li>
237 [% END %]
238
239 [% IF ( DEBT ) %]
240     <li>The patron has a debt of [% DEBT %].</li>
241 [% END %]
242
243 [% IF ( DEBT_GUARANTEES ) %]
244     <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
245 [% END %]
246
247 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
248     <li>Rental charge for this item: [% RENTALCHARGE %]</li>
249 [% END %]
250
251 [% IF ( RENEW_ISSUE ) %]
252     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron.  Renew?</li>
253 [% END %]
254
255 [% IF ( RESERVE_WAITING ) %]
256     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber %]">[% resfirstname %] [% ressurname %]</a> ([% rescardnumber %]) at [% resbranchname %] since [% reswaitingdate | $KohaDates %]</li>
257 [% END %]
258
259 [% IF ( RESERVED ) %]
260     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber %]">[% resfirstname %] [% ressurname %]</a> ([% rescardnumber %]) at [% resbranchname %] since [% resreservedate | $KohaDates %]</li>
261 [% END %]
262
263 [% IF ( ISSUED_TO_ANOTHER ) %]
264     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber %]">[% issued_firstname %] [% issued_surname %]</a> ([% issued_cardnumber %]).
265       [% IF CAN_user_circulate_force_checkout %]
266         Check in and check out?
267       [% END %]
268     </li>
269 [% END %]
270
271 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
272     <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
273 [% END %]
274
275 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
276     <li>Too many on-site checked out. [% current_loan_count %] on-site checked out, only [% max_loans_allowed %] are allowed.</li>
277 [% END %]
278
279 [% IF ( BORRNOTSAMEBRANCH ) %]
280     <li>This patron is from a different library ([% BORRNOTSAMEBRANCH %])</li>
281 [% END %]
282
283 [% IF ( PATRON_CANT ) %]
284     <li>This patron can't check out this item per library circulation policy</li>
285 [% END %]
286
287 [% IF ( NOT_FOR_LOAN_FORCING ) %]
288     <li>
289     [% IF ( itemtype_notforloan ) %]
290         Item type is normally not for loan.
291     [% ELSIF ( item_notforloan ) %]
292         [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
293         Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
294     [% END %]
295       [% IF CAN_user_circulate_force_checkout %]
296         Check out anyway?
297       [% END %]
298     </li>
299 [% END %]
300
301 [% IF ( USERBLOCKEDOVERDUE ) %]
302     <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
303       [% IF CAN_user_circulate_force_checkout %]
304        Check out anyway?
305       [% END %]
306     </li>
307 [% END %]
308
309 [% IF ( ITEM_LOST ) %]
310     <li>This item has been lost with a status of "[% ITEM_LOST %]".
311       [% IF CAN_user_circulate_force_checkout %]
312         Check out anyway?
313       [% END %]
314     </li>
315 [% END %]
316
317 [% IF HIGHHOLDS %]
318     <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
319 [% END %]
320
321 [% IF BIBLIO_ALREADY_ISSUED %]
322   <li>
323     Patron has already checked out another item from this record.
324     [% IF CAN_user_circulate_force_checkout %]
325       Check out anyway?
326     [% END %]
327   </li>
328 [% END %]
329 </ul>
330
331 [% IF HIGHHOLDS %]
332 <script language="JavaScript" type="text/javascript">
333 $(document).ready(function() {
334     [% IF !override_high_holds %]
335         $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
336         if ('[% duedatespec %]' === '') {
337             $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
338         } else {
339             $("input[name=restoreduedatespec]:hidden").val('[% duedatespec %]');
340         }
341     [% END %]
342
343     $("#override_high_holds_tmp").on( 'change', function() {
344         if ( this.checked ) {
345             $("input[name=duedatespec]:hidden").val('');
346         }
347     });
348 });
349 </script>
350 [% END %]
351
352 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
353 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
354     <input type="hidden" name="restoreduedatespec" />
355
356 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
357
358 [% IF HIGHHOLDS %]
359     <p class="circ-override-high-holds">
360     <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
361     <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
362     </p>
363 [% END %]
364
365 [% IF ( RESERVED ) %]
366     <p>
367     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
368     <label for="cancelreserve">Cancel hold</label>
369     </p>
370 [% END %]
371
372 [% IF ( RESERVE_WAITING ) %]
373 <p>
374     <label for="cancelreserve">Cancel hold</label>
375     <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
376     <label for="revertreserve">Revert waiting status</label>
377     <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
378 </p>
379 [% END %]
380
381     <input type="hidden" name="barcode" value="[% barcode |html %]" />
382     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
383     <input type="hidden" name="issueconfirmed" value="1" />
384     <input type="hidden" name="override_high_holds" value="[% override_high_holds %]"/>
385     [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
386     [% IF ( INVALID_DATE ) %]
387     <p>
388     <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
389     <label for="duedatespec">Due date</label>
390     </p>
391     [% ELSE %]
392     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
393     [% END %]
394     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
395     <input type="hidden" name="branch" value="[% branch %]" />
396     [% IF ( RENEW_ISSUE ) %]
397     <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
398     [% ELSE %]
399     <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
400     [% END %]
401     <input type="hidden" name="onsite_checkout" value="[% onsite_checkout %]" />
402 </form>
403 [% END %]
404
405 [% IF ( RESERVED ) %]
406 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
407     <input type="hidden" name="restoreduedatespec" />
408     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
409     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
410     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
411     <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&amp;biblionumber=[% itembiblionumber %]&amp;op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
412 </form>
413 [% END %]
414
415 [% IF ( RESERVE_WAITING ) %]
416 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
417     <input type="hidden" name="restoreduedatespec" />
418     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
419     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
420     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
421     <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&amp;biblionumber=[% itembiblionumber %]&amp;op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
422 </form>
423 [% END %]
424
425 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
426     [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
427     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
428     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
429     <input type="hidden" name="restoreduedatespec" />
430     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
431     [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
432         [% IF ( RENEW_ISSUE ) %]
433         <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
434         [% ELSE %]
435         <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
436         [% END %]
437     [% ELSE %]
438         <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
439     [% END %]
440 </form>
441
442 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
443     [% UNLESS noissues %]
444         <button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber %]&borrowernumber=[% borrowernumber %]'"><i class="fa fa-times-circle"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
445     [% END %]
446 [% END %]
447 </div></div>
448 [% END %] <!-- NEEDSCONFIRMATION -->
449
450         [% IF ( IMPOSSIBLE ) %]
451
452 <div class="yui-g">
453 <div id="circ_impossible" class="dialog alert audio-alert-warning">
454 <!-- RESULT OF ISSUING REQUEST -->
455         <ul>
456         [% IF ( STATS ) %]
457             <li>Local use recorded</li>
458         [% END %]
459
460         [% IF ( INVALID_DATE ) %]
461             <li>The due date &quot;[% INVALID_DATE %]&quot; is invalid</li>
462         [% END %]
463
464         [% IF ( UNKNOWN_BARCODE ) %]
465             <li>The barcode was not found [% barcode |html %]
466             [% IF ( fast_cataloging ) %]
467                 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
468             <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&amp;barcode=[% barcode |uri %]&amp;circborrowernumber=[% borrowernumber %]&amp;branch=[% branch %]&amp;duedatespec=[% duedatespec %]&amp;stickyduedate=[% stickyduedate %]">Fast cataloging</a>
469                 [% END %]
470             [% END %]
471
472         [% IF ( FALLBACK ) %]
473             [% IF options %]
474                 <br />The following items were found by searching:
475                 [% FOREACH book IN options %]
476                     <br />
477                     <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
478                     [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
479                         <input type="hidden" name="restoreduedatespec" />
480                         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
481                         <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
482                         <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
483                         <input type="hidden" name="branch" value="[% branch %]" />
484                         <input type="hidden" name="barcode" value="[% book.barcode %]" />
485                         <button type="submit" name="x"><i class="fa fa-check"></i> Check out [% book.barcode %]: [% book.title %]</button>
486                     </form>
487                 [% END %]
488             [% ELSE %]
489                 <br />No items were found by searching.
490             [% END %]
491         [% END %]
492
493      </li>
494         [% END %]
495
496         [% IF ( NOT_FOR_LOAN ) %]
497             <li>
498             [% IF ( itemtype_notforloan ) %]
499                 Item type not for loan.
500             [% ELSIF ( item_notforloan ) %]
501                 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
502                 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
503             [% END %]
504             </li>
505         [% END %]
506
507         [% IF ( WTHDRAWN ) %]
508             <li>Item has been withdrawn</li>
509         [% END %]
510
511         [% IF ( RESTRICTED ) %]
512             <li>Item is restricted</li>
513         [% END %]
514
515         [% IF ( GNA ) %]
516             <li>Patron's address is in doubt</li>
517         [% END %]
518
519         [% IF ( CARD_LOST ) %]
520             <li>Patron's card is lost</li>
521         [% END %]
522
523         [% IF ( DEBARRED ) %]
524             <li>Patron is restricted</li>
525         [% END %]
526
527         [% IF ( NO_MORE_RENEWALS ) %]
528             <li>No more renewals possible</li>
529         [% END %]
530
531         [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
532             <li>This item can not be renewed, it's an on-site checkout</li>
533         [% END %]
534
535         [%IF ( AGE_RESTRICTION ) %]
536             <li>Age restriction [% AGE_RESTRICTION %].</li>
537         [% END %]
538
539         [% IF ( EXPIRED ) %]
540             <li>Patron's card is expired</li>
541         [% END %]
542
543         [% IF ( TOO_MANY ) %]
544             <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
545         [% END %]
546
547         [% IF ( ITEMNOTSAMEBRANCH ) %]
548             <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
549         [% END %]
550
551         [% IF ( USERBLOCKEDWITHENDDATE ) %]
552             <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
553         [% END %]
554
555         [% IF ( USERBLOCKEDNOENDDATE ) %]
556             <li>Patron has an indefinite restriction.</li>
557         [% END %]
558
559         [% IF ( USERBLOCKEDOVERDUE ) %]
560             <li>Checkouts are BLOCKED because patron has overdue items.</li>
561         [% END %]
562         </ul>
563
564         [% IF (forceallow) %]
565             <li>Restriction overridden temporarily.</li>
566         [% END %]
567
568 </div></div>
569 [% ELSE %]
570   [% IF (forceallow) %]
571       <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
572   [% END %]
573 [% END %] <!-- /impossible -->
574
575 <span class="audio-alert-success"></span>
576
577 [% IF ( issued ) %]
578 <p>Item checked out</p>
579 [% END %]
580
581 [% IF ( message ) %]
582 [% INCLUDE 'patron-toolbar.inc' %]
583 <h4>
584 No patron matched <span class="ex">[% message %]</span>
585 </h4>
586 [% END %]
587
588 [% IF ( borrowers ) %]
589 [% INCLUDE 'patron-toolbar.inc' %]
590
591 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
592     <input type="hidden" name="restoreduedatespec" />
593 <fieldset id="circ_circulation_selectborrower" class="brief">
594     <legend>Patron selection</legend>
595
596 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
597     <input type="hidden" name="branch" value="[% branch %]" />
598     <input type="hidden" name="printer" value="[% printer %]" />
599     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
600     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
601
602     <table id="table_borrowers" class="table_borrowers">
603         <thead>
604             <tr>
605                 <th>Name</th>
606                 <th>Cardnumber</th>
607                 <th>Category</th>
608                 <th>Library</th>
609                 <th>Address</th>
610             </tr>
611         </thead>
612         <tbody>
613             [% FOREACH borrower IN borrowers %]
614             <tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">
615                 <td>[% borrower.surname %], [% borrower.firstname %]</td>
616                 <td>[% borrower.cardnumber %]</td>
617                 <td>[% borrower.categorycode %]</td>
618                 <td>[% borrower.branchcode %]</td>
619                 <td>[% borrower.address %]</td>
620             </tr>
621             [% END %]
622         </tbody>
623     </table>
624 </fieldset>
625 </form>
626 [% ELSE %]
627
628 <!-- BARCODE ENTRY -->
629
630 [% IF borrowernumber and borrower %]
631 <div class="yui-g">
632
633 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
634     <div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div>
635 [% END %]
636
637 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
638 <div class="yui-u first">
639
640 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
641     <input type="hidden" name="restoreduedatespec" />
642 [% IF ( issue ) %]
643     <fieldset id="circ_circulation_issue" class="lastchecked">
644 [% ELSE %]
645     <fieldset id="circ_circulation_issue">
646 [% END %]
647     [% IF ( DisplayClearScreenButton ) %]
648         <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
649     [% END %]
650
651     [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
652
653     <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
654
655         <div class="hint">Enter item barcode:</div>
656
657     [% IF NEEDSCONFIRMATION %]
658         <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
659     [% ELSE %]
660         <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
661     [% END %]
662     <button type="submit" class="btn">Check out</button>
663
664     <div id="show-checkout-settings">
665         <a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
666     </div>
667
668     <div class="checkout-settings">
669
670         [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
671             [% IF ( SpecifyDueDate ) %]
672                 <div id="specify-due-date" class="checkout-setting">
673                     <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
674                     [% IF ( duedatespec ) %]
675                         <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
676                     [% ELSE %]
677                         <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
678                     [% END %]
679                     <label for="stickyduedate"> Remember for session:</label>
680                     [% IF ( stickyduedate ) %]
681                         <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
682                     [% ELSE %]
683                         <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
684                     [% END %]
685                     <button class="btn btn-small action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button>
686                 </div>
687             [% END %]
688         [% END %]
689
690         [% UNLESS ( noissues ) %]
691             <div id="set-automatic-renewal" class="checkout-setting">
692                 [% IF NEEDSCONFIRMATION %]
693                     <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
694                 [% ELSE %]
695                     <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
696                 [% END %]
697
698                 <label for="auto_renew">Automatic renewal</label>
699             </div>
700             [% IF Koha.Preference('decreaseLoanHighHolds') %]
701                 <div id="set_high_holds_overrride" class="checkout-setting">
702                     [% IF NEEDSCONFIRMATION %]
703                         [% IF override_high_holds %]
704                             <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
705                         [% ELSE %]
706                             <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
707                         [% END %]
708                     [% ELSE %]
709                         [% IF override_high_holds %]
710                             <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" checked="checked" />
711                         [% ELSE %]
712                             <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" />
713                         [% END %]
714                     [% END %]
715                     <label for="override_high_holds">Don't decrease checkout length based on holds</label>
716                 </div>
717             [% END %]
718         [% END %]
719
720         [% IF Koha.Preference('OnSiteCheckouts') %]
721             <div id="onsite_checkout-select" class="checkout-setting">
722                 [% IF noissues %]
723                     <div class="onsite-checkout-only">
724                         <input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label>
725                         <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
726                         <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
727                     </div>
728                 [% ELSE %]
729                     <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
730                 [% END %]
731             </div>
732         [% END %]
733
734     </div> <!-- /.checkout-settings -->
735
736           <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
737           <input type="hidden" name="branch" value="[% branch %]" />
738           <input type="hidden" name="printer" value="[% printer %]" />
739           <input type="hidden" name="print" value="maybe" />
740           <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
741                 [% IF ( CHARGES ) %]
742                         <input type="hidden" name="charges" value="yes" />
743                         <input type="hidden" name="oldamount" value="[% amountold %]" />
744                 [% END %]
745 </fieldset>
746 [% IF ( issue ) %]
747     <div class="lastchecked">
748         <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
749     </div>
750 [% END %]
751 </form></div>
752
753 [% END %]<!-- /unless noissues -->
754
755 [% IF ( noissues ) %]
756     [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
757         <div class="yui-u">
758     [% ELSE %]
759         <div>
760     [% END %]
761 [% ELSE %]
762     <div class="yui-u">
763 [% END %]
764
765         [% IF ( noissues ) %]
766             [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
767                 <div id="circmessages" class="circmessage attention">
768             [% ELSE %]
769                 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
770                 <div id="circmessages" class="circmessage warning">
771             [% END %]
772             <h3>
773                 Cannot check out!
774                 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
775                     <span class="circ-hlt">Only on-site checkouts are allowed</span>
776                 [% END %]
777             </h3>
778         [% ELSE %]
779             <div id="circmessages" class="circmessage attention">
780                 <h3>Attention:</h3>
781         [% END %]
782
783                 <ul>
784
785                    [% IF ( modifications ) %]
786                     <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
787                             [% IF CAN_user_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
788                                     <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
789                             [% END %]
790                    </li>
791                   [% END %]
792
793                         [% IF ( warndeparture ) %]
794                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
795             Patron's card expires on [% expiry | $KohaDates %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
796
797                         </li>
798                         [% END %]
799
800                         [% IF ( returnbeforeexpiry ) %]
801                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
802                          expiry date is before the date due, the date due will be set to the expiry date
803                          </li>
804                         [% END %]
805
806                         [% IF ( expired ) %]
807                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
808             [% IF ( expiry ) %]Patron's card expired on [% expiry | $KohaDates %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
809
810                         </li>
811                         [% END %]
812
813             [% IF ( gna ) %]
814                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
815                         [% END %]
816
817             [% IF ( lost ) %]
818                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
819                         [% END %]
820
821             [% IF ( userdebarred ) %]
822                <li class="blocker">
823                    <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
824
825                    [% IF ( userdebarreddate ) %]
826                        until [% userdebarreddate | $KohaDates %]
827                    [% END %]
828
829                    [% IF ( debarredcomment ) %]
830                        with the explanation: <br/><i>[% debarredcomment | html_line_break %]</i>
831                    [% END %]
832
833                    <br/>
834                    <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
835                     [% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
836                         <span class="override_debarment">
837                             <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&amp;borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a>
838                         </span>
839                     [% END %]
840                </li>
841             [% END %]
842
843                 [% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE</span>. See highlighted items <a href="#checkouts">below</a>[% END %]</li>
844             [% END %]
845
846             [% IF ( charges ) %]
847                 <li>
848                     <span class="circ-hlt">Fees &amp; Charges:</span> Patron has  <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Outstanding fees &amp; charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]</a>.
849                         [% IF ( charges_is_blocker ) %]
850                             <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
851                         [% END %]
852                     <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a> or
853                     <a href="/cgi-bin/koha/members/paycollect.pl?borrowernumber=[% borrowernumber %]">Pay all fines</a>
854                 </li>
855             [% END %]
856
857             [% IF ( charges_guarantees ) %]
858                 <li>
859                     <span class="circ-hlt">Fees &amp; Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees %].
860                         [% IF ( charges_guarantees_is_blocker ) %]
861                             <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
862                         [% END %]
863                 </li>
864             [% END %]
865
866
867             [% IF ( credits ) %]
868                 <li>
869                     <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
870                 </li>
871             [% END %]
872
873                         </ul>
874         </div>
875
876             [% IF WaitingHolds.count %]
877                 <div id="holdswaiting" class="circmessage">
878                     <h4>Holds waiting:</h4>
879                     [% FOREACH w IN WaitingHolds %]
880                         <ul>
881                             <li>
882                                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber %]">[% w.biblio.title | html %]</a>
883                                 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]),
884                                 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
885                                 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %]
886                                 Hold placed on [% w.reservedate | $KohaDates %].
887
888                                 <br/>
889                                 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode()  ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
890                                     [% SET waiting_expires_on = w.waiting_expires_on %]
891                                     Waiting at [% w.branch.branchname | html %] [% IF waiting_expires_on %] until [% waiting_expires_on | $KohaDates %] [% END %]
892                                 </strong>
893                             </li>
894                         </ul>
895                     [% END %]
896                 </div>
897             [% END %]
898
899         [% IF ( notes ) %]
900                         <div id="circnotes" class="circmessage">
901                         <h4>Notes:</h4>
902             <p><span class="circ-hlt">[% notesmsg %]</span></p>
903                         </div>
904
905
906     <!-- /If notes -->[% END %]
907
908     <div id="messages" class="circmessage">
909         <h4>Messages:</h4>
910         <ul>
911             [% FOREACH message IN librarian_messages %]
912                 <li>
913                     <span class="circ-hlt">
914                         [% message.message_date | $KohaDates %]
915                         [% Branches.GetName( message.branchcode ) %]
916                         <i>"[% message.message %]"</i>
917                     </span>
918                     [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
919                         <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&amp;borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);">[Delete]</a>
920                     [% END %]
921                 </li>
922             [% END %]
923             [% FOREACH message IN patron_messages %]
924                 <li><span class="">[% message.message_date | $KohaDates %] [% Branches.GetName( message.branchcode )%] <i>"[% message.message %]"</i></span>
925                 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
926                     <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&amp;borrowernumber=[% message.borrowernumber %]">[Delete]</a>
927                 [% END %]</li>
928             [% END %]
929         </ul>
930     </div>
931
932 </div>
933 </div>
934
935 <div class="yui-g"><div id="patronlists" class="toptabs">
936
937 <ul>
938     <li>
939         [% IF ( issuecount ) %]
940             <a href="#checkouts">[% issuecount %] Checkout(s)</a>
941         [% ELSE %]
942             <a href="#checkouts">0 Checkouts</a>
943         [% END %]
944     </li>
945
946     [% IF relatives_issues_count %]
947         <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
948     [% END %]
949
950     <li>
951         [% IF ( holds_count ) %]
952             <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
953         [% ELSE %]
954             <a href="#reserves" id="holds-tab">0 Holds</a>
955         [% END %]
956
957     <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
958 </ul>
959
960 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
961
962 [% INCLUDE "checkouts-table.inc" %]
963
964 [% IF ( relatives_issues_count ) %]
965     <div id="relatives-issues">
966         <table id="relatives-issues-table">
967             <thead>
968                 <tr>
969                     <th scope="col">Due date (unformatted, hidden)</th>
970                     <th scope="col">Due date</th>
971                     <th scope="col">Title</th>
972                     <th scope="col">Item type</th>
973                     <th scope="col">Location</th>
974                     <th scope="col">Checked out on</th>
975                     <th scope="col">Checked out from</th>
976                     <th scope="col">Call no</th>
977                     <th scope="col">Charge</th>
978                     <th scope="col">Fine</th>
979                     <th scope="col">Price</th>
980                     <th scope="col">Patron</th>
981                 </tr>
982             </thead>
983         </table>
984     </div>
985 [% END %]
986
987 [% INCLUDE borrower_debarments.inc %]
988
989 <div id="reserves">
990 [% IF ( holds_count ) %]
991     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
992         <input type="hidden" name="from" value="circ" />
993         <table id="holds-table" style="width: 100% !Important;">
994             <thead>
995                 <tr>
996                     <th>Hold date</th>
997                     <th>Title</th>
998                     <th>Call number</th>
999                     <th>Barcode</th>
1000                     <th>Pickup at</th>
1001                     <th>Expiration</th>
1002                     <th>Priority</th>
1003                     <th>Delete?</th>
1004                     <th>Suspend?</th>
1005                 </tr>
1006             </thead>
1007         </table>
1008
1009         <fieldset class="action">
1010             <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
1011         </fieldset>
1012     </form>
1013
1014     [% IF SuspendHoldsIntranet %]
1015     <fieldset class="action">
1016         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1017             <input type="hidden" name="from" value="circ" />
1018             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1019             <input type="submit" value="Suspend all holds" />
1020
1021             [% IF AutoResumeSuspendedHolds %]
1022             <label for="suspend_until">until</label>
1023             <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
1024             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1025              [% END %]
1026         </form>
1027     </fieldset>
1028
1029     <fieldset class="action">
1030         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1031             <input type="hidden" name="from" value="circ" />
1032             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1033             <input type="hidden" name="suspend" value="0" />
1034             <input type="submit" value="Resume all suspended holds" />
1035         </form>
1036     </fieldset>
1037     [% END # IF SuspendHoldsIntranet %]
1038
1039 [% ELSE %]
1040         <p>Patron has nothing on hold.</p>
1041 [% END %]
1042 </div> <!-- reservesloop -->
1043
1044 [% ELSIF borrowernumber %]
1045     <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
1046 [% END %] <!-- borrowernumber and borrower-->
1047 </div></div>
1048 [% END %]
1049
1050 </div>
1051 </div>
1052 [% UNLESS ( borrowers ) %][% IF borrowernumber and borrower %]<div class="yui-b">
1053 [% INCLUDE 'circ-menu.inc' %]
1054 </div>[% END %][% END %]
1055 </div>
1056 <!-- Modal -->
1057 <div id="barcodeSubmittedModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1058     <div class="modal-header">
1059         <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1060     </div>
1061
1062     <div class="modal-body">
1063         <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1064     </div>
1065 </div>
1066 [% INCLUDE 'intranet-bottom.inc' %]