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