7 [% USE ColumnsSettings %]
10 [% USE AuthorisedValues %]
11 [% SET footerjs = 1 %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 [% SET destination = "circ" %]
15 Koha › Circulation
17 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %]
20 [% INCLUDE 'doc-head-close.inc' %]
23 <body id="circ_circulation" class="circ">
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'circ-search.inc' %]
28 <div id="breadcrumbs">
29 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
30 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
32 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
34 <strong>Checkouts</strong>
38 [% IF ( $borrowers ) %]
39 <div id="doc" class="yui-t7">
44 <div id="doc3" class="yui-t2">
51 [% INCLUDE 'members-toolbar.inc' %]
54 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
55 [% IF ( was_renewed ) %]
56 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
60 <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>
63 [% IF additional_materials %]
64 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
65 [% additional_materials | html %]
69 [% IF ( alert.ITEM_LOST ) %]
70 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
73 [% IF ( alert.OTHER_CHARGES ) %]
74 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
77 [% IF alert.HIGHHOLDS %]
78 <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>
81 [% IF alert.RETURNED_FROM_ANOTHER %]
82 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
85 [% IF ( nopermission ) %]
86 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
89 [% IF ( NEEDSCONFIRMATION ) %]
91 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
92 [% IF CAN_user_circulate_force_checkout %]
93 <h3>Please confirm checkout</h3>
95 <h3>Cannot check out</h3>
99 [%IF ( AGE_RESTRICTION ) %]
101 Age restriction [% AGE_RESTRICTION | html %].
102 [% IF CAN_user_circulate_force_checkout %]
109 <li>The patron has a debt of [% DEBT | $Price %].</li>
112 [% IF ( DEBT_GUARANTEES ) %]
113 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
116 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
117 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
120 [% IF ( RENEW_ISSUE ) %]
121 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
124 [% IF ( RESERVE_WAITING ) %]
125 <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>
128 [% IF ( RESERVED ) %]
129 <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>
132 [% IF ( ISSUED_TO_ANOTHER ) %]
133 <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 %]).
134 [% IF CAN_user_circulate_force_checkout %]
135 Check in and check out?
140 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
141 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
144 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
145 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
148 [% IF ( BORRNOTSAMEBRANCH ) %]
149 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
152 [% IF ( PATRON_CANT ) %]
153 <li>This patron can't check out this item per library circulation policy.</li>
156 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
157 <li>No circulation rule is defined for this patron and itemtype combination.</li>
160 [% IF ( NOT_FOR_LOAN_FORCING ) %]
162 [% IF ( itemtype_notforloan ) %]
163 Item type is normally not for loan.
164 [% ELSIF ( item_notforloan ) %]
165 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
166 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
168 [% IF CAN_user_circulate_force_checkout %]
174 [% IF ( USERBLOCKEDOVERDUE ) %]
175 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
176 [% IF CAN_user_circulate_force_checkout %]
182 [% IF ( ITEM_LOST ) %]
183 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
184 [% IF CAN_user_circulate_force_checkout %]
191 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
195 <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>
198 [% IF BIBLIO_ALREADY_ISSUED %]
200 Patron has already checked out another item from this record.
201 [% IF CAN_user_circulate_force_checkout %]
208 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
209 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
210 <input type="hidden" name="restoreduedatespec" />
212 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
215 <p class="circ-override-high-holds">
216 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
217 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
221 [% IF ( RESERVED ) %]
223 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
224 <label for="cancelreserve">Cancel hold</label>
228 [% IF ( RESERVE_WAITING ) %]
230 <label for="cancelreserve">Cancel hold</label>
231 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
232 <label for="revertreserve">Revert waiting status</label>
233 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
237 <input type="hidden" name="barcode" value="[% barcode | html %]" />
238 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
239 <input type="hidden" name="issueconfirmed" value="1" />
240 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
242 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
244 [% IF ( INVALID_DATE ) %]
246 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" />
247 <label for="duedatespec">Due date</label>
250 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
253 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
254 <input type="hidden" name="branch" value="[% branch | html %]" />
256 [% IF ( RENEW_ISSUE ) %]
257 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
259 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
262 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
263 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
265 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
267 [% IF ( RESERVED ) %]
268 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
269 <input type="hidden" name="restoreduedatespec" />
270 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
271 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
272 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
273 <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>
277 [% IF ( RESERVE_WAITING ) %]
278 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
279 <input type="hidden" name="restoreduedatespec" />
280 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
281 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
282 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
283 <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>
287 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
288 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
289 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
290 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
291 <input type="hidden" name="restoreduedatespec" />
292 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
293 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
294 [% IF ( RENEW_ISSUE ) %]
295 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
297 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
300 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
304 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
305 [% UNLESS noissues %]
306 <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>
309 </div> <!-- /#circ_needsconfirmation -->
310 </div> <!-- /.yui-g -->
311 [% END # /NEEDSCONFIRMATION %]
313 [% IF ( IMPOSSIBLE ) %]
315 <div id="circ_impossible" class="dialog alert audio-alert-warning">
316 [% IF ( UNKNOWN_BARCODE ) %]
317 <h3>Barcode not found</h3>
320 <!-- RESULT OF ISSUING REQUEST -->
323 <li>Local use recorded</li>
326 [% IF ( INVALID_DATE ) %]
327 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
330 [% IF ( UNKNOWN_BARCODE ) %]
331 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
333 [% IF ( FALLBACK ) %]
335 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
337 <div>No items were found by searching.</div>
341 [% IF ( fast_cataloging ) %]
342 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
343 <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>
350 [% IF ( NOT_FOR_LOAN ) %]
352 [% IF ( itemtype_notforloan ) %]
353 Item type not for loan.
354 [% ELSIF ( item_notforloan ) %]
355 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
356 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
361 [% IF ( WTHDRAWN ) %]
363 <span>Item has been withdrawn</span>
364 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
365 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
369 [% IF ( RESTRICTED ) %]
370 <li>Item is restricted</li>
374 <li>Patron's address is in doubt</li>
377 [% IF ( CARD_LOST ) %]
378 <li>Patron's card is lost</li>
381 [% IF ( DEBARRED ) %]
382 <li>Patron is restricted</li>
385 [% IF ( NO_MORE_RENEWALS ) %]
386 <li>No more renewals possible</li>
389 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
390 <li>This item can not be renewed, it's an on-site checkout</li>
393 [%IF ( AGE_RESTRICTION ) %]
394 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
398 <li>Patron's card is expired</li>
401 [% IF ( TOO_MANY ) %]
402 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
405 [% IF ( ITEMNOTSAMEBRANCH ) %]
406 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
409 [% IF RETURN_IMPOSSIBLE %]
410 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
413 [% IF ( USERBLOCKEDWITHENDDATE ) %]
414 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
417 [% IF ( USERBLOCKEDNOENDDATE ) %]
418 <li>Patron has an indefinite restriction.</li>
421 [% IF ( USERBLOCKEDOVERDUE ) %]
422 <li>Checkouts are BLOCKED because patron has overdue items.</li>
426 [% IF (forceallow) %]
427 <li>Restriction overridden temporarily.</li>
430 </div> <!-- /#circ_impossible -->
431 </div> <!-- /.yui-g -->
433 [% IF ( FALLBACK ) %]
436 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
437 <div class="modal-dialog modal-wide" role="document">
438 <div class="modal-content">
439 <div class="modal-header">
440 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
441 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
443 <div class="modal-body">
444 <table class="table_borrowers">
445 [% FOREACH book IN options %]
448 <a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber | html %]">[% book.title | html %]</a>
449 [% book.barcode | html %]
452 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
453 [% IF (forceallow) %]
454 <input type="hidden" name="forceallow" value="1">
456 <input type="hidden" name="restoreduedatespec" />
457 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
458 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
459 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
460 <input type="hidden" name="branch" value="[% branch | html %]" />
461 <input type="hidden" name="barcode" value="[% book.barcode | html %]" />
462 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
463 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
469 </div> <!-- /.modal-body -->
470 <div class="modal-footer">
471 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
473 </div> <!-- /.modal-content -->
474 </div> <!-- /.modal-dialog.modal-wide -->
475 </div> <!-- /#itemSearchFallback -->
476 [% END # /IF options %]
477 [% END # /IF FALLBACK %]
479 [% ELSE # IF IMPOSSIBLE %]
480 [% IF (forceallow) %]
481 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
483 [% END # /IF IMPOSSIBLE %]
485 <span class="audio-alert-success"></span>
488 <p>Item checked out</p>
492 [% INCLUDE 'patron-toolbar.inc' %]
493 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
496 [% IF ( borrowers ) %]
498 [% INCLUDE 'patron-toolbar.inc' %]
499 <fieldset id="circ_circulation_selectborrower">
500 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
505 <!-- BARCODE ENTRY -->
510 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
511 <div class="dialog alert">
512 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
516 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
517 <div class="yui-u first">
518 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
519 <input type="hidden" name="restoreduedatespec" />
521 <fieldset id="circ_circulation_issue" class="lastchecked">
523 <fieldset id="circ_circulation_issue">
526 [% IF ( DisplayClearScreenButton ) %]
527 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
528 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
531 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
533 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
535 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
536 <div class="hint">Enter item barcode or keyword:</div>
538 <div class="hint">Enter item barcode:</div>
541 [% IF NEEDSCONFIRMATION %]
542 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
544 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
547 <button type="submit" class="btn btn-default">Check out</button>
549 <div id="show-checkout-settings">
550 <a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
553 <div class="checkout-settings">
555 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
556 [% IF ( SpecifyDueDate ) %]
557 <div id="specify-due-date" class="checkout-setting">
558 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
559 [% IF ( duedatespec ) %]
560 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" />
562 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" />
564 <label for="stickyduedate"> Remember for session:</label>
565 [% IF ( stickyduedate ) %]
566 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
568 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
570 <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>
575 [% UNLESS ( noissues ) %]
576 <div id="set-automatic-renewal" class="checkout-setting">
577 [% IF NEEDSCONFIRMATION %]
578 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
580 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
583 <label for="auto_renew">Automatic renewal</label>
585 [% IF Koha.Preference('decreaseLoanHighHolds') %]
586 <div id="set_high_holds_overrride" class="checkout-setting">
587 [% IF NEEDSCONFIRMATION %]
588 [% IF override_high_holds %]
589 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
591 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
594 [% IF override_high_holds %]
595 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
597 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
600 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
605 [% IF Koha.Preference('OnSiteCheckouts') %]
606 <div id="onsite_checkout-select" class="checkout-setting">
608 <div class="onsite-checkout-only">
609 <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>
610 <input type="text" name="duedatespec" id="duedatespec" />
611 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
614 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
619 </div> <!-- /.checkout-settings -->
621 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
622 <input type="hidden" name="branch" value="[% branch | html %]" />
623 <input type="hidden" name="print" value="maybe" />
624 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
626 <input type="hidden" name="charges" value="yes" />
628 </fieldset> <!-- /#circ_circulation_issue -->
631 <div class="lastchecked">
632 <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>
635 </form> <!-- /#mainform -->
636 </div> <!-- /yui-u.first -->
638 [% END #/IF !noissues %]
640 [% IF ( noissues ) %]
641 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
650 [% IF ( noissues ) %]
651 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
652 <div id="circmessages" class="circmessage attention">
654 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
655 <div id="circmessages" class="circmessage warning">
659 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
660 <span class="circ-hlt">Only on-site checkouts are allowed</span>
664 <div id="circmessages" class="circmessage attention">
669 [% IF ( has_modifications ) %]
670 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
671 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
672 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
677 [% IF ( warndeparture ) %]
679 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
680 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>
685 [% IF ( returnbeforeexpiry ) %]
687 <span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the expiry date is before the date due, the date due will be set to the expiry date
693 <span class="circ-hlt">Expiration:</span> Patron's card has expired.
695 Patron's card expired on [% expiry | $KohaDates %]
697 <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>
702 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
706 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
709 [% IF ( userdebarred ) %]
711 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
713 [% IF ( userdebarreddate ) %]
714 until [% userdebarreddate | $KohaDates %]
717 [% IF ( debarredcomment ) %]
718 with the explanation: <br/>
720 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
721 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
723 [% debarredcomment | $raw | html_line_break %]
728 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
730 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
731 <span class="override_debarment">
732 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
735 </li> <!-- /.blocker -->
736 [% END # /IF userdebarred %]
739 <li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
743 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
746 [% IF ( charges_guarantees ) %]
748 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
750 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
758 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
763 </div> <!-- /.yui-g -->
765 [% IF WaitingHolds.count %]
766 <div id="holdswaiting" class="circmessage">
767 <h4>Holds waiting:</h4>
768 [% FOREACH w IN WaitingHolds %]
771 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
772 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
773 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
774 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
775 Hold placed on [% w.reservedate | $KohaDates %].
778 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
779 [% SET expires_on = w.expirationdate %]
780 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
786 [% END # /IF WaitingHolds.count %]
789 <div id="circnotes" class="circmessage">
791 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
795 <div id="messages" class="circmessage">
798 [% FOREACH message IN messages %]
800 [% IF(message.message_type == "L") %]
801 <span class="circ-hlt">
805 [% message.message_date | $KohaDates %]
806 [% Branches.GetName( message.branchcode ) | html %]
807 [% IF message.manager_id %]
808 ( <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> )
810 <i>"[% message.message | html %]"</i>
812 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
813 <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>
818 <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>
819 </div> <!-- /.messages -->
821 </div> <!-- /div or div.yui-u -->
822 </div> <!-- /.yui-g -->
825 <div id="patronlists" class="toptabs">
828 [% IF ( issuecount ) %]
829 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
831 <a href="#checkouts">0 Checkouts</a>
835 [% IF relatives_issues_count %]
836 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
840 [% IF ( holds_count ) %]
841 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
843 <a href="#reserves" id="holds-tab">0 Holds</a>
847 [% IF Koha.Preference('ArticleRequests') %]
849 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
853 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
855 [% SET enrollments = patron.get_club_enrollments(1) %]
856 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
857 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
859 <a id="clubs-tab-link" href="#clubs-tab">
860 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
866 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
868 [% INCLUDE "checkouts-table.inc" %]
870 [% IF ( relatives_issues_count ) %]
871 <div id="relatives-issues">
872 <table id="relatives-issues-table">
875 <th scope="col">Due date (unformatted, hidden)</th>
876 <th scope="col">Due date</th>
877 <th scope="col">Title</th>
878 <th scope="col">Item type</th>
879 <th scope="col">Collection code</th>
880 <th scope="col">Location</th>
881 <th scope="col">Checked out on</th>
882 <th scope="col">Checked out from</th>
883 <th scope="col">Call no</th>
884 <th scope="col">Charge</th>
885 <th scope="col">Fine</th>
886 <th scope="col">Price</th>
887 <th scope="col">Patron</th>
891 </div> <!-- /#relatives-issues -->
894 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
897 </div> <!-- /#clubs-tab -->
900 [% INCLUDE borrower_debarments.inc %]
903 [% IF ( holds_count ) %]
904 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
905 <input type="hidden" name="from" value="circ" />
906 <table id="holds-table" style="width: 100% !Important;">
923 <fieldset class="action">
924 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
928 [% IF Koha.Preference('SuspendHoldsIntranet') %]
929 <fieldset class="action">
930 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
931 <input type="hidden" name="from" value="circ" />
932 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
933 <input type="submit" value="Suspend all holds" />
935 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
936 <label for="suspend_until">until</label>
937 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
938 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
943 <fieldset class="action">
944 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
945 <input type="hidden" name="from" value="circ" />
946 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
947 <input type="hidden" name="suspend" value="0" />
948 <input type="submit" value="Resume all suspended holds" />
951 [% END # /IF SuspendHoldsIntranet %]
953 [% ELSE # IF holds_count %]
954 <p>Patron has nothing on hold.</p>
955 [% END # /IF holds_count %]
956 </div> <!-- /#reserves -->
958 [% IF Koha.Preference('ArticleRequests') %]
959 [% INCLUDE 'patron-article-requests.inc' %]
962 [% ELSIF borrowernumber # IF patron %]
963 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
964 [% END # /IF patron %]
966 </div> <!-- /#patronlists -->
967 </div> <!-- /.yui-g -->
970 [% IF Koha.Preference('CircSidebar') %]
971 [% UNLESS ( borrowers ) %]
972 [% IF not( borrowernumber and patron ) %]
973 <div class="yui-b noprint">
974 [% INCLUDE 'circ-nav.inc' %]
979 </div> <!-- /.yui-b -->
980 </div> <!-- /.yui-main -->
982 [% UNLESS ( borrowers ) %]
983 [% IF borrowernumber and patron %]
985 [% INCLUDE 'circ-menu.inc' %]
992 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
993 <div class="modal-dialog">
994 <div class="modal-content">
995 <div class="modal-header">
996 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
998 <div class="modal-body">
999 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1001 </div> <!-- /.modal-content -->
1002 </div> <!-- /.modal-dialog -->
1003 </div> <!-- /#barcodeSubmittedModal -->
1005 [% MACRO jsinclude BLOCK %]
1006 [% INCLUDE 'strings.inc' %]
1007 [% INCLUDE 'calendar.inc' %]
1008 [% INCLUDE 'datatables.inc' %]
1009 [% INCLUDE 'columns_settings.inc' %]
1010 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
1011 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
1012 [% INCLUDE 'timepicker.inc' %]
1013 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") | $raw %]
1014 [% Asset.js("js/pages/circulation.js") | $raw %]
1015 [% Asset.js("js/checkouts.js") | $raw %]
1016 [% Asset.js("js/holds.js") | $raw %]
1017 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1018 <script type="text/javascript">
1019 /* Set some variable needed in circulation.js */
1020 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
1021 var interface = "[% interface | html %]";
1022 var theme = "[% theme | html %]";
1023 var borrowernumber = "[% patron.borrowernumber | html %]";
1024 var branchcode = "[% branch | html %]";
1025 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1026 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1027 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1028 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1029 var script = "circulation";
1030 var relatives_borrowernumbers = new Array();
1031 [% FOREACH b IN relatives_borrowernumbers %]
1032 relatives_borrowernumbers.push("[% b | html %]");
1035 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
1036 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
1038 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1039 columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1041 [% IF borrowernumber and patron %]
1042 if($.cookie("holdfor") != [% patron.borrowernumber | html %]){
1043 $.removeCookie("holdfor", { path: '/' });
1046 $.removeCookie("holdfor", { path: '/' });
1049 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1052 function toggle_onsite_checkout(){
1053 if ( $("#onsite_checkout").prop('checked') ) {
1054 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1055 [% IF !Koha.Preference('SpecifyDueDate') %]
1056 $("#duedatespec").datetimepicker('destroy');
1059 $("#duedatespec").datetimepicker({
1060 onClose: function(dateText, inst) {
1061 if (validate_date(dateText, inst) ) {
1062 $("#barcode").focus();
1067 }).on("change", function(e, value) {
1068 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1073 function Dopop(link) {
1074 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1076 $(document).ready(function() {
1077 $('#mainform').on('submit',function() {
1078 if ($("#barcode") && $("#barcode").val()) {
1079 $('#barcode').on('keypress',function(event) {
1080 $('#barcodeSubmittedModal').modal();
1081 event.preventDefault(); }
1086 if ( $('#clubs-tab').length ) {
1087 $('#clubs-tab-link').on('click', function() {
1088 $('#clubs-tab').text(_("Loading..."));
1089 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1093 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1094 // listen submit to trigger qslip on empty checkout
1095 $('#mainform').bind('submit',function() {
1096 if ($('#barcode').val() == '') {
1097 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1101 toggle_onsite_checkout();
1102 $("#onsite_checkout").click(function(){
1103 toggle_onsite_checkout();
1106 $("#suspend_until").datepicker({
1107 onClose: function(dateText, inst) {
1108 validate_date(dateText, inst);
1110 minDate: 1, // require that hold suspended until date is after today
1114 [% IF !override_high_holds %]
1115 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1116 if ('[% duedatespec | html %]' === '') {
1117 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1119 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1123 $("#override_high_holds_tmp").on( 'change', function() {
1124 if ( this.checked ) {
1125 $("input[name=duedatespec]:hidden").val('');
1131 [% INCLUDE 'str/members-menu.inc' %]
1132 [% Asset.js("js/members-menu.js") | $raw %]
1135 [% INCLUDE 'intranet-bottom.inc' %]