7 [% USE ColumnsSettings %]
10 [% USE AuthorisedValues %]
11 [% SET footerjs = 1 %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 [% SET destination = "circ" %]
14 <title>Koha › Circulation
16 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %]
19 [% INCLUDE 'doc-head-close.inc' %]
22 <body id="circ_circulation" class="circ">
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'circ-search.inc' %]
27 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
29 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
31 <strong>Checkouts</strong>
34 [% IF ( $borrowers ) %]
35 <div id="doc" class="yui-t7">
41 <div id="doc3" class="yui-t2">
49 [% INCLUDE 'members-toolbar.inc' %]
52 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
53 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
56 <div id="autoswitched" class="dialog message">Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.</div>
59 [% IF additional_materials %]
60 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
61 [% additional_materials | html %]
65 [% IF ( alert.ITEM_LOST ) %]
66 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
69 [% IF ( alert.OTHER_CHARGES ) %]
70 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
73 [% IF alert.HIGHHOLDS %]
74 <div class="dialog message">High demand item. <b>Loan period was not shortened due to override.</b> Shortened due date would have been [% alert.HIGHHOLDS.returndate | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).</div>
77 [% IF alert.RETURNED_FROM_ANOTHER %]
78 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
81 [% IF ( nopermission ) %]
82 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
85 [% IF ( NEEDSCONFIRMATION ) %]
88 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
89 [% IF CAN_user_circulate_force_checkout %]
90 <h3>Please confirm checkout</h3>
92 <h3>Cannot check out</h3>
96 [%IF ( AGE_RESTRICTION ) %]
97 <li>Age restriction [% AGE_RESTRICTION | html %].
98 [% IF CAN_user_circulate_force_checkout %]
105 <li>The patron has a debt of [% DEBT | $Price %].</li>
108 [% IF ( DEBT_GUARANTEES ) %]
109 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
112 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
113 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
116 [% IF ( RENEW_ISSUE ) %]
117 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
120 [% IF ( RESERVE_WAITING ) %]
121 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% reswaitingdate | $KohaDates %]</li>
124 [% IF ( RESERVED ) %]
125 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% resreservedate | $KohaDates %]</li>
128 [% IF ( ISSUED_TO_ANOTHER ) %]
129 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber | uri %]">[% issued_firstname | html %] [% issued_surname | html %]</a> ([% issued_cardnumber | html %]).
130 [% IF CAN_user_circulate_force_checkout %]
131 Check in and check out?
136 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
137 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
140 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
141 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
144 [% IF ( BORRNOTSAMEBRANCH ) %]
145 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
148 [% IF ( PATRON_CANT ) %]
149 <li>This patron can't check out this item per library circulation policy.</li>
152 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
153 <li>No circulation rule is defined for this patron and itemtype combination.</li>
156 [% IF ( NOT_FOR_LOAN_FORCING ) %]
158 [% IF ( itemtype_notforloan ) %]
159 Item type is normally not for loan.
160 [% ELSIF ( item_notforloan ) %]
161 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
162 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
164 [% IF CAN_user_circulate_force_checkout %]
170 [% IF ( USERBLOCKEDOVERDUE ) %]
171 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
172 [% IF CAN_user_circulate_force_checkout %]
178 [% IF ( ITEM_LOST ) %]
179 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
180 [% IF CAN_user_circulate_force_checkout %]
187 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
191 <li>Patron has previously checked out this title: <b>[% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</b>. Check out anyway?</li>
194 [% IF BIBLIO_ALREADY_ISSUED %]
196 Patron has already checked out another item from this record.
197 [% IF CAN_user_circulate_force_checkout %]
204 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
205 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
206 <input type="hidden" name="restoreduedatespec" />
208 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
211 <p class="circ-override-high-holds">
212 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
213 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
217 [% IF ( RESERVED ) %]
219 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
220 <label for="cancelreserve">Cancel hold</label>
224 [% IF ( RESERVE_WAITING ) %]
226 <label for="cancelreserve">Cancel hold</label>
227 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
228 <label for="revertreserve">Revert waiting status</label>
229 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
233 <input type="hidden" name="barcode" value="[% barcode | html %]" />
234 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
235 <input type="hidden" name="issueconfirmed" value="1" />
236 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
237 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
238 [% IF ( INVALID_DATE ) %]
240 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" />
241 <label for="duedatespec">Due date</label>
244 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
246 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
247 <input type="hidden" name="branch" value="[% branch | html %]" />
248 [% IF ( RENEW_ISSUE ) %]
249 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
251 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
253 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
254 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
258 [% IF ( RESERVED ) %]
259 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
260 <input type="hidden" name="restoreduedatespec" />
261 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
262 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
263 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
264 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
268 [% IF ( RESERVE_WAITING ) %]
269 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
270 <input type="hidden" name="restoreduedatespec" />
271 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
272 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
273 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
274 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
278 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
279 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
280 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
281 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
282 <input type="hidden" name="restoreduedatespec" />
283 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
284 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
285 [% IF ( RENEW_ISSUE ) %]
286 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
288 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
291 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
295 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
296 [% UNLESS noissues %]
297 <button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
301 [% END %] <!-- NEEDSCONFIRMATION -->
303 [% IF ( IMPOSSIBLE ) %]
306 <div id="circ_impossible" class="dialog alert audio-alert-warning">
307 [% IF ( UNKNOWN_BARCODE ) %]
308 <h3>Barcode not found</h3>
310 <!-- RESULT OF ISSUING REQUEST -->
313 <li>Local use recorded</li>
316 [% IF ( INVALID_DATE ) %]
317 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
320 [% IF ( UNKNOWN_BARCODE ) %]
321 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
324 [% IF ( FALLBACK ) %]
326 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
328 <div>No items were found by searching.</div>
332 [% IF ( fast_cataloging ) %]
333 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
334 <a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% patron.borrowernumber | html %]&branch=[% branch | html %]&duedatespec=[% duedatespec | html %]&stickyduedate=[% stickyduedate | html %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a>
342 [% IF ( NOT_FOR_LOAN ) %]
344 [% IF ( itemtype_notforloan ) %]
345 Item type not for loan.
346 [% ELSIF ( item_notforloan ) %]
347 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
348 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
353 [% IF ( WTHDRAWN ) %]
355 <span>Item has been withdrawn</span>
356 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
357 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
361 [% IF ( RESTRICTED ) %]
362 <li>Item is restricted</li>
366 <li>Patron's address is in doubt</li>
369 [% IF ( CARD_LOST ) %]
370 <li>Patron's card is lost</li>
373 [% IF ( DEBARRED ) %]
374 <li>Patron is restricted</li>
377 [% IF ( NO_MORE_RENEWALS ) %]
378 <li>No more renewals possible</li>
381 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
382 <li>This item can not be renewed, it's an on-site checkout</li>
385 [%IF ( AGE_RESTRICTION ) %]
386 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
390 <li>Patron's card is expired</li>
393 [% IF ( TOO_MANY ) %]
394 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
397 [% IF ( ITEMNOTSAMEBRANCH ) %]
398 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
401 [% IF RETURN_IMPOSSIBLE %]
402 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
405 [% IF ( USERBLOCKEDWITHENDDATE ) %]
406 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
409 [% IF ( USERBLOCKEDNOENDDATE ) %]
410 <li>Patron has an indefinite restriction.</li>
413 [% IF ( USERBLOCKEDOVERDUE ) %]
414 <li>Checkouts are BLOCKED because patron has overdue items.</li>
418 [% IF (forceallow) %]
419 <li>Restriction overridden temporarily.</li>
424 [% IF ( FALLBACK ) %]
428 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
429 <div class="modal-dialog modal-wide" role="document">
430 <div class="modal-content">
431 <div class="modal-header">
432 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
433 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
435 <div class="modal-body">
436 <table class="table_borrowers">
437 [% FOREACH book IN options %]
440 <a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber | html %]">[% book.title | html %]</a>
441 [% book.barcode | html %]
444 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
445 [% IF (forceallow) %]
446 <input type="hidden" name="forceallow" value="1">
448 <input type="hidden" name="restoreduedatespec" />
449 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
450 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
451 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
452 <input type="hidden" name="branch" value="[% branch | html %]" />
453 <input type="hidden" name="barcode" value="[% book.barcode | html %]" />
454 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
461 <div class="modal-footer">
462 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
471 [% IF (forceallow) %]
472 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
474 [% END %] <!-- /impossible -->
476 <span class="audio-alert-success"></span>
479 <p>Item checked out</p>
483 [% INCLUDE 'patron-toolbar.inc' %]
485 No patron matched <span class="ex">[% message | html %]</span>
489 [% IF ( borrowers ) %]
490 [% INCLUDE 'patron-toolbar.inc' %]
492 <fieldset id="circ_circulation_selectborrower">
493 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
497 <!-- BARCODE ENTRY -->
502 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
503 <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>
506 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
507 <div class="yui-u first">
509 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
510 <input type="hidden" name="restoreduedatespec" />
512 <fieldset id="circ_circulation_issue" class="lastchecked">
514 <fieldset id="circ_circulation_issue">
516 [% IF ( DisplayClearScreenButton ) %]
517 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
518 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
521 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
523 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
525 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
526 <div class="hint">Enter item barcode or keyword:</div>
528 <div class="hint">Enter item barcode:</div>
531 [% IF NEEDSCONFIRMATION %]
532 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
534 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
536 <button type="submit" class="btn btn-default">Check out</button>
538 <div id="show-checkout-settings">
539 <a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
542 <div class="checkout-settings">
544 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
545 [% IF ( SpecifyDueDate ) %]
546 <div id="specify-due-date" class="checkout-setting">
547 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
548 [% IF ( duedatespec ) %]
549 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" />
551 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" />
553 <label for="stickyduedate"> Remember for session:</label>
554 [% IF ( stickyduedate ) %]
555 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
557 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
559 <button class="btn btn-default btn-xs 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>
564 [% UNLESS ( noissues ) %]
565 <div id="set-automatic-renewal" class="checkout-setting">
566 [% IF NEEDSCONFIRMATION %]
567 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
569 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
572 <label for="auto_renew">Automatic renewal</label>
574 [% IF Koha.Preference('decreaseLoanHighHolds') %]
575 <div id="set_high_holds_overrride" class="checkout-setting">
576 [% IF NEEDSCONFIRMATION %]
577 [% IF override_high_holds %]
578 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
580 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
583 [% IF override_high_holds %]
584 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
586 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
589 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
594 [% IF Koha.Preference('OnSiteCheckouts') %]
595 <div id="onsite_checkout-select" class="checkout-setting">
597 <div class="onsite-checkout-only">
598 <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>
599 <input type="text" name="duedatespec" id="duedatespec" />
600 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
603 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
608 </div> <!-- /.checkout-settings -->
610 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
611 <input type="hidden" name="branch" value="[% branch | html %]" />
612 <input type="hidden" name="print" value="maybe" />
613 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
615 <input type="hidden" name="charges" value="yes" />
619 <div class="lastchecked">
620 <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates as_due_date => 1 %]</p>
625 [% END %]<!-- /unless noissues -->
627 [% IF ( noissues ) %]
628 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
637 [% IF ( noissues ) %]
638 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
639 <div id="circmessages" class="circmessage attention">
641 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
642 <div id="circmessages" class="circmessage warning">
646 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
647 <span class="circ-hlt">Only on-site checkouts are allowed</span>
651 <div id="circmessages" class="circmessage attention">
657 [% IF ( has_modifications ) %]
658 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
659 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
660 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
665 [% IF ( warndeparture ) %]
666 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
667 Patron's card expires on [% expiry | $KohaDates %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a>
672 [% IF ( returnbeforeexpiry ) %]
673 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
674 expiry date is before the date due, the date due will be set to the expiry date
679 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
680 [% IF ( expiry ) %]Patron's card expired on [% expiry | $KohaDates %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a>
686 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
690 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
693 [% IF ( userdebarred ) %]
695 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
697 [% IF ( userdebarreddate ) %]
698 until [% userdebarreddate | $KohaDates %]
701 [% IF ( debarredcomment ) %]
702 with the explanation: <br/><i>
703 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
704 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
706 [% debarredcomment | $raw | html_line_break %]
711 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
712 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
713 <span class="override_debarment">
714 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
720 [% IF ( odues ) %]<li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
724 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
727 [% IF ( charges_guarantees ) %]
729 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
731 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
739 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
746 [% IF WaitingHolds.count %]
747 <div id="holdswaiting" class="circmessage">
748 <h4>Holds waiting:</h4>
749 [% FOREACH w IN WaitingHolds %]
752 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
753 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
754 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
755 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
756 Hold placed on [% w.reservedate | $KohaDates %].
759 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
760 [% SET expires_on = w.expirationdate %]
761 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
770 <div id="circnotes" class="circmessage">
772 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
776 <!-- /If notes -->[% END %]
778 <div id="messages" class="circmessage">
781 [% FOREACH message IN messages %]
783 [% IF(message.message_type == "L") %]
784 <span class="circ-hlt">
788 [% message.message_date | $KohaDates %]
789 [% Branches.GetName( message.branchcode ) | html %]
790 [% IF message.manager_id %]
791 ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id | uri %]">[% message.get_column('manager_firstname') | html %] [% message.get_column('manager_surname') | html %]</a> )
793 <i>"[% message.message | html %]"</i>
795 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
796 <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
801 <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
807 <div class="yui-g"><div id="patronlists" class="toptabs">
811 [% IF ( issuecount ) %]
812 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
814 <a href="#checkouts">0 Checkouts</a>
818 [% IF relatives_issues_count %]
819 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
823 [% IF ( holds_count ) %]
824 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
826 <a href="#reserves" id="holds-tab">0 Holds</a>
830 [% IF Koha.Preference('ArticleRequests') %]
832 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
836 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
838 [% SET enrollments = patron.get_club_enrollments(1) %]
839 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
840 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
842 <a id="clubs-tab-link" href="#clubs-tab">
843 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
850 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
852 [% INCLUDE "checkouts-table.inc" %]
854 [% IF ( relatives_issues_count ) %]
855 <div id="relatives-issues">
856 <table id="relatives-issues-table">
859 <th scope="col">Due date (unformatted, hidden)</th>
860 <th scope="col">Due date</th>
861 <th scope="col">Title</th>
862 <th scope="col">Item type</th>
863 <th scope="col">Collection code</th>
864 <th scope="col">Location</th>
865 <th scope="col">Checked out on</th>
866 <th scope="col">Checked out from</th>
867 <th scope="col">Call no</th>
868 <th scope="col">Charge</th>
869 <th scope="col">Fine</th>
870 <th scope="col">Price</th>
871 <th scope="col">Patron</th>
878 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
884 [% INCLUDE borrower_debarments.inc %]
887 [% IF ( holds_count ) %]
888 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
889 <input type="hidden" name="from" value="circ" />
890 <table id="holds-table" style="width: 100% !Important;">
907 <fieldset class="action">
908 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
912 [% IF Koha.Preference('SuspendHoldsIntranet') %]
913 <fieldset class="action">
914 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
915 <input type="hidden" name="from" value="circ" />
916 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
917 <input type="submit" value="Suspend all holds" />
919 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
920 <label for="suspend_until">until</label>
921 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
922 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
927 <fieldset class="action">
928 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
929 <input type="hidden" name="from" value="circ" />
930 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
931 <input type="hidden" name="suspend" value="0" />
932 <input type="submit" value="Resume all suspended holds" />
935 [% END # IF SuspendHoldsIntranet %]
938 <p>Patron has nothing on hold.</p>
940 </div> <!-- reservesloop -->
942 [% IF Koha.Preference('ArticleRequests') %]
943 [% INCLUDE 'patron-article-requests.inc' %]
946 [% ELSIF borrowernumber %]
947 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
951 [% IF Koha.Preference('CircSidebar') %]
952 [% UNLESS ( borrowers ) %]
953 [% IF not( borrowernumber and patron ) %]
954 <div class="yui-b noprint">
955 [% INCLUDE 'circ-nav.inc' %]
962 [% UNLESS ( borrowers ) %]
963 [% IF borrowernumber and patron %]
965 [% INCLUDE 'circ-menu.inc' %]
971 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
972 <div class="modal-dialog">
973 <div class="modal-content">
974 <div class="modal-header">
975 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
978 <div class="modal-body">
979 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
985 [% MACRO jsinclude BLOCK %]
986 [% INCLUDE 'strings.inc' %]
987 [% INCLUDE 'calendar.inc' %]
988 [% INCLUDE 'datatables.inc' %]
989 [% INCLUDE 'columns_settings.inc' %]
990 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
991 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
992 [% INCLUDE 'timepicker.inc' %]
993 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") | $raw %]
994 [% Asset.js("js/pages/circulation.js") | $raw %]
995 [% Asset.js("js/checkouts.js") | $raw %]
996 [% Asset.js("js/holds.js") | $raw %]
997 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
998 <script type="text/javascript">
999 /* Set some variable needed in circulation.js */
1000 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
1001 var interface = "[% interface | html %]";
1002 var theme = "[% theme | html %]";
1003 var borrowernumber = "[% patron.borrowernumber | html %]";
1004 var branchcode = "[% branch | html %]";
1005 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1006 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1007 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1008 var script = "circulation";
1009 var relatives_borrowernumbers = new Array();
1010 [% FOREACH b IN relatives_borrowernumbers %]
1011 relatives_borrowernumbers.push("[% b | html %]");
1014 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
1015 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
1017 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1018 columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1020 [% IF borrowernumber and patron %]
1021 if($.cookie("holdfor") != [% patron.borrowernumber | html %]){
1022 $.removeCookie("holdfor", { path: '/' });
1025 $.removeCookie("holdfor", { path: '/' });
1028 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1031 function toggle_onsite_checkout(){
1032 if ( $("#onsite_checkout").prop('checked') ) {
1033 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1034 [% IF !Koha.Preference('SpecifyDueDate') %]
1035 $("#duedatespec").datetimepicker('destroy');
1038 $("#duedatespec").datetimepicker({
1039 onClose: function(dateText, inst) {
1040 if (validate_date(dateText, inst) ) {
1041 $("#barcode").focus();
1046 }).on("change", function(e, value) {
1047 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1052 function Dopop(link) {
1053 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1055 $(document).ready(function() {
1056 $('#mainform').on('submit',function() {
1057 if ($("#barcode") && $("#barcode").val()) {
1058 $('#barcode').on('keypress',function(event) {
1059 $('#barcodeSubmittedModal').modal();
1060 event.preventDefault(); }
1065 if ( $('#clubs-tab').length ) {
1066 $('#clubs-tab-link').on('click', function() {
1067 $('#clubs-tab').text(_("Loading..."));
1068 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1072 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1073 // listen submit to trigger qslip on empty checkout
1074 $('#mainform').bind('submit',function() {
1075 if ($('#barcode').val() == '') {
1076 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1080 toggle_onsite_checkout();
1081 $("#onsite_checkout").click(function(){
1082 toggle_onsite_checkout();
1085 $("#suspend_until").datepicker({
1086 onClose: function(dateText, inst) {
1087 validate_date(dateText, inst);
1089 minDate: 1, // require that hold suspended until date is after today
1093 [% IF !override_high_holds %]
1094 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1095 if ('[% duedatespec | html %]' === '') {
1096 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1098 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1102 $("#override_high_holds_tmp").on( 'change', function() {
1103 if ( this.checked ) {
1104 $("input[name=duedatespec]:hidden").val('');
1110 [% INCLUDE 'str/members-menu.inc' %]
1111 [% Asset.js("js/members-menu.js") | $raw %]
1114 [% INCLUDE 'intranet-bottom.inc' %]