5 [% USE ColumnsSettings %]
8 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
9 [% SET exports_enabled = 1 %]
11 [% USE AuthorisedValues %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 [% SET destination = "circ" %]
14 <title>Koha › Circulation
15 [% IF borrowernumber and borrower%]
16 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
19 [% INCLUDE 'doc-head-close.inc' %]
20 [% INCLUDE 'calendar.inc' %]
22 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
23 [% INCLUDE 'strings.inc' %]
24 [% INCLUDE 'datatables.inc' %]
25 [% INCLUDE 'columns_settings.inc' %]
26 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
27 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
28 [% INCLUDE 'timepicker.inc' %]
29 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
30 <script type="text/javascript" src="[% interface %]/[% theme %]/js/pages/circulation.js"></script>
31 <script type="text/javascript" src="[% interface %]/[% theme %]/js/checkouts.js"></script>
32 <script type="text/javascript" src="[% interface %]/[% theme %]/js/holds.js"></script>
33 <script type="text/javascript">
35 /* Set some variable needed in circulation.js */
36 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
37 var interface = "[% interface %]";
38 var theme = "[% theme %]";
39 var borrowernumber = "[% borrowernumber %]";
40 var branchcode = "[% branch %]";
41 var exports_enabled = "[% exports_enabled %]";
42 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
43 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %];
44 var script = "circulation";
45 var relatives_borrowernumbers = new Array();
46 [% FOREACH b IN relatives_borrowernumbers %]
47 relatives_borrowernumbers.push("[% b %]");
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.");
53 columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %]
55 [% IF borrowernumber and borrower %]
56 if($.cookie("holdfor") != [% borrowernumber %]){
57 $.removeCookie("holdfor", { path: '/' });
60 $.removeCookie("holdfor", { path: '/' });
63 [% UNLESS ( borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
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');
73 $("#duedatespec").datetimepicker({
74 onClose: function(dateText, inst) {
75 if (validate_date(dateText, inst) ) {
76 $("#barcode").focus();
81 }).on("change", function(e, value) {
82 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
87 function Dopop(link) {
88 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
90 $(document).ready(function() {
91 $('#mainform').on('submit',function() {
92 if ($("#barcode") && $("#barcode").val()) {
93 $('#barcode').on('keypress',function(event) {
94 $('#barcodeSubmittedModal').modal();
95 event.preventDefault(); }
100 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
101 // listen submit to trigger qslip on empty checkout
102 $('#mainform').bind('submit',function() {
103 if ($('#barcode').val() == '') {
104 return printx_window( '[% CircAutoPrintQuickSlip %]' );
108 toggle_onsite_checkout();
109 $("#onsite_checkout").click(function(){
110 toggle_onsite_checkout();
113 $("#suspend_until").datepicker({
114 onClose: function(dateText, inst) {
115 validate_date(dateText, inst);
117 minDate: 1, // require that hold suspended until date is after today
125 <body id="circ_circulation" class="circ">
127 [% INCLUDE 'header.inc' %]
128 [% INCLUDE 'circ-search.inc' %]
130 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
131 [% IF borrowernumber and borrower %]
132 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
134 <strong>Checkouts</strong>
137 [% IF ( $borrowers ) %]
138 <div id="doc" class="yui-t7">
144 <div id="doc3" class="yui-t2">
151 [% IF borrowernumber and borrower %]
152 [% INCLUDE 'members-toolbar.inc' %]
155 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
156 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
158 [% IF additional_materials %]
159 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
160 [% additional_materials %]
164 [% IF ( alert.ITEM_LOST ) %]
165 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
168 [% IF ( alert.OTHER_CHARGES ) %]
169 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]</div>
172 [% IF alert.HIGHHOLDS %]
173 <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>
176 [% IF ( nopermission ) %]
177 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
180 [% IF ( NEEDSCONFIRMATION ) %]
183 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
184 [% IF CAN_user_circulate_force_checkout %]
185 <h3>Please confirm checkout</h3>
187 <h3>Cannot check out</h3>
191 [%IF ( AGE_RESTRICTION ) %]
192 <li>Age restriction [% AGE_RESTRICTION %].
193 [% IF CAN_user_circulate_force_checkout %]
200 <li>The patron has a debt of [% DEBT %].</li>
203 [% IF ( DEBT_GUARANTEES ) %]
204 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
207 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
208 <li>Rental charge for this item: [% RENTALCHARGE %]</li>
211 [% IF ( RENEW_ISSUE ) %]
212 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
215 [% IF ( RESERVE_WAITING ) %]
216 <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>
219 [% IF ( RESERVED ) %]
220 <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>
223 [% IF ( ISSUED_TO_ANOTHER ) %]
224 <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 %]).
225 [% IF CAN_user_circulate_force_checkout %]
226 Check in and check out?
231 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
232 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
235 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
236 <li>Too many on-site checked out. [% current_loan_count %] on-site checked out, only [% max_loans_allowed %] are allowed.</li>
239 [% IF ( BORRNOTSAMEBRANCH ) %]
240 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) %])</li>
243 [% IF ( PATRON_CANT ) %]
244 <li>This patron can't check out this item per library circulation policy</li>
247 [% IF ( NOT_FOR_LOAN_FORCING ) %]
249 [% IF ( itemtype_notforloan ) %]
250 Item type is normally not for loan.
251 [% ELSIF ( item_notforloan ) %]
252 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
253 Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
255 [% IF CAN_user_circulate_force_checkout %]
261 [% IF ( USERBLOCKEDOVERDUE ) %]
262 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
263 [% IF CAN_user_circulate_force_checkout %]
269 [% IF ( ITEM_LOST ) %]
270 <li>This item has been lost with a status of "[% ITEM_LOST %]".
271 [% IF CAN_user_circulate_force_checkout %]
278 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
282 <li>This item has previously been checked out to this patron. Check out anyway?</li>
285 [% IF BIBLIO_ALREADY_ISSUED %]
287 Patron has already checked out another item from this record.
288 [% IF CAN_user_circulate_force_checkout %]
296 <script language="JavaScript" type="text/javascript">
297 $(document).ready(function() {
298 [% IF !override_high_holds %]
299 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
300 if ('[% duedatespec %]' === '') {
301 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
303 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec %]');
307 $("#override_high_holds_tmp").on( 'change', function() {
308 if ( this.checked ) {
309 $("input[name=duedatespec]:hidden").val('');
316 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
317 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
318 <input type="hidden" name="restoreduedatespec" />
320 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
323 <p class="circ-override-high-holds">
324 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
325 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
329 [% IF ( RESERVED ) %]
331 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
332 <label for="cancelreserve">Cancel hold</label>
336 [% IF ( RESERVE_WAITING ) %]
338 <label for="cancelreserve">Cancel hold</label>
339 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
340 <label for="revertreserve">Revert waiting status</label>
341 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
345 <input type="hidden" name="barcode" value="[% barcode |html %]" />
346 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
347 <input type="hidden" name="issueconfirmed" value="1" />
348 <input type="hidden" name="override_high_holds" value="[% override_high_holds %]"/>
349 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
350 [% IF ( INVALID_DATE ) %]
352 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" />
353 <label for="duedatespec">Due date</label>
356 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
358 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
359 <input type="hidden" name="branch" value="[% branch %]" />
360 [% IF ( RENEW_ISSUE ) %]
361 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
363 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
365 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout %]" />
369 [% IF ( RESERVED ) %]
370 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
371 <input type="hidden" name="restoreduedatespec" />
372 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
373 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
374 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
375 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
379 [% IF ( RESERVE_WAITING ) %]
380 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
381 <input type="hidden" name="restoreduedatespec" />
382 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
383 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
384 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
385 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
389 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
390 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
391 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
392 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
393 <input type="hidden" name="restoreduedatespec" />
394 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
395 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
396 [% IF ( RENEW_ISSUE ) %]
397 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
399 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
402 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
406 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
407 [% UNLESS noissues %]
408 <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>
412 [% END %] <!-- NEEDSCONFIRMATION -->
414 [% IF ( IMPOSSIBLE ) %]
417 <div id="circ_impossible" class="dialog alert audio-alert-warning">
418 [% IF ( UNKNOWN_BARCODE ) %]
419 <h3>Barcode not found</h3>
421 <!-- RESULT OF ISSUING REQUEST -->
424 <li>Local use recorded</li>
427 [% IF ( INVALID_DATE ) %]
428 <li>The due date "[% INVALID_DATE %]" is invalid</li>
431 [% IF ( UNKNOWN_BARCODE ) %]
432 <li>The barcode was not found: <span class="ex">[% barcode |html %]</span>
433 [% IF ( fast_cataloging ) %]
434 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
435 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
439 [% IF ( FALLBACK ) %]
441 <br />The following items were found by searching:
442 [% FOREACH book IN options %]
444 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
445 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
446 <input type="hidden" name="restoreduedatespec" />
447 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
448 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
449 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
450 <input type="hidden" name="branch" value="[% branch %]" />
451 <input type="hidden" name="barcode" value="[% book.barcode %]" />
452 <button type="submit" name="x"><i class="fa fa-check"></i> Check out [% book.barcode %]: [% book.title %]</button>
456 <br />No items were found by searching.
463 [% IF ( NOT_FOR_LOAN ) %]
465 [% IF ( itemtype_notforloan ) %]
466 Item type not for loan.
467 [% ELSIF ( item_notforloan ) %]
468 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
469 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
474 [% IF ( WTHDRAWN ) %]
475 <li>Item has been withdrawn</li>
478 [% IF ( RESTRICTED ) %]
479 <li>Item is restricted</li>
483 <li>Patron's address is in doubt</li>
486 [% IF ( CARD_LOST ) %]
487 <li>Patron's card is lost</li>
490 [% IF ( DEBARRED ) %]
491 <li>Patron is restricted</li>
494 [% IF ( NO_MORE_RENEWALS ) %]
495 <li>No more renewals possible</li>
498 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
499 <li>This item can not be renewed, it's an on-site checkout</li>
502 [%IF ( AGE_RESTRICTION ) %]
503 <li>Age restriction [% AGE_RESTRICTION %].</li>
507 <li>Patron's card is expired</li>
510 [% IF ( TOO_MANY ) %]
511 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
514 [% IF ( ITEMNOTSAMEBRANCH ) %]
515 <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
518 [% IF RETURN_IMPOSSIBLE %]
519 <li>This item must be returned to [% Branches.GetName( branch_to_return ) %].</li>
522 [% IF ( USERBLOCKEDWITHENDDATE ) %]
523 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
526 [% IF ( USERBLOCKEDNOENDDATE ) %]
527 <li>Patron has an indefinite restriction.</li>
530 [% IF ( USERBLOCKEDOVERDUE ) %]
531 <li>Checkouts are BLOCKED because patron has overdue items.</li>
535 [% IF (forceallow) %]
536 <li>Restriction overridden temporarily.</li>
541 [% IF (forceallow) %]
542 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
544 [% END %] <!-- /impossible -->
546 <span class="audio-alert-success"></span>
549 <p>Item checked out</p>
553 [% INCLUDE 'patron-toolbar.inc' %]
555 No patron matched <span class="ex">[% message | html %]</span>
559 [% IF ( borrowers ) %]
560 [% INCLUDE 'patron-toolbar.inc' %]
562 <fieldset id="circ_circulation_selectborrower">
563 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
567 <!-- BARCODE ENTRY -->
569 [% IF borrowernumber and borrower %]
572 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
573 <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>
576 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
577 <div class="yui-u first">
579 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
580 <input type="hidden" name="restoreduedatespec" />
582 <fieldset id="circ_circulation_issue" class="lastchecked">
584 <fieldset id="circ_circulation_issue">
586 [% IF ( DisplayClearScreenButton ) %]
587 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
590 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
592 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
594 <div class="hint">Enter item barcode:</div>
596 [% IF NEEDSCONFIRMATION %]
597 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
599 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
601 <button type="submit" class="btn">Check out</button>
603 <div id="show-checkout-settings">
604 <a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
607 <div class="checkout-settings">
609 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
610 [% IF ( SpecifyDueDate ) %]
611 <div id="specify-due-date" class="checkout-setting">
612 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
613 [% IF ( duedatespec ) %]
614 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" />
616 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" />
618 <label for="stickyduedate"> Remember for session:</label>
619 [% IF ( stickyduedate ) %]
620 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
622 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
624 <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>
629 [% UNLESS ( noissues ) %]
630 <div id="set-automatic-renewal" class="checkout-setting">
631 [% IF NEEDSCONFIRMATION %]
632 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
634 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
637 <label for="auto_renew">Automatic renewal</label>
639 [% IF Koha.Preference('decreaseLoanHighHolds') %]
640 <div id="set_high_holds_overrride" class="checkout-setting">
641 [% IF NEEDSCONFIRMATION %]
642 [% IF override_high_holds %]
643 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
645 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
648 [% IF override_high_holds %]
649 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" checked="checked" />
651 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" />
654 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
659 [% IF Koha.Preference('OnSiteCheckouts') %]
660 <div id="onsite_checkout-select" class="checkout-setting">
662 <div class="onsite-checkout-only">
663 <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>
664 <input type="text" name="duedatespec" id="duedatespec" />
665 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
668 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
673 </div> <!-- /.checkout-settings -->
675 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
676 <input type="hidden" name="branch" value="[% branch %]" />
677 <input type="hidden" name="print" value="maybe" />
678 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
680 <input type="hidden" name="charges" value="yes" />
681 <input type="hidden" name="oldamount" value="[% amountold %]" />
685 <div class="lastchecked">
686 <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
691 [% END %]<!-- /unless noissues -->
693 [% IF ( noissues ) %]
694 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
703 [% IF ( noissues ) %]
704 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
705 <div id="circmessages" class="circmessage attention">
707 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
708 <div id="circmessages" class="circmessage warning">
712 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
713 <span class="circ-hlt">Only on-site checkouts are allowed</span>
717 <div id="circmessages" class="circmessage attention">
723 [% IF ( has_modifications ) %]
724 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
725 [% IF CAN_user_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
726 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
731 [% IF ( warndeparture ) %]
732 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
733 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>
738 [% IF ( returnbeforeexpiry ) %]
739 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
740 expiry date is before the date due, the date due will be set to the expiry date
745 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
746 [% 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>
752 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
756 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
759 [% IF ( userdebarred ) %]
761 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
763 [% IF ( userdebarreddate ) %]
764 until [% userdebarreddate | $KohaDates %]
767 [% IF ( debarredcomment ) %]
768 with the explanation: <br/><i>
769 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
770 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
772 [% debarredcomment | html_line_break %]
777 <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
778 [% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
779 <span class="override_debarment">
780 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a>
786 [% 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>
790 [% INCLUDE 'blocked-fines.inc'
791 fines = chargesamount
795 [% IF ( charges_guarantees ) %]
797 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees %].
798 [% IF ( charges_guarantees_is_blocker ) %]
799 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
807 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
814 [% IF WaitingHolds.count %]
815 <div id="holdswaiting" class="circmessage">
816 <h4>Holds waiting:</h4>
817 [% FOREACH w IN WaitingHolds %]
820 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber %]">[% w.biblio.title | html %]</a>
821 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]),
822 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
823 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %]
824 Hold placed on [% w.reservedate | $KohaDates %].
827 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
828 [% SET waiting_expires_on = w.waiting_expires_on %]
829 Waiting at [% w.branch.branchname | html %] [% IF waiting_expires_on %] until [% waiting_expires_on | $KohaDates %] [% END %]
838 <div id="circnotes" class="circmessage">
840 <p><span class="circ-hlt">[% notesmsg %]</span></p>
844 <!-- /If notes -->[% END %]
846 <div id="messages" class="circmessage">
849 [% FOREACH message IN librarian_messages %]
851 <span class="circ-hlt">
852 [% message.message_date | $KohaDates %]
853 [% Branches.GetName( message.branchcode ) %]
854 <i>"[% message.message %]"</i>
856 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
857 [<a 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>]
861 [% FOREACH message IN patron_messages %]
862 <li><span class="">[% message.message_date | $KohaDates %] [% Branches.GetName( message.branchcode )%] <i>"[% message.message %]"</i></span>
863 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
864 [<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]"><i class="fa fa-trash"></i> Delete</a>]
868 <a id="addnewmessageLabel" href="#add_message_form" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
874 <div class="yui-g"><div id="patronlists" class="toptabs">
878 [% IF ( issuecount ) %]
879 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
881 <a href="#checkouts">0 Checkouts</a>
885 [% IF relatives_issues_count %]
886 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
890 [% IF ( holds_count ) %]
891 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
893 <a href="#reserves" id="holds-tab">0 Holds</a>
896 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
899 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
901 [% INCLUDE "checkouts-table.inc" %]
903 [% IF ( relatives_issues_count ) %]
904 <div id="relatives-issues">
905 <table id="relatives-issues-table">
908 <th scope="col">Due date (unformatted, hidden)</th>
909 <th scope="col">Due date</th>
910 <th scope="col">Title</th>
911 <th scope="col">Item type</th>
912 <th scope="col">Location</th>
913 <th scope="col">Checked out on</th>
914 <th scope="col">Checked out from</th>
915 <th scope="col">Call no</th>
916 <th scope="col">Charge</th>
917 <th scope="col">Fine</th>
918 <th scope="col">Price</th>
919 <th scope="col">Patron</th>
926 [% INCLUDE borrower_debarments.inc %]
929 [% IF ( holds_count ) %]
930 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
931 <input type="hidden" name="from" value="circ" />
932 <table id="holds-table" style="width: 100% !Important;">
948 <fieldset class="action">
949 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
953 [% IF SuspendHoldsIntranet %]
954 <fieldset class="action">
955 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
956 <input type="hidden" name="from" value="circ" />
957 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
958 <input type="submit" value="Suspend all holds" />
960 [% IF AutoResumeSuspendedHolds %]
961 <label for="suspend_until">until</label>
962 <input type="text" size="10" id="suspend_until" name="suspend_until datepicker" />
963 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
968 <fieldset class="action">
969 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
970 <input type="hidden" name="from" value="circ" />
971 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
972 <input type="hidden" name="suspend" value="0" />
973 <input type="submit" value="Resume all suspended holds" />
976 [% END # IF SuspendHoldsIntranet %]
979 <p>Patron has nothing on hold.</p>
981 </div> <!-- reservesloop -->
983 [% ELSIF borrowernumber %]
984 <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
985 [% END %] <!-- borrowernumber and borrower-->
991 [% UNLESS ( borrowers ) %][% IF borrowernumber and borrower %]<div class="yui-b">
992 [% INCLUDE 'circ-menu.inc' %]
993 </div>[% END %][% END %]
996 <div id="barcodeSubmittedModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
997 <div class="modal-header">
998 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1001 <div class="modal-body">
1002 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1005 [% INCLUDE 'intranet-bottom.inc' %]