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 %]
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 && AllowRenewalLimitOverride)? 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_ADD_MESSAGE = _("Add a new message");
48 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
50 columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %]
52 [% IF ( borrowernumber ) %]
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").attr('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) { $("#barcode").focus(); },
78 function Dopop(link) {
79 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
81 $(document).ready(function() {
82 $('#mainform').on('submit',function() {
83 if ($("#barcode") && $("#barcode").val()) {
84 $('#barcode').on('keypress',function(event) {
85 $('#barcodeSubmittedModal').modal();
86 event.preventDefault(); }
91 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
92 // listen submit to trigger qslip on empty checkout
93 $('#mainform').bind('submit',function() {
94 if ($('#barcode').val() == '') {
95 return printx_window( '[% CircAutoPrintQuickSlip %]' );
99 toggle_onsite_checkout();
100 $("#onsite_checkout").click(function(){
101 toggle_onsite_checkout();
104 var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
106 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
108 "aaSorting": [ 2, "asc" ],
112 $(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) {
113 $('#table_borrowers tbody tr').removeClass('selected');
114 $(this).addClass('selected');
115 if (event.target.type !== 'radio') {
116 $(':radio', this).attr('checked', 'true')
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 ) %]
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 ) %]
152 [% INCLUDE 'members-toolbar.inc' %]
155 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
156 <div style="display: none;" id="add_message_form">
157 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
158 <fieldset id="borrower_messages" class="brief">
159 <legend>Leave a message</legend>
162 <label for="message_type">Add a message for:</label>
163 <select name="message_type" id="message_type">
164 <option value="L">Other librarians</option>
165 <option value="B">[% firstname %]</option>
168 [% IF ( canned_bor_notes_loop ) %]
170 <label for="type">Predefined notes: </label>
171 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
172 <option value="">Select note</option>
173 [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
174 <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
180 <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
183 <fieldset class="action">
184 <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
187 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
188 <input type="hidden" name="branchcode" value="[% branch %]" />
193 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
195 [% IF additional_materials %]
196 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
197 [% additional_materials %]
201 [% IF ( alert.ITEM_LOST ) %]
202 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
205 [% IF ( alert.OTHER_CHARGES ) %]
206 <div class="dialog message">The patron has unpaid charges for reserves, rentals etc of [% alert.OTHER_CHARGES %]</div>
209 [% IF ( NEEDSCONFIRMATION ) %]
212 <div id="circ_needsconfirmation" class="dialog alert">
213 [% IF CAN_user_circulate_force_checkout %]
214 <h3>Please confirm checkout</h3>
216 <h3>Cannot check out</h3>
220 [%IF ( AGE_RESTRICTION ) %]
221 <li>Age restriction [% AGE_RESTRICTION %].
222 [% IF CAN_user_circulate_force_checkout %]
229 <li>The patron has a debt of [% DEBT %].</li>
231 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
232 <li>Rental charge for this item: [% RENTALCHARGE %]</li>
235 [% IF ( RENEW_ISSUE ) %]
236 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
239 [% IF ( RESERVE_WAITING ) %]
240 <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 %]</li>
243 [% IF ( RESERVED ) %]
244 <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 %]</li>
247 [% IF ( ISSUED_TO_ANOTHER ) %]
248 <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 %]).
249 [% IF CAN_user_circulate_force_checkout %]
250 Check in and check out?
255 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
256 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
259 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
260 <li>Too many on-site checked out. [% current_loan_count %] on-site checked out, only [% max_loans_allowed %] are allowed.</li>
263 [% IF ( BORRNOTSAMEBRANCH ) %]
264 <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
267 [% IF ( PATRON_CANT ) %]
268 <li>This patron can't check out this item per library circulation policy</li>
271 [% IF ( NOT_FOR_LOAN_FORCING ) %]
273 [% IF ( itemtype_notforloan ) %]
274 Item type is normally not for loan.
275 [% ELSIF ( item_notforloan ) %]
276 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
277 Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
279 [% IF CAN_user_circulate_force_checkout %]
285 [% IF ( USERBLOCKEDOVERDUE ) %]
286 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
287 [% IF CAN_user_circulate_force_checkout %]
293 [% IF ( ITEM_LOST ) %]
294 <li>This item has been lost with a status of "[% ITEM_LOST %]".
295 [% IF CAN_user_circulate_force_checkout %]
302 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
305 [% IF BIBLIO_ALREADY_ISSUED %]
307 Patron has already checked out another item from this record.
308 [% IF CAN_user_circulate_force_checkout %]
316 <script language="JavaScript" type="text/javascript">
317 $(document).ready(function() {
318 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
323 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
324 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
326 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
328 [% IF ( RESERVED ) %]
330 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
331 <label for="cancelreserve">Cancel hold</label>
335 [% IF ( RESERVE_WAITING ) %]
337 <label for="cancelreserve">Cancel hold</label>
338 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
339 <label for="revertreserve">Revert waiting status</label>
340 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
344 <input type="hidden" name="barcode" value="[% barcode |html %]" />
345 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
346 <input type="hidden" name="issueconfirmed" value="1" />
347 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
348 [% IF ( INVALID_DATE ) %]
350 <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
351 <label for="duedatespec">Due date</label>
354 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
356 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
357 <input type="hidden" name="branch" value="[% branch %]" />
358 [% IF ( RENEW_ISSUE ) %]
359 <input type="submit" class="approve" value="Yes, renew (Y)" accesskey="y" />
361 <input type="submit" class="approve" value="Yes, check out (Y)" accesskey="y" />
363 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout %]" />
367 [% IF ( RESERVED ) %]
368 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
369 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
370 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
371 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
372 <input class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip');this.form.submit();" value="Don't check out and print slip (P)">
376 [% IF ( RESERVE_WAITING ) %]
377 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
378 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
379 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
380 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
381 <input class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip');this.form.submit();" value="Don't check out and print slip (P)">
385 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
386 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
387 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
388 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
389 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
390 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
391 [% IF ( RENEW_ISSUE ) %]
392 <input type="submit" class="deny" value="No, don't renew (N)" accesskey="n" />
394 <input type="submit" class="deny" value="No, don't check out (N)" accesskey="n" />
397 <input type="submit" class="deny" value="Continue" />
402 [% END %] <!-- NEEDSCONFIRMATION -->
404 [% IF ( IMPOSSIBLE ) %]
407 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
411 <div id="circ_impossible" class="dialog alert">
412 <!-- RESULT OF ISSUING REQUEST -->
415 <li>Local use recorded</li>
418 [% IF ( INVALID_DATE ) %]
419 <li>The due date "[% INVALID_DATE %]" is invalid</li>
422 [% IF ( UNKNOWN_BARCODE ) %]
423 <li>The barcode was not found [% barcode |html %]
424 [% IF ( fast_cataloging ) %]
425 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
426 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
430 [% IF ( FALLBACK ) %]
432 <br />The following items were found by searching:
433 [% FOREACH book IN options %]
435 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
436 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
437 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
438 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
439 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
440 <input type="hidden" name="branch" value="[% branch %]" />
441 <input type="hidden" name="barcode" value="[% book.barcode %]" />
442 <input type="submit" name="x" value="Check out [% book.barcode %]: [% book.title %]" />
446 <br />No items were found by searching.
453 [% IF ( NOT_FOR_LOAN ) %]
455 [% IF ( itemtype_notforloan ) %]
456 Item type not for loan.
457 [% ELSIF ( item_notforloan ) %]
458 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
459 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
464 [% IF ( WTHDRAWN ) %]
465 <li>Item has been withdrawn</li>
468 [% IF ( RESTRICTED ) %]
469 <li>Item is restricted</li>
473 <li>Patron's address is in doubt</li>
476 [% IF ( CARD_LOST ) %]
477 <li>Patron's card is lost</li>
480 [% IF ( DEBARRED ) %]
481 <li>Patron is restricted</li>
484 [% IF ( NO_MORE_RENEWALS ) %]
485 <li>No more renewals possible</li>
488 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
489 <li>This item can not be renewed, it's an on-site checkout</li>
492 [%IF ( AGE_RESTRICTION ) %]
493 <li>Age restriction [% AGE_RESTRICTION %].</li>
497 <li>Patron's card is expired</li>
500 [% IF ( TOO_MANY ) %]
501 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
504 [% IF ( ITEMNOTSAMEBRANCH ) %]
505 <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
508 [% IF ( USERBLOCKEDWITHENDDATE ) %]
509 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
512 [% IF ( USERBLOCKEDNOENDDATE ) %]
513 <li>Patron has an indefinite restriction.</li>
516 [% IF ( USERBLOCKEDOVERDUE ) %]
517 <li>Checkouts are BLOCKED because patron has overdue items.</li>
521 [% IF (forceallow) %]
522 <li>Restriction overridden temporarily.</li>
528 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
531 [% IF (forceallow) %]
532 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
535 [% END %] <!-- /impossible -->
538 <p>Item checked out</p>
542 [% INCLUDE 'patron-toolbar.inc' %]
544 No patron matched <span class="ex">[% message %]</span>
549 [% IF ( borrowers ) %]
550 [% INCLUDE 'patron-toolbar.inc' %]
552 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
553 <fieldset id="circ_circulation_selectborrower" class="brief">
554 <legend>Patron selection</legend>
556 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
557 <input type="hidden" name="branch" value="[% branch %]" />
558 <input type="hidden" name="printer" value="[% printer %]" />
559 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
560 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
562 <table id="table_borrowers">
574 [% FOREACH borrower IN borrowers %]
576 <td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td>
577 <td>[% borrower.surname %], [% borrower.firstname %]</td>
578 <td>[% borrower.cardnumber %]</td>
579 <td>[% borrower.categorycode %]</td>
580 <td>[% borrower.branchcode %]</td>
581 <td>[% borrower.address %]</td>
586 <fieldset class="action"><input type="submit" value="Select" /></fieldset>
591 <!-- BARCODE ENTRY -->
593 [% IF ( borrowernumber ) %]
596 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
597 <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>
600 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
602 <div class="yui-u first">
609 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
611 <fieldset id="circ_circulation_issue" class="lastchecked">
613 <fieldset id="circ_circulation_issue">
615 [% IF ( DisplayClearScreenButton ) %]
616 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
619 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
621 <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
623 <div class="hint">Enter item barcode:</div>
625 [% IF NEEDSCONFIRMATION %]
626 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
628 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
630 <button type="submit" class="btn">Check out</button>
632 <div class="date-select">
633 [% IF NEEDSCONFIRMATION %]
634 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
636 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
638 <label for="auto_renew">Automatic renewal</label>
641 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
642 [% IF ( SpecifyDueDate ) %]
643 <div class="date-select">
644 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
645 [% IF ( duedatespec ) %]
646 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
648 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
650 <label for="stickyduedate"> Remember for session:</label>
651 [% IF ( stickyduedate ) %]
652 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
654 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
656 <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>
661 [% IF Koha.Preference('OnSiteCheckouts') %]
662 <div class="onsite_checkout-select">
664 <div class="onsite-checkout-only">
665 <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>
666 <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
667 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
670 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
675 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
676 <input type="hidden" name="branch" value="[% branch %]" />
677 <input type="hidden" name="printer" value="[% printer %]" />
678 <input type="hidden" name="print" value="maybe" />
679 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
681 <input type="hidden" name="charges" value="yes" />
682 <input type="hidden" name="oldamount" value="[% amountold %]" />
686 <div class="lastchecked">
687 <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
692 [% END %]<!-- /unless noissues -->
694 [% IF ( noissues ) %]
695 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
705 [% IF ( noissues ) %]
706 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
707 <div id="circmessages" class="circmessage attention">
709 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
710 <div id="circmessages" class="circmessage warning">
714 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
715 <span class="circ-hlt">Only on-site checkouts are allowed</span>
719 <div id="circmessages" class="circmessage attention">
725 [% IF ( warndeparture ) %]
726 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
727 Patron's card expires on [% expiry %] <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>
732 [% IF ( returnbeforeexpiry ) %]
733 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
734 expiry date is before the date due, the date due will be set to the expiry date
739 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
740 [% IF ( expiry ) %]Patron's card expired on [% expiry %][% 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>
746 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
750 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
753 [% IF ( userdebarred ) %]
755 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
757 [% IF ( userdebarreddate ) %]
758 until [% userdebarreddate %]
761 [% IF ( debarredcomment ) %]
762 with the explanation: <br/><i>[% debarredcomment | html_line_break %]</i>
766 <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="icon-ban-circle"></i> View restrictions</a>
767 [% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
768 <span class="override_debarment">
769 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a>
775 [% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues:</span> Patron has <span class="circ-hlt">ITEMS OVERDUE</span>. See highlighted items <a href="#checkouts">below</a>[% END %]</li>
780 <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>.
781 [% IF ( charges_is_blocker ) %]
782 Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
784 <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a></li>
789 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
798 [% IF ( WaitingHolds ) %]
799 <div id="holdswaiting" class="circmessage">
800 <h4>Holds waiting:</h4>
801 [% FOREACH w IN WaitingHolds %]
804 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber %]">[% w.biblio.title | html %]</a>
805 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) %]),
806 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
807 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber %]] [% END %]
808 Hold placed on [% w.reservedate | $KohaDates %].
811 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
812 [% SET waiting_expires_on = w.waiting_expires_on %]
813 Waiting at [% w.branch.branchname | html %] [% IF waiting_expires_on %] until [% waiting_expires_on | $KohaDates %] [% END %]
822 <div id="circnotes" class="circmessage">
824 <p><span class="circ-hlt">[% notesmsg %]</span></p>
828 <!-- /If notes -->[% END %]
830 <div id="messages" class="circmessage">
833 [% FOREACH lib_messages_loo IN lib_messages_loop %]
835 <span class="circ-hlt">
836 [% lib_messages_loo.message_date_formatted %]
837 [% lib_messages_loo.branchcode %]
838 <i>"[% lib_messages_loo.message %]"</i>
840 [% IF ( lib_messages_loo.can_delete ) %]
841 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
843 [% IF ( all_messages_del ) %]
844 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
849 [% FOREACH bor_messages_loo IN bor_messages_loop %]
850 <li><span class="">[% bor_messages_loo.message_date_formatted %] [% bor_messages_loo.branchcode %] <i>"[% bor_messages_loo.message %]"</i></span> [% IF ( bor_messages_loo.can_delete ) %]<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
851 [% ELSIF ( all_messages_del ) %]
852 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
859 <!-- /If flagged -->[% END %]
866 <div class="yui-g"><div id="patronlists" class="toptabs">
870 [% IF ( issuecount ) %]
871 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
873 <a href="#checkouts">0 Checkouts</a>
877 [% IF relatives_issues_count %]
878 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
882 [% IF ( holds_count ) %]
883 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
885 <a href="#reserves" id="holds-tab">0 Holds</a>
888 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
891 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
893 [% INCLUDE "checkouts-table.inc" %]
895 [% IF ( relatives_issues_count ) %]
896 <div id="relatives-issues">
897 <table id="relatives-issues-table">
900 <th scope="col">Due date (unformatted, hidden)</th>
901 <th scope="col">Due date</th>
902 <th scope="col">Title</th>
903 <th scope="col">Item type</th>
904 <th scope="col">Location</th>
905 <th scope="col">Checked out on</th>
906 <th scope="col">Checked out from</th>
907 <th scope="col">Call no</th>
908 <th scope="col">Charge</th>
909 <th scope="col">Fine</th>
910 <th scope="col">Price</th>
911 <th scope="col">Patron</th>
918 [% INCLUDE borrower_debarments.inc %]
921 [% IF ( holds_count ) %]
922 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
923 <input type="hidden" name="from" value="circ" />
924 <table id="holds-table" style="width: 100% !Important;">
939 <fieldset class="action">
940 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
944 [% IF SuspendHoldsIntranet %]
945 <fieldset class="action">
946 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
947 <input type="hidden" name="from" value="circ" />
948 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
949 <input type="submit" value="Suspend all holds" />
951 [% IF AutoResumeSuspendedHolds %]
952 <label for="suspend_until">until</label>
953 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
954 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
959 <fieldset class="action">
960 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
961 <input type="hidden" name="from" value="circ" />
962 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
963 <input type="hidden" name="suspend" value="0" />
964 <input type="submit" value="Resume all suspended holds" />
967 [% END # IF SuspendHoldsIntranet %]
970 <p>Patron has nothing on hold.</p>
972 </div> <!-- reservesloop -->
974 [% END %] <!-- borrowernumber -->
982 [% UNLESS ( borrowers ) %][% IF ( borrowernumber ) %]<div class="yui-b">
983 [% INCLUDE 'circ-menu.inc' %]
984 </div>[% END %][% END %]
987 <div id="barcodeSubmittedModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
988 <div class="modal-header">
989 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
992 <div class="modal-body">
993 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
996 [% INCLUDE 'intranet-bottom.inc' %]