5 [% USE ColumnsSettings %]
8 [% USE AuthorisedValues %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 [% SET destination = "circ" %]
11 <title>Koha › Circulation
12 [% IF borrowernumber and borrower%]
13 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %]
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% INCLUDE 'calendar.inc' %]
19 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
20 [% INCLUDE 'strings.inc' %]
21 [% INCLUDE 'datatables.inc' %]
22 [% INCLUDE 'columns_settings.inc' %]
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
24 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
25 [% INCLUDE 'timepicker.inc' %]
26 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
27 <script type="text/javascript" src="[% interface %]/[% theme %]/js/pages/circulation.js"></script>
28 <script type="text/javascript" src="[% interface %]/[% theme %]/js/checkouts.js"></script>
29 <script type="text/javascript" src="[% interface %]/[% theme %]/js/holds.js"></script>
30 <script type="text/javascript">
32 /* Set some variable needed in circulation.js */
33 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
34 var interface = "[% interface %]";
35 var theme = "[% theme %]";
36 var borrowernumber = "[% borrowernumber %]";
37 var branchcode = "[% branch %]";
38 var exports_enabled = "[% Koha.Preference('ExportCircHistory') %]";
39 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
40 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %];
41 var script = "circulation";
42 var relatives_borrowernumbers = new Array();
43 [% FOREACH b IN relatives_borrowernumbers %]
44 relatives_borrowernumbers.push("[% b %]");
47 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
48 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
50 columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %]
52 [% IF borrowernumber and borrower %]
53 if($.cookie("holdfor") != [% borrowernumber %]){
54 $.removeCookie("holdfor", { path: '/' });
57 $.removeCookie("holdfor", { path: '/' });
60 [% UNLESS ( borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
63 function toggle_onsite_checkout(){
64 if ( $("#onsite_checkout").prop('checked') ) {
65 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1%]")
66 [% IF !Koha.Preference('SpecifyDueDate') %]
67 $("#duedatespec").datetimepicker('destroy');
70 $("#duedatespec").datetimepicker({
71 onClose: function(dateText, inst) {
72 if (validate_date(dateText, inst) ) {
73 $("#barcode").focus();
78 }).on("change", function(e, value) {
79 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
84 function Dopop(link) {
85 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
87 $(document).ready(function() {
88 $('#mainform').on('submit',function() {
89 if ($("#barcode") && $("#barcode").val()) {
90 $('#barcode').on('keypress',function(event) {
91 $('#barcodeSubmittedModal').modal();
92 event.preventDefault(); }
97 if ( $('#clubs-tab').length ) {
98 $('#clubs-tab-link').on('click', function() {
99 $('#clubs-tab').text(_("Loading..."));
100 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% borrowernumber %]');
104 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
105 // listen submit to trigger qslip on empty checkout
106 $('#mainform').bind('submit',function() {
107 if ($('#barcode').val() == '') {
108 return printx_window( '[% CircAutoPrintQuickSlip %]' );
112 toggle_onsite_checkout();
113 $("#onsite_checkout").click(function(){
114 toggle_onsite_checkout();
117 $("#suspend_until").datepicker({
118 onClose: function(dateText, inst) {
119 validate_date(dateText, inst);
121 minDate: 1, // require that hold suspended until date is after today
129 <body id="circ_circulation" class="circ">
131 [% INCLUDE 'header.inc' %]
132 [% INCLUDE 'circ-search.inc' %]
134 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
135 [% IF borrowernumber and borrower %]
136 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
138 <strong>Checkouts</strong>
141 [% IF ( $borrowers ) %]
142 <div id="doc" class="yui-t7">
148 <div id="doc3" class="yui-t2">
155 [% IF borrowernumber and borrower %]
156 [% INCLUDE 'members-toolbar.inc' %]
159 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
160 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
162 [% IF additional_materials %]
163 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
164 [% additional_materials %]
168 [% IF ( alert.ITEM_LOST ) %]
169 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
172 [% IF ( alert.OTHER_CHARGES ) %]
173 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]</div>
176 [% IF alert.HIGHHOLDS %]
177 <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 | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).</div>
180 [% IF ( nopermission ) %]
181 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
184 [% IF ( NEEDSCONFIRMATION ) %]
187 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
188 [% IF CAN_user_circulate_force_checkout %]
189 <h3>Please confirm checkout</h3>
191 <h3>Cannot check out</h3>
195 [%IF ( AGE_RESTRICTION ) %]
196 <li>Age restriction [% AGE_RESTRICTION %].
197 [% IF CAN_user_circulate_force_checkout %]
204 <li>The patron has a debt of [% DEBT %].</li>
207 [% IF ( DEBT_GUARANTEES ) %]
208 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
211 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
212 <li>Rental charge for this item: [% RENTALCHARGE %]</li>
215 [% IF ( RENEW_ISSUE ) %]
216 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
219 [% IF ( RESERVE_WAITING ) %]
220 <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 [% Branches.GetName( resbranchcode ) %] since [% reswaitingdate | $KohaDates %]</li>
223 [% IF ( RESERVED ) %]
224 <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 [% Branches.GetName( resbranchcode ) %] since [% resreservedate | $KohaDates %]</li>
227 [% IF ( ISSUED_TO_ANOTHER ) %]
228 <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 %]).
229 [% IF CAN_user_circulate_force_checkout %]
230 Check in and check out?
235 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
236 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
239 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
240 <li>Too many on-site checked out. [% current_loan_count %] on-site checked out, only [% max_loans_allowed %] are allowed.</li>
243 [% IF ( BORRNOTSAMEBRANCH ) %]
244 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) %])</li>
247 [% IF ( PATRON_CANT ) %]
248 <li>This patron can't check out this item per library circulation policy.</li>
251 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
252 <li>No circulation rule is defined for this patron and itemtype combination.</li>
255 [% IF ( NOT_FOR_LOAN_FORCING ) %]
257 [% IF ( itemtype_notforloan ) %]
258 Item type is normally not for loan.
259 [% ELSIF ( item_notforloan ) %]
260 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
261 Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %].
263 [% IF CAN_user_circulate_force_checkout %]
269 [% IF ( USERBLOCKEDOVERDUE ) %]
270 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
271 [% IF CAN_user_circulate_force_checkout %]
277 [% IF ( ITEM_LOST ) %]
278 <li>This item has been lost with a status of "[% ITEM_LOST %]".
279 [% IF CAN_user_circulate_force_checkout %]
286 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
290 <li>Patron has previously checked out this title: <b>[% biblio.title %] [% IF biblio.author %] by [% biblio.author %][% END %]</b>. Check out anyway?</li>
293 [% IF BIBLIO_ALREADY_ISSUED %]
295 Patron has already checked out another item from this record.
296 [% IF CAN_user_circulate_force_checkout %]
304 <script language="JavaScript" type="text/javascript">
305 $(document).ready(function() {
306 [% IF !override_high_holds %]
307 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
308 if ('[% duedatespec %]' === '') {
309 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
311 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec %]');
315 $("#override_high_holds_tmp").on( 'change', function() {
316 if ( this.checked ) {
317 $("input[name=duedatespec]:hidden").val('');
324 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
325 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
326 <input type="hidden" name="restoreduedatespec" />
328 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
331 <p class="circ-override-high-holds">
332 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
333 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
337 [% IF ( RESERVED ) %]
339 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
340 <label for="cancelreserve">Cancel hold</label>
344 [% IF ( RESERVE_WAITING ) %]
346 <label for="cancelreserve">Cancel hold</label>
347 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
348 <label for="revertreserve">Revert waiting status</label>
349 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
353 <input type="hidden" name="barcode" value="[% barcode |html %]" />
354 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
355 <input type="hidden" name="issueconfirmed" value="1" />
356 <input type="hidden" name="override_high_holds" value="[% override_high_holds %]"/>
357 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
358 [% IF ( INVALID_DATE ) %]
360 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" />
361 <label for="duedatespec">Due date</label>
364 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
366 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
367 <input type="hidden" name="branch" value="[% branch %]" />
368 [% IF ( RENEW_ISSUE ) %]
369 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
371 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
373 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout %]" />
374 <input type="hidden" name="auto_renew" value="[% auto_renew %]" />
378 [% IF ( RESERVED ) %]
379 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
380 <input type="hidden" name="restoreduedatespec" />
381 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
382 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
383 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
384 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&itemnumber=[% item.itemnumber %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
388 [% IF ( RESERVE_WAITING ) %]
389 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
390 <input type="hidden" name="restoreduedatespec" />
391 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
392 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
393 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
394 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&itemnumber=[% item.itemnumber %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
398 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
399 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
400 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
401 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
402 <input type="hidden" name="restoreduedatespec" />
403 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
404 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
405 [% IF ( RENEW_ISSUE ) %]
406 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
408 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
411 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
415 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
416 [% UNLESS noissues %]
417 <button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber %]&borrowernumber=[% borrowernumber %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
421 [% END %] <!-- NEEDSCONFIRMATION -->
423 [% IF ( IMPOSSIBLE ) %]
426 <div id="circ_impossible" class="dialog alert audio-alert-warning">
427 [% IF ( UNKNOWN_BARCODE ) %]
428 <h3>Barcode not found</h3>
430 <!-- RESULT OF ISSUING REQUEST -->
433 <li>Local use recorded</li>
436 [% IF ( INVALID_DATE ) %]
437 <li>The due date "[% INVALID_DATE %]" is invalid</li>
440 [% IF ( UNKNOWN_BARCODE ) %]
441 <li>The barcode was not found: <span class="ex">[% barcode |html %]</span>
444 [% IF ( FALLBACK ) %]
446 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
448 <div>No items were found by searching.</div>
452 [% IF ( fast_cataloging ) %]
453 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
454 <a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a>
462 [% IF ( NOT_FOR_LOAN ) %]
464 [% IF ( itemtype_notforloan ) %]
465 Item type not for loan.
466 [% ELSIF ( item_notforloan ) %]
467 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
468 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %].
473 [% IF ( WTHDRAWN ) %]
475 <span>Item has been withdrawn</span>
476 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
477 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
481 [% IF ( RESTRICTED ) %]
482 <li>Item is restricted</li>
486 <li>Patron's address is in doubt</li>
489 [% IF ( CARD_LOST ) %]
490 <li>Patron's card is lost</li>
493 [% IF ( DEBARRED ) %]
494 <li>Patron is restricted</li>
497 [% IF ( NO_MORE_RENEWALS ) %]
498 <li>No more renewals possible</li>
501 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
502 <li>This item can not be renewed, it's an on-site checkout</li>
505 [%IF ( AGE_RESTRICTION ) %]
506 <li>Age restriction [% AGE_RESTRICTION %].</li>
510 <li>Patron's card is expired</li>
513 [% IF ( TOO_MANY ) %]
514 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
517 [% IF ( ITEMNOTSAMEBRANCH ) %]
518 <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
521 [% IF RETURN_IMPOSSIBLE %]
522 <li>This item must be returned to [% Branches.GetName( branch_to_return ) %].</li>
525 [% IF ( USERBLOCKEDWITHENDDATE ) %]
526 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
529 [% IF ( USERBLOCKEDNOENDDATE ) %]
530 <li>Patron has an indefinite restriction.</li>
533 [% IF ( USERBLOCKEDOVERDUE ) %]
534 <li>Checkouts are BLOCKED because patron has overdue items.</li>
538 [% IF (forceallow) %]
539 <li>Restriction overridden temporarily.</li>
544 [% IF ( FALLBACK ) %]
548 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
549 <div class="modal-dialog modal-wide" role="document">
550 <div class="modal-content">
551 <div class="modal-header">
552 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
553 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
555 <div class="modal-body">
556 <table class="table_borrowers">
557 [% FOREACH book IN options %]
560 <a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber %]">[% book.title %]</a>
564 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
565 [% IF (forceallow) %]
566 <input type="hidden" name="forceallow" value="1">
568 <input type="hidden" name="restoreduedatespec" />
569 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
570 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
571 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
572 <input type="hidden" name="branch" value="[% branch %]" />
573 <input type="hidden" name="barcode" value="[% book.barcode %]" />
574 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
581 <div class="modal-footer">
582 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
591 [% IF (forceallow) %]
592 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
594 [% END %] <!-- /impossible -->
596 <span class="audio-alert-success"></span>
599 <p>Item checked out</p>
603 [% INCLUDE 'patron-toolbar.inc' %]
605 No patron matched <span class="ex">[% message | html %]</span>
609 [% IF ( borrowers ) %]
610 [% INCLUDE 'patron-toolbar.inc' %]
612 <fieldset id="circ_circulation_selectborrower">
613 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
617 <!-- BARCODE ENTRY -->
619 [% IF borrowernumber and borrower %]
622 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
623 <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>
626 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
627 <div class="yui-u first">
629 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
630 <input type="hidden" name="restoreduedatespec" />
632 <fieldset id="circ_circulation_issue" class="lastchecked">
634 <fieldset id="circ_circulation_issue">
636 [% IF ( DisplayClearScreenButton ) %]
637 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
640 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
642 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
644 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
645 <div class="hint">Enter item barcode or keyword:</div>
647 <div class="hint">Enter item barcode:</div>
650 [% IF NEEDSCONFIRMATION %]
651 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
653 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
655 <button type="submit" class="btn btn-default">Check out</button>
657 <div id="show-checkout-settings">
658 <a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
661 <div class="checkout-settings">
663 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
664 [% IF ( SpecifyDueDate ) %]
665 <div id="specify-due-date" class="checkout-setting">
666 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
667 [% IF ( duedatespec ) %]
668 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" />
670 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" />
672 <label for="stickyduedate"> Remember for session:</label>
673 [% IF ( stickyduedate ) %]
674 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
676 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
678 <button class="btn btn-default btn-sm 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>
683 [% UNLESS ( noissues ) %]
684 <div id="set-automatic-renewal" class="checkout-setting">
685 [% IF NEEDSCONFIRMATION %]
686 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
688 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
691 <label for="auto_renew">Automatic renewal</label>
693 [% IF Koha.Preference('decreaseLoanHighHolds') %]
694 <div id="set_high_holds_overrride" class="checkout-setting">
695 [% IF NEEDSCONFIRMATION %]
696 [% IF override_high_holds %]
697 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
699 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
702 [% IF override_high_holds %]
703 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
705 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
708 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
713 [% IF Koha.Preference('OnSiteCheckouts') %]
714 <div id="onsite_checkout-select" class="checkout-setting">
716 <div class="onsite-checkout-only">
717 <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>
718 <input type="text" name="duedatespec" id="duedatespec" />
719 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
722 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
727 </div> <!-- /.checkout-settings -->
729 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
730 <input type="hidden" name="branch" value="[% branch %]" />
731 <input type="hidden" name="print" value="maybe" />
732 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
734 <input type="hidden" name="charges" value="yes" />
735 <input type="hidden" name="oldamount" value="[% amountold %]" />
739 <div class="lastchecked">
740 <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
745 [% END %]<!-- /unless noissues -->
747 [% IF ( noissues ) %]
748 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
757 [% IF ( noissues ) %]
758 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
759 <div id="circmessages" class="circmessage attention">
761 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
762 <div id="circmessages" class="circmessage warning">
766 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
767 <span class="circ-hlt">Only on-site checkouts are allowed</span>
771 <div id="circmessages" class="circmessage attention">
777 [% IF ( has_modifications ) %]
778 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
779 [% IF CAN_user_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
780 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
785 [% IF ( warndeparture ) %]
786 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
787 Patron's card expires on [% expiry | $KohaDates %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]">Edit Details</a>
792 [% IF ( returnbeforeexpiry ) %]
793 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
794 expiry date is before the date due, the date due will be set to the expiry date
799 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
800 [% IF ( expiry ) %]Patron's card expired on [% expiry | $KohaDates %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]">Edit Details</a>
806 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
810 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
813 [% IF ( userdebarred ) %]
815 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
817 [% IF ( userdebarreddate ) %]
818 until [% userdebarreddate | $KohaDates %]
821 [% IF ( debarredcomment ) %]
822 with the explanation: <br/><i>
823 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
824 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
826 [% debarredcomment | html_line_break %]
831 <a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
832 [% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
833 <span class="override_debarment">
834 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Override restriction temporarily</a>
840 [% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a>[% END %]</li>
844 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
847 [% IF ( charges_guarantees ) %]
849 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
850 [% IF ( charges_guarantees_is_blocker ) %]
851 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
859 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
866 [% IF WaitingHolds.count %]
867 <div id="holdswaiting" class="circmessage">
868 <h4>Holds waiting:</h4>
869 [% FOREACH w IN WaitingHolds %]
872 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber %]">[% w.biblio.title | html %]</a>
873 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]),
874 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
875 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %]
876 Hold placed on [% w.reservedate | $KohaDates %].
879 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
880 [% SET expires_on = w.expirationdate %]
881 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
890 <div id="circnotes" class="circmessage">
892 <p><span class="circ-hlt">[% notesmsg %]</span></p>
896 <!-- /If notes -->[% END %]
898 <div id="messages" class="circmessage">
901 [% FOREACH message IN messages %]
903 [% IF(message.message_type == "L") %]
904 <span class="circ-hlt">
908 [% message.message_date | $KohaDates %]
909 [% Branches.GetName( message.branchcode ) %]
910 [% IF message.manager_id %]
911 ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id %]">[% message.get_column('manager_firstname') %] [% message.get_column('manager_surname') %]</a> )
913 <i>"[% message.message | html %]"</i>
915 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
916 <a class="btn btn-link btn-sm" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
921 <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
927 <div class="yui-g"><div id="patronlists" class="toptabs">
931 [% IF ( issuecount ) %]
932 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
934 <a href="#checkouts">0 Checkouts</a>
938 [% IF relatives_issues_count %]
939 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
943 [% IF ( holds_count ) %]
944 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
946 <a href="#reserves" id="holds-tab">0 Holds</a>
950 [% IF Koha.Preference('ArticleRequests') %]
952 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
956 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count %] Restrictions</a></li>
958 [% SET enrollments = patron.get_club_enrollments(1) %]
959 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
960 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
962 <a id="clubs-tab-link" href="#clubs-tab">
963 Clubs ([% enrollments.count %]/[% enrollable.count %])
970 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
972 [% INCLUDE "checkouts-table.inc" %]
974 [% IF ( relatives_issues_count ) %]
975 <div id="relatives-issues">
976 <table id="relatives-issues-table">
979 <th scope="col">Due date (unformatted, hidden)</th>
980 <th scope="col">Due date</th>
981 <th scope="col">Title</th>
982 <th scope="col">Item type</th>
983 <th scope="col">Location</th>
984 <th scope="col">Checked out on</th>
985 <th scope="col">Checked out from</th>
986 <th scope="col">Call no</th>
987 <th scope="col">Charge</th>
988 <th scope="col">Fine</th>
989 <th scope="col">Price</th>
990 <th scope="col">Patron</th>
997 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
1003 [% INCLUDE borrower_debarments.inc %]
1006 [% IF ( holds_count ) %]
1007 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
1008 <input type="hidden" name="from" value="circ" />
1009 <table id="holds-table" style="width: 100% !Important;">
1014 <th>Call number</th>
1025 <fieldset class="action">
1026 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
1030 [% IF Koha.Preference('SuspendHoldsIntranet') %]
1031 <fieldset class="action">
1032 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1033 <input type="hidden" name="from" value="circ" />
1034 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1035 <input type="submit" value="Suspend all holds" />
1037 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
1038 <label for="suspend_until">until</label>
1039 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
1040 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1045 <fieldset class="action">
1046 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1047 <input type="hidden" name="from" value="circ" />
1048 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1049 <input type="hidden" name="suspend" value="0" />
1050 <input type="submit" value="Resume all suspended holds" />
1053 [% END # IF SuspendHoldsIntranet %]
1056 <p>Patron has nothing on hold.</p>
1058 </div> <!-- reservesloop -->
1060 [% IF Koha.Preference('ArticleRequests') %]
1061 [% INCLUDE 'patron-article-requests.inc' %]
1064 [% ELSIF borrowernumber %]
1065 <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
1066 [% END %] <!-- borrowernumber and borrower-->
1069 [% IF Koha.Preference('CircSidebar') %]
1070 [% UNLESS ( borrowers ) %]
1071 [% IF not( borrowernumber and borrower ) %]
1072 <div class="yui-b noprint">
1073 [% INCLUDE 'circ-nav.inc' %]
1080 [% UNLESS ( borrowers ) %]
1081 [% IF borrowernumber and borrower %]
1083 [% INCLUDE 'circ-menu.inc' %]
1089 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1090 <div class="modal-dialog">
1091 <div class="modal-content">
1092 <div class="modal-header">
1093 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1096 <div class="modal-body">
1097 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1102 [% INCLUDE 'intranet-bottom.inc' %]