4 [% USE ColumnsSettings %]
6 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
7 [% SET exports_enabled = 1 %]
9 [% USE AuthorisedValues %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 [% SET destination = "circ" %]
12 <title>Koha › Circulation
13 [% IF borrowernumber and borrower%]
14 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
17 [% INCLUDE 'doc-head-close.inc' %]
18 [% INCLUDE 'calendar.inc' %]
20 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
21 [% INCLUDE 'strings.inc' %]
22 [% INCLUDE 'datatables.inc' %]
23 [% INCLUDE 'columns_settings.inc' %]
24 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
25 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
26 [% INCLUDE 'timepicker.inc' %]
27 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
28 <script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script>
29 <script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script>
30 <script type="text/javascript" src="[% themelang %]/js/holds.js"></script>
31 <script type="text/javascript">
33 /* Set some variable needed in circulation.js */
34 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
35 var interface = "[% interface %]";
36 var theme = "[% theme %]";
37 var borrowernumber = "[% borrowernumber %]";
38 var branchcode = "[% branch %]";
39 var exports_enabled = "[% exports_enabled %]";
40 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
41 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %];
42 var script = "circulation";
43 var relatives_borrowernumbers = new Array();
44 [% FOREACH b IN relatives_borrowernumbers %]
45 relatives_borrowernumbers.push("[% b %]");
48 var MSG_ADD_MESSAGE = _("Add a new message");
49 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
50 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
52 columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %]
54 [% IF borrowernumber and borrower %]
55 if($.cookie("holdfor") != [% borrowernumber %]){
56 $.removeCookie("holdfor", { path: '/' });
59 $.removeCookie("holdfor", { path: '/' });
62 [% UNLESS ( borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
65 function toggle_onsite_checkout(){
66 if ( $("#onsite_checkout").attr('checked') ) {
67 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1%]")
68 [% IF !Koha.Preference('SpecifyDueDate') %]
69 $("#duedatespec").datetimepicker('destroy');
72 $("#duedatespec").datetimepicker({
73 onClose: function(dateText, inst) { $("#barcode").focus(); },
80 function Dopop(link) {
81 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
83 $(document).ready(function() {
84 $('#mainform').on('submit',function() {
85 if ($("#barcode") && $("#barcode").val()) {
86 $('#barcode').on('keypress',function(event) {
87 $('#barcodeSubmittedModal').modal();
88 event.preventDefault(); }
93 $(".clickable").click(function() {
94 window.document.location = $(this).data('url');
97 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
98 // listen submit to trigger qslip on empty checkout
99 $('#mainform').bind('submit',function() {
100 if ($('#barcode').val() == '') {
101 return printx_window( '[% CircAutoPrintQuickSlip %]' );
105 toggle_onsite_checkout();
106 $("#onsite_checkout").click(function(){
107 toggle_onsite_checkout();
110 var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
112 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
114 "aaSorting": [ 2, "asc" ],
118 $(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) {
119 $('#table_borrowers tbody tr').removeClass('selected');
120 $(this).addClass('selected');
121 if (event.target.type !== 'radio') {
122 $(':radio', this).attr('checked', 'true')
131 <body id="circ_circulation" class="circ">
133 [% INCLUDE 'header.inc' %]
134 [% INCLUDE 'circ-search.inc' %]
136 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
137 [% IF borrowernumber and borrower %]
138 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
140 <strong>Checkouts</strong>
143 [% IF ( $borrowers ) %]
144 <div id="doc" class="yui-t7">
150 <div id="doc3" class="yui-t2">
157 [% IF borrowernumber and borrower %]
158 [% INCLUDE 'members-toolbar.inc' %]
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>
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>
174 [% IF ( canned_bor_notes_loop ) %]
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>
186 <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
189 <fieldset class="action">
190 <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
193 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
194 <input type="hidden" name="branchcode" value="[% branch %]" />
199 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
201 [% IF additional_materials %]
202 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
203 [% additional_materials %]
207 [% IF ( alert.ITEM_LOST ) %]
208 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
211 [% IF ( alert.OTHER_CHARGES ) %]
212 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES %]</div>
215 [% IF ( NEEDSCONFIRMATION ) %]
218 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
219 [% IF CAN_user_circulate_force_checkout %]
220 <h3>Please confirm checkout</h3>
222 <h3>Cannot check out</h3>
226 [%IF ( AGE_RESTRICTION ) %]
227 <li>Age restriction [% AGE_RESTRICTION %].
228 [% IF CAN_user_circulate_force_checkout %]
235 <li>The patron has a debt of [% DEBT %].</li>
237 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
238 <li>Rental charge for this item: [% RENTALCHARGE %]</li>
241 [% IF ( RENEW_ISSUE ) %]
242 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
245 [% IF ( RESERVE_WAITING ) %]
246 <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>
249 [% IF ( RESERVED ) %]
250 <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>
253 [% IF ( ISSUED_TO_ANOTHER ) %]
254 <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 %]).
255 [% IF CAN_user_circulate_force_checkout %]
256 Check in and check out?
261 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
262 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
265 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
266 <li>Too many on-site checked out. [% current_loan_count %] on-site checked out, only [% max_loans_allowed %] are allowed.</li>
269 [% IF ( BORRNOTSAMEBRANCH ) %]
270 <li>This patron is from a different library ([% BORRNOTSAMEBRANCH %])</li>
273 [% IF ( PATRON_CANT ) %]
274 <li>This patron can't check out this item per library circulation policy</li>
277 [% IF ( NOT_FOR_LOAN_FORCING ) %]
279 [% IF ( itemtype_notforloan ) %]
280 Item type is normally not for loan.
281 [% ELSIF ( item_notforloan ) %]
282 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
283 Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
285 [% IF CAN_user_circulate_force_checkout %]
291 [% IF ( USERBLOCKEDOVERDUE ) %]
292 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
293 [% IF CAN_user_circulate_force_checkout %]
299 [% IF ( ITEM_LOST ) %]
300 <li>This item has been lost with a status of "[% ITEM_LOST %]".
301 [% IF CAN_user_circulate_force_checkout %]
308 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
311 [% IF BIBLIO_ALREADY_ISSUED %]
313 Patron has already checked out another item from this record.
314 [% IF CAN_user_circulate_force_checkout %]
322 <script language="JavaScript" type="text/javascript">
323 $(document).ready(function() {
324 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
325 if ('[% duedatespec %]' === '') {
326 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
328 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec %]');
334 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
335 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
336 <input type="hidden" name="restoreduedatespec" />
338 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
340 [% IF ( RESERVED ) %]
342 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
343 <label for="cancelreserve">Cancel hold</label>
347 [% IF ( RESERVE_WAITING ) %]
349 <label for="cancelreserve">Cancel hold</label>
350 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
351 <label for="revertreserve">Revert waiting status</label>
352 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
356 <input type="hidden" name="barcode" value="[% barcode |html %]" />
357 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
358 <input type="hidden" name="issueconfirmed" value="1" />
359 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
360 [% IF ( INVALID_DATE ) %]
362 <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
363 <label for="duedatespec">Due date</label>
366 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
368 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
369 <input type="hidden" name="branch" value="[% branch %]" />
370 [% IF ( RENEW_ISSUE ) %]
371 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
373 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
375 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout %]" />
379 [% IF ( RESERVED ) %]
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 [% IF ( RESERVE_WAITING ) %]
390 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
391 <input type="hidden" name="restoreduedatespec" />
392 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
393 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
394 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
395 <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>
399 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
400 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
401 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
402 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
403 <input type="hidden" name="restoreduedatespec" />
404 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
405 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
406 [% IF ( RENEW_ISSUE ) %]
407 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
409 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
412 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
416 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
417 [% UNLESS noissues %]
418 <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>
422 [% END %] <!-- NEEDSCONFIRMATION -->
424 [% IF ( IMPOSSIBLE ) %]
427 <div id="circ_impossible" class="dialog alert audio-alert-warning">
428 <!-- RESULT OF ISSUING REQUEST -->
431 <li>Local use recorded</li>
434 [% IF ( INVALID_DATE ) %]
435 <li>The due date "[% INVALID_DATE %]" is invalid</li>
438 [% IF ( UNKNOWN_BARCODE ) %]
439 <li>The barcode was not found [% barcode |html %]
440 [% IF ( fast_cataloging ) %]
441 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
442 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
446 [% IF ( FALLBACK ) %]
448 <br />The following items were found by searching:
449 [% FOREACH book IN options %]
451 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
452 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
453 <input type="hidden" name="restoreduedatespec" />
454 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
455 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
456 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
457 <input type="hidden" name="branch" value="[% branch %]" />
458 <input type="hidden" name="barcode" value="[% book.barcode %]" />
459 <button type="submit" name="x"><i class="fa fa-check"></i> Check out [% book.barcode %]: [% book.title %]</button>
463 <br />No items were found by searching.
470 [% IF ( NOT_FOR_LOAN ) %]
472 [% IF ( itemtype_notforloan ) %]
473 Item type not for loan.
474 [% ELSIF ( item_notforloan ) %]
475 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
476 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
481 [% IF ( WTHDRAWN ) %]
482 <li>Item has been withdrawn</li>
485 [% IF ( RESTRICTED ) %]
486 <li>Item is restricted</li>
490 <li>Patron's address is in doubt</li>
493 [% IF ( CARD_LOST ) %]
494 <li>Patron's card is lost</li>
497 [% IF ( DEBARRED ) %]
498 <li>Patron is restricted</li>
501 [% IF ( NO_MORE_RENEWALS ) %]
502 <li>No more renewals possible</li>
505 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
506 <li>This item can not be renewed, it's an on-site checkout</li>
509 [%IF ( AGE_RESTRICTION ) %]
510 <li>Age restriction [% AGE_RESTRICTION %].</li>
514 <li>Patron's card is expired</li>
517 [% IF ( TOO_MANY ) %]
518 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
521 [% IF ( ITEMNOTSAMEBRANCH ) %]
522 <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</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 (forceallow) %]
545 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
547 [% END %] <!-- /impossible -->
549 <span class="audio-alert-success"></span>
552 <p>Item checked out</p>
556 [% INCLUDE 'patron-toolbar.inc' %]
558 No patron matched <span class="ex">[% message %]</span>
562 [% IF ( borrowers ) %]
563 [% INCLUDE 'patron-toolbar.inc' %]
565 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
566 <input type="hidden" name="restoreduedatespec" />
567 <fieldset id="circ_circulation_selectborrower" class="brief">
568 <legend>Patron selection</legend>
570 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
571 <input type="hidden" name="branch" value="[% branch %]" />
572 <input type="hidden" name="printer" value="[% printer %]" />
573 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
574 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
576 <table id="table_borrowers" class="table_borrowers">
587 [% FOREACH borrower IN borrowers %]
588 <tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">
589 <td>[% borrower.surname %], [% borrower.firstname %]</td>
590 <td>[% borrower.cardnumber %]</td>
591 <td>[% borrower.categorycode %]</td>
592 <td>[% borrower.branchcode %]</td>
593 <td>[% borrower.address %]</td>
602 <!-- BARCODE ENTRY -->
604 [% IF borrowernumber and borrower %]
607 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
608 <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>
611 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
612 <div class="yui-u first">
614 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
615 <input type="hidden" name="restoreduedatespec" />
617 <fieldset id="circ_circulation_issue" class="lastchecked">
619 <fieldset id="circ_circulation_issue">
621 [% IF ( DisplayClearScreenButton ) %]
622 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
625 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
627 <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
629 <div class="hint">Enter item barcode:</div>
631 [% IF NEEDSCONFIRMATION %]
632 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
634 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
636 <button type="submit" class="btn">Check out</button>
638 [% UNLESS noissues %]
639 <div class="date-select">
640 [% IF NEEDSCONFIRMATION %]
641 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
643 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
646 <label for="auto_renew">Automatic renewal</label>
650 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
651 [% IF ( SpecifyDueDate ) %]
652 <div class="date-select">
653 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
654 [% IF ( duedatespec ) %]
655 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
657 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
659 <label for="stickyduedate"> Remember for session:</label>
660 [% IF ( stickyduedate ) %]
661 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
663 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
665 <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>
670 [% IF Koha.Preference('OnSiteCheckouts') %]
671 <div class="onsite_checkout-select">
673 <div class="onsite-checkout-only">
674 <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>
675 <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
676 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
679 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
684 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
685 <input type="hidden" name="branch" value="[% branch %]" />
686 <input type="hidden" name="printer" value="[% printer %]" />
687 <input type="hidden" name="print" value="maybe" />
688 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
690 <input type="hidden" name="charges" value="yes" />
691 <input type="hidden" name="oldamount" value="[% amountold %]" />
695 <div class="lastchecked">
696 <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
701 [% END %]<!-- /unless noissues -->
703 [% IF ( noissues ) %]
704 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
713 [% IF ( noissues ) %]
714 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
715 <div id="circmessages" class="circmessage attention">
717 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
718 <div id="circmessages" class="circmessage warning">
722 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
723 <span class="circ-hlt">Only on-site checkouts are allowed</span>
727 <div id="circmessages" class="circmessage attention">
733 [% IF ( modifications ) %]
734 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
735 [% IF ( CAN_user_borrowers ) %]
736 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
741 [% IF ( warndeparture ) %]
742 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
743 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>
748 [% IF ( returnbeforeexpiry ) %]
749 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
750 expiry date is before the date due, the date due will be set to the expiry date
755 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
756 [% 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>
762 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
766 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
769 [% IF ( userdebarred ) %]
771 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
773 [% IF ( userdebarreddate ) %]
774 until [% userdebarreddate | $KohaDates %]
777 [% IF ( debarredcomment ) %]
778 with the explanation: <br/><i>[% debarredcomment | html_line_break %]</i>
782 <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
783 [% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
784 <span class="override_debarment">
785 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a>
791 [% 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>
796 <span class="circ-hlt">Fees & Charges:</span> Patron has <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Outstanding fees & charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]</a>.
797 [% IF ( charges_is_blocker ) %]
798 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
800 <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a> or
801 <a href="/cgi-bin/koha/members/paycollect.pl?borrowernumber=[% borrowernumber %]">Pay all fines</a></li>
806 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
813 [% IF WaitingHolds.count %]
814 <div id="holdswaiting" class="circmessage">
815 <h4>Holds waiting:</h4>
816 [% FOREACH w IN WaitingHolds %]
819 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber %]">[% w.biblio.title | html %]</a>
820 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]),
821 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
822 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %]
823 Hold placed on [% w.reservedate | $KohaDates %].
826 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
827 [% SET waiting_expires_on = w.waiting_expires_on %]
828 Waiting at [% w.branch.branchname | html %] [% IF waiting_expires_on %] until [% waiting_expires_on | $KohaDates %] [% END %]
837 <div id="circnotes" class="circmessage">
839 <p><span class="circ-hlt">[% notesmsg %]</span></p>
843 <!-- /If notes -->[% END %]
845 <div id="messages" class="circmessage">
848 [% FOREACH message IN librarian_messages %]
850 <span class="circ-hlt">
851 [% message.message_date | $KohaDates %]
852 [% Branches.GetName( message.branchcode ) %]
853 <i>"[% message.message %]"</i>
855 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
856 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);">[Delete]</a>
860 [% FOREACH message IN patron_messages %]
861 <li><span class="">[% message.message_date | $KohaDates %] [% Branches.GetName( message.branchcode )%] <i>"[% message.message %]"</i></span>
862 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
863 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id %]&borrowernumber=[% message.borrowernumber %]">[Delete]</a>
872 <div class="yui-g"><div id="patronlists" class="toptabs">
876 [% IF ( issuecount ) %]
877 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
879 <a href="#checkouts">0 Checkouts</a>
883 [% IF relatives_issues_count %]
884 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
888 [% IF ( holds_count ) %]
889 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
891 <a href="#reserves" id="holds-tab">0 Holds</a>
894 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
897 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
899 [% INCLUDE "checkouts-table.inc" %]
901 [% IF ( relatives_issues_count ) %]
902 <div id="relatives-issues">
903 <table id="relatives-issues-table">
906 <th scope="col">Due date (unformatted, hidden)</th>
907 <th scope="col">Due date</th>
908 <th scope="col">Title</th>
909 <th scope="col">Item type</th>
910 <th scope="col">Location</th>
911 <th scope="col">Checked out on</th>
912 <th scope="col">Checked out from</th>
913 <th scope="col">Call no</th>
914 <th scope="col">Charge</th>
915 <th scope="col">Fine</th>
916 <th scope="col">Price</th>
917 <th scope="col">Patron</th>
924 [% INCLUDE borrower_debarments.inc %]
927 [% IF ( holds_count ) %]
928 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
929 <input type="hidden" name="from" value="circ" />
930 <table id="holds-table" style="width: 100% !Important;">
946 <fieldset class="action">
947 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
951 [% IF SuspendHoldsIntranet %]
952 <fieldset class="action">
953 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
954 <input type="hidden" name="from" value="circ" />
955 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
956 <input type="submit" value="Suspend all holds" />
958 [% IF AutoResumeSuspendedHolds %]
959 <label for="suspend_until">until</label>
960 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
961 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
966 <fieldset class="action">
967 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
968 <input type="hidden" name="from" value="circ" />
969 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
970 <input type="hidden" name="suspend" value="0" />
971 <input type="submit" value="Resume all suspended holds" />
974 [% END # IF SuspendHoldsIntranet %]
977 <p>Patron has nothing on hold.</p>
979 </div> <!-- reservesloop -->
981 [% ELSIF borrowernumber %]
982 <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
983 [% END %] <!-- borrowernumber and borrower-->
989 [% UNLESS ( borrowers ) %][% IF borrowernumber and borrower %]<div class="yui-b">
990 [% INCLUDE 'circ-menu.inc' %]
991 </div>[% END %][% END %]
994 <div id="barcodeSubmittedModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
995 <div class="modal-header">
996 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
999 <div class="modal-body">
1000 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1003 [% INCLUDE 'intranet-bottom.inc' %]