4 [% USE ColumnsSettings %]
5 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
6 [% SET exports_enabled = 1 %]
8 [% USE AuthorisedValues %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 [% SET destination = "circ" %]
11 <title>Koha › Circulation
12 [% IF borrowernumber %]
13 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% INCLUDE 'calendar.inc' %]
19 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
20 [% INCLUDE 'strings.inc' %]
21 [% INCLUDE 'datatables.inc' %]
22 [% INCLUDE 'columns_settings.inc' %]
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
24 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
25 [% INCLUDE 'timepicker.inc' %]
26 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
27 <script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script>
28 <script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script>
29 <script type="text/javascript" src="[% themelang %]/js/holds.js"></script>
30 <script type="text/javascript">
32 /* Set some variable needed in circulation.js */
33 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
34 var interface = "[% interface %]";
35 var theme = "[% theme %]";
36 var borrowernumber = "[% borrowernumber %]";
37 var branchcode = "[% branch %]";
38 var exports_enabled = "[% exports_enabled %]";
39 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && AllowRenewalLimitOverride)? 1: 0 %];
40 var script = "circulation";
41 var relatives_borrowernumbers = new Array();
42 [% FOREACH b IN relatives_borrowernumbers %]
43 relatives_borrowernumbers.push("[% b %]");
46 var MSG_ADD_MESSAGE = _("Add a new message");
47 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
49 columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %]
51 [% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %]
52 [% UNLESS ( borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
55 function toggle_onsite_checkout(){
56 if ( $("#onsite_checkout").attr('checked') ) {
57 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1%]")
58 [% IF !Koha.Preference('SpecifyDueDate') %]
59 $("#duedatespec").datetimepicker('destroy');
62 $("#duedatespec").datetimepicker({
63 onClose: function(dateText, inst) { $("#barcode").focus(); },
70 $(document).ready(function() {
71 $('#mainform').on('submit',function() {
72 $('#barcode').on('keypress',function(event) {
73 $('#barcodeSubmittedModal').modal();
74 event.preventDefault(); }
79 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
80 // listen submit to trigger qslip on empty checkout
81 $('#mainform').bind('submit',function() {
82 if ($('#barcode').val() == '') {
83 return printx_window( '[% CircAutoPrintQuickSlip %]' );
87 toggle_onsite_checkout();
88 $("#onsite_checkout").click(function(){
89 toggle_onsite_checkout();
92 var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
94 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
96 "aaSorting": [ 2, "asc" ],
100 $(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) {
101 $('#table_borrowers tbody tr').removeClass('selected');
102 $(this).addClass('selected');
103 if (event.target.type !== 'radio') {
104 $(':radio', this).attr('checked', 'true')
113 <body id="circ_circulation" class="circ">
115 [% INCLUDE 'header.inc' %]
116 [% INCLUDE 'circ-search.inc' %]
118 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
119 [% IF ( borrowernumber ) %]
120 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
122 <strong>Checkouts</strong>
125 [% IF ( $borrowers ) %]
126 <div id="doc" class="yui-t7">
132 <div id="doc3" class="yui-t2">
139 [% IF ( borrowernumber ) %]
140 [% INCLUDE 'members-toolbar.inc' %]
143 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
144 <div style="display: none;" id="add_message_form">
145 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
146 <fieldset id="borrower_messages" class="brief">
147 <legend>Leave a message</legend>
150 <label for="message_type">Add a message for:</label>
151 <select name="message_type" id="message_type">
152 <option value="L">Other librarians</option>
153 <option value="B">[% firstname %]</option>
156 [% IF ( canned_bor_notes_loop ) %]
158 <label for="type">Predefined notes: </label>
159 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
160 <option value="">Select note</option>
161 [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
162 <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
168 <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
171 <fieldset class="action">
172 <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
175 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
176 <input type="hidden" name="branchcode" value="[% branch %]" />
181 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
183 [% IF additional_materials %]
184 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
185 [% additional_materials %]
189 [% IF ( alert.ITEM_LOST ) %]
190 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
193 [% IF ( alert.OTHER_CHARGES ) %]
194 <div class="dialog message">The patron has unpaid charges for reserves, rentals etc of [% alert.OTHER_CHARGES %]</div>
197 [% IF ( NEEDSCONFIRMATION ) %]
200 <div id="circ_needsconfirmation" class="dialog alert">
201 [% IF CAN_user_circulate_force_checkout %]
202 <h3>Please confirm checkout</h3>
204 <h3>Cannot check out</h3>
208 [%IF ( AGE_RESTRICTION ) %]
209 <li>Age restriction [% AGE_RESTRICTION %].
210 [% IF CAN_user_circulate_force_checkout %]
217 <li>The patron has a debt of [% DEBT %].</li>
219 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
220 <li>Rental charge for this item: [% RENTALCHARGE %]</li>
223 [% IF ( RENEW_ISSUE ) %]
224 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
227 [% IF ( RESERVE_WAITING ) %]
228 <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>
231 [% IF ( RESERVED ) %]
232 <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>
235 [% IF ( ISSUED_TO_ANOTHER ) %]
236 <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 %]).
237 [% IF CAN_user_circulate_force_checkout %]
238 Check in and check out?
243 [% IF ( TOO_MANY ) %]
244 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
247 [% IF ( BORRNOTSAMEBRANCH ) %]
248 <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
251 [% IF ( PATRON_CANT ) %]
252 <li>This patron can't check out this item per library circulation policy</li>
255 [% IF ( NOT_FOR_LOAN_FORCING ) %]
257 [% IF ( itemtype_notforloan ) %]
258 Item type is normally not for loan.
259 [% ELSIF ( item_notforloan ) %]
260 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
261 Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
263 [% IF CAN_user_circulate_force_checkout %]
269 [% IF ( USERBLOCKEDOVERDUE ) %]
270 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
271 [% IF CAN_user_circulate_force_checkout %]
277 [% IF ( ITEM_LOST ) %]
278 <li>This item has been lost with a status of "[% ITEM_LOST %]".
279 [% IF CAN_user_circulate_force_checkout %]
286 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
289 [% IF BIBLIO_ALREADY_ISSUED %]
291 Patron has already checked out another item from this record.
292 [% IF CAN_user_circulate_force_checkout %]
300 <script language="JavaScript" type="text/javascript">
301 $(document).ready(function() {
302 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
307 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
308 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
310 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
312 [% IF ( RESERVED ) %]
314 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
315 <label for="cancelreserve">Cancel hold</label>
319 [% IF ( RESERVE_WAITING ) %]
321 <label for="cancelreserve">Cancel hold</label>
322 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
323 <label for="revertreserve">Revert waiting status</label>
324 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
328 <input type="hidden" name="barcode" value="[% barcode |html %]" />
329 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
330 <input type="hidden" name="issueconfirmed" value="1" />
331 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
332 [% IF ( INVALID_DATE ) %]
334 <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
335 <label for="duedatespec">Due date</label>
338 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
340 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
341 <input type="hidden" name="branch" value="[% branch %]" />
342 [% IF ( RENEW_ISSUE ) %]
343 <input type="submit" class="approve" value="Yes, renew (Y)" accesskey="y" />
345 <input type="submit" class="approve" value="Yes, check out (Y)" accesskey="y" />
347 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout %]" />
351 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
352 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
353 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
354 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
355 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
356 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
357 [% IF ( RENEW_ISSUE ) %]
358 <input type="submit" class="deny" value="No, don't renew (N)" accesskey="n" />
360 <input type="submit" class="deny" value="No, don't check out (N)" accesskey="n" />
363 <input type="submit" class="deny" value="Continue" />
368 [% END %] <!-- NEEDSCONFIRMATION -->
370 [% IF ( IMPOSSIBLE ) %]
373 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
377 <div id="circ_impossible" class="dialog alert">
378 <!-- RESULT OF ISSUING REQUEST -->
381 <li>Local use recorded</li>
384 [% IF ( INVALID_DATE ) %]
385 <li>The due date "[% INVALID_DATE %]" is invalid</li>
388 [% IF ( UNKNOWN_BARCODE ) %]
389 <li>The barcode was not found [% barcode |html %]
390 [% IF ( fast_cataloging ) %]
391 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
392 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
396 [% IF ( FALLBACK ) %]
398 <br />The following items were found by searching:
399 [% FOREACH book IN options %]
401 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
402 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
403 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
404 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
405 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
406 <input type="hidden" name="branch" value="[% branch %]" />
407 <input type="hidden" name="barcode" value="[% book.barcode %]" />
408 <input type="submit" name="x" value="Check out [% book.barcode %]: [% book.title %]" />
412 <br />No items were found by searching.
419 [% IF ( NOT_FOR_LOAN ) %]
421 [% IF ( itemtype_notforloan ) %]
422 Item type not for loan.
423 [% ELSIF ( item_notforloan ) %]
424 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
425 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
430 [% IF ( WTHDRAWN ) %]
431 <li>Item has been withdrawn</li>
434 [% IF ( RESTRICTED ) %]
435 <li>Item is restricted</li>
439 <li>Patron's address is in doubt</li>
442 [% IF ( CARD_LOST ) %]
443 <li>Patron's card is lost</li>
446 [% IF ( DEBARRED ) %]
447 <li>Patron is restricted</li>
450 [% IF ( NO_MORE_RENEWALS ) %]
451 <li>No more renewals possible</li>
454 [%IF ( AGE_RESTRICTION ) %]
455 <li>Age restriction [% AGE_RESTRICTION %].</li>
459 <li>Patron's card is expired</li>
462 [% IF ( TOO_MANY ) %]
463 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
466 [% IF ( ITEMNOTSAMEBRANCH ) %]
467 <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
470 [% IF ( USERBLOCKEDWITHENDDATE ) %]
471 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
474 [% IF ( USERBLOCKEDNOENDDATE ) %]
475 <li>Patron has an indefinite restriction.</li>
478 [% IF ( USERBLOCKEDOVERDUE ) %]
479 <li>Checkouts are BLOCKED because patron has overdue items.</li>
483 [% IF (forceallow) %]
484 <li>Restriction overridden temporarily.</li>
490 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
493 [% IF (forceallow) %]
494 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
497 [% END %] <!-- /impossible -->
500 <p>Item checked out</p>
504 [% INCLUDE 'patron-toolbar.inc' %]
506 No patron matched <span class="ex">[% message %]</span>
511 [% IF ( borrowers ) %]
512 [% INCLUDE 'patron-toolbar.inc' %]
514 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
515 <fieldset id="circ_circulation_selectborrower" class="brief">
516 <legend>Patron selection</legend>
518 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
519 <input type="hidden" name="branch" value="[% branch %]" />
520 <input type="hidden" name="printer" value="[% printer %]" />
521 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
522 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
524 <table id="table_borrowers">
536 [% FOREACH borrower IN borrowers %]
538 <td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td>
539 <td>[% borrower.surname %], [% borrower.firstname %]</td>
540 <td>[% borrower.cardnumber %]</td>
541 <td>[% borrower.categorycode %]</td>
542 <td>[% borrower.branchcode %]</td>
543 <td>[% borrower.address %]</td>
548 <fieldset class="action"><input type="submit" value="Select" /></fieldset>
553 <!-- BARCODE ENTRY -->
555 [% IF ( borrowernumber ) %]
557 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
559 <div class="yui-u first">
566 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
568 <fieldset id="circ_circulation_issue" class="lastchecked">
570 <fieldset id="circ_circulation_issue">
572 [% IF ( DisplayClearScreenButton ) %]
573 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
576 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
578 <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
580 <div class="hint">Enter item barcode:</div>
582 [% IF NEEDSCONFIRMATION %]
583 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
585 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
587 <button type="submit" class="btn">Check out</button>
589 <div class="date-select">
590 [% IF NEEDSCONFIRMATION %]
591 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
593 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
595 <label for="auto_renew">Automatic renewal</label>
598 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
599 [% IF ( SpecifyDueDate ) %]
600 <div class="date-select">
601 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
602 [% IF ( duedatespec ) %]
603 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
605 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
607 <label for="stickyduedate"> Remember for session:</label>
608 [% IF ( stickyduedate ) %]
609 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
611 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
613 <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>
618 [% IF Koha.Preference('OnSiteCheckouts') %]
619 <div class="onsite_checkout-select">
621 <div class="onsite-checkout-only">
622 <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>
623 <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
624 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
627 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
632 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
633 <input type="hidden" name="branch" value="[% branch %]" />
634 <input type="hidden" name="printer" value="[% printer %]" />
635 <input type="hidden" name="print" value="maybe" />
636 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
638 <input type="hidden" name="charges" value="yes" />
639 <input type="hidden" name="oldamount" value="[% amountold %]" />
643 <div class="lastchecked">
644 <p><strong>Checked out: </strong>[% issue.item.biblio.title %] ([% issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
649 [% END %]<!-- /unless noissues -->
651 [% IF ( noissues ) %]
652 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
662 [% IF ( noissues ) %]
663 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
664 <div id="circmessages" class="circmessage attention">
666 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
667 <div id="circmessages" class="circmessage warning">
671 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
672 <span class="circ-hlt">Only on-site checkouts are allowed</span>
676 <div id="circmessages" class="circmessage attention">
682 [% IF ( warndeparture ) %]
683 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
684 Patron's card expires on [% expiry %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&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>
689 [% IF ( returnbeforeexpiry ) %]
690 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
691 expiry date is before the date due, the date due will be set to the expiry date
696 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
697 [% IF ( expiry ) %]Patron's card expired on [% expiry %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&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>
703 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
707 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
710 [% IF ( userdebarred ) %]
712 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
714 [% IF ( userdebarreddate ) %]
715 until [% userdebarreddate %]
718 [% IF ( debarredcomment ) %]
719 with the explanation: <br/><i>[% debarredcomment | html_line_break %]</i>
723 <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="icon-ban-circle"></i> View restrictions</a>
724 [% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
725 <span class="override_debarment">
726 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% borrowernumber %]" class="btn btn-small">Override restriction temporarily</a>
732 [% 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>
737 <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>.
738 [% IF ( charges_is_blocker ) %]
739 Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
741 <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a></li>
746 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
755 [% IF ( WaitingReserveLoop ) %]
756 <div id="holdswaiting" class="circmessage">
757 <h4>Holds waiting:</h4>
758 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
760 <li> <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% WaitingReserveLoo.biblionumber %]">[% WaitingReserveLoo.title |html %]</a> ([% WaitingReserveLoo.itemtype %]), [% IF ( WaitingReserveLoo.author ) %]by [% WaitingReserveLoo.author %][% END %] [% IF ( WaitingReserveLoo.itemcallnumber ) %][[% WaitingReserveLoo.itemcallnumber %]] [% END %]Hold placed on [% WaitingReserveLoo.reservedate %].
761 [% IF ( WaitingReserveLoo.waitingat ) %]
762 <br />[% IF ( WaitingReserveLoo.waitinghere ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]Waiting at [% WaitingReserveLoo.waitingat %]</strong>
768 <!-- /If WaitingReserveLoop -->[% END %]
770 <div id="circnotes" class="circmessage">
772 <p><span class="circ-hlt">[% notesmsg %]</span></p>
776 <!-- /If notes -->[% END %]
778 <div id="messages" class="circmessage">
781 [% FOREACH lib_messages_loo IN lib_messages_loop %]
783 <span class="circ-hlt">
784 [% lib_messages_loo.message_date_formatted %]
785 [% lib_messages_loo.branchcode %]
786 <i>"[% lib_messages_loo.message %]"</i>
788 [% IF ( lib_messages_loo.can_delete ) %]
789 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
791 [% IF ( all_messages_del ) %]
792 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
797 [% FOREACH bor_messages_loo IN bor_messages_loop %]
798 <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>
799 [% ELSIF ( all_messages_del ) %]
800 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
807 <!-- /If flagged -->[% END %]
814 <div class="yui-g"><div id="patronlists" class="toptabs">
818 [% IF ( issuecount ) %]
819 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
821 <a href="#checkouts">0 Checkouts</a>
825 [% IF relatives_issues_count %]
826 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
830 [% IF ( holds_count ) %]
831 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
833 <a href="#reserves" id="holds-tab">0 Holds</a>
836 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
839 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
841 [% INCLUDE "checkouts-table.inc" %]
843 [% IF ( relatives_issues_count ) %]
844 <div id="relatives-issues">
845 <table id="relatives-issues-table">
848 <th scope="col">Due date (unformatted, hidden)</th>
849 <th scope="col">Due date</th>
850 <th scope="col">Title</th>
851 <th scope="col">Item type</th>
852 <th scope="col">Checked out on</th>
853 <th scope="col">Checked out from</th>
854 <th scope="col">Call no</th>
855 <th scope="col">Charge</th>
856 <th scope="col">Price</th>
857 <th scope="col">Patron</th>
864 [% INCLUDE borrower_debarments.inc %]
867 [% IF ( holds_count ) %]
868 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
869 <input type="hidden" name="from" value="circ" />
870 <table id="holds-table" style="width: 100% !Important;">
884 <fieldset class="action">
885 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
889 [% IF SuspendHoldsIntranet %]
890 <fieldset class="action">
891 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
892 <input type="hidden" name="from" value="circ" />
893 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
894 <input type="submit" value="Suspend all holds" />
896 [% IF AutoResumeSuspendedHolds %]
897 <label for="suspend_until">until</label>
898 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
899 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
904 <fieldset class="action">
905 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
906 <input type="hidden" name="from" value="circ" />
907 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
908 <input type="hidden" name="suspend" value="0" />
909 <input type="submit" value="Resume all suspended holds" />
912 [% END # IF SuspendHoldsIntranet %]
915 <p>Patron has nothing on hold.</p>
917 </div> <!-- reservesloop -->
919 [% END %] <!-- borrowernumber -->
927 [% UNLESS ( borrowers ) %][% IF ( borrowernumber ) %]<div class="yui-b">
928 [% INCLUDE 'circ-menu.inc' %]
929 </div>[% END %][% END %]
932 <div id="barcodeSubmittedModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
933 <div class="modal-header">
934 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
937 <div class="modal-body">
938 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
941 [% INCLUDE 'intranet-bottom.inc' %]