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 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
44 [% INCLUDE 'members-toolbar.inc' %]
47 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
48 [% IF ( was_renewed ) %]
49 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
53 <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>
56 [% IF additional_materials %]
57 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
58 [% additional_materials | html %]
62 [% IF ( alert.ITEM_LOST ) %]
63 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
66 [% IF ( alert.OTHER_CHARGES ) %]
67 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
70 [% IF alert.HIGHHOLDS %]
71 <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>
74 [% IF alert.RETURNED_FROM_ANOTHER %]
75 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
78 [% IF ( nopermission ) %]
79 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
82 [% IF ( NEEDSCONFIRMATION ) %]
83 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
84 [% IF CAN_user_circulate_force_checkout %]
85 <h3>Please confirm checkout</h3>
87 <h3>Cannot check out</h3>
91 [%IF ( AGE_RESTRICTION ) %]
93 Age restriction [% AGE_RESTRICTION | html %].
94 [% IF CAN_user_circulate_force_checkout %]
101 <li>The patron has a debt of [% DEBT | $Price %].</li>
104 [% IF ( DEBT_GUARANTEES ) %]
105 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
108 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
109 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
112 [% IF ( RENEW_ISSUE ) %]
113 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
116 [% IF ( RESERVE_WAITING ) %]
117 <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>
120 [% IF ( RESERVED ) %]
121 <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>
124 [% IF ( ISSUED_TO_ANOTHER ) %]
125 <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 %]).
126 [% IF CAN_user_circulate_force_checkout %]
127 Check in and check out?
132 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
133 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
136 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
137 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
140 [% IF ( BORRNOTSAMEBRANCH ) %]
141 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
144 [% IF ( PATRON_CANT ) %]
145 <li>This patron can't check out this item per library circulation policy.</li>
148 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
149 <li>No circulation rule is defined for this patron and itemtype combination.</li>
152 [% IF ( NOT_FOR_LOAN_FORCING ) %]
154 [% IF ( itemtype_notforloan ) %]
155 Item type is normally not for loan.
156 [% ELSIF ( item_notforloan ) %]
157 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
158 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
160 [% IF CAN_user_circulate_force_checkout %]
166 [% IF ( USERBLOCKEDOVERDUE ) %]
167 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
168 [% IF CAN_user_circulate_force_checkout %]
174 [% IF ( ITEM_LOST ) %]
175 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
176 [% IF CAN_user_circulate_force_checkout %]
183 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
187 <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>
190 [% IF BIBLIO_ALREADY_ISSUED %]
192 Patron has already checked out another item from this record.
193 [% IF CAN_user_circulate_force_checkout %]
200 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
201 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
202 <input type="hidden" name="restoreduedatespec" />
204 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
207 <p class="circ-override-high-holds">
208 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
209 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
213 [% IF ( RESERVED ) %]
215 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
216 <label for="cancelreserve">Cancel hold</label>
220 [% IF ( RESERVE_WAITING ) %]
222 <label for="cancelreserve">Cancel hold</label>
223 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
224 <label for="revertreserve">Revert waiting status</label>
225 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
229 <input type="hidden" name="barcode" value="[% barcode | html %]" />
230 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
231 <input type="hidden" name="issueconfirmed" value="1" />
232 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
234 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
236 [% IF ( INVALID_DATE ) %]
238 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" />
239 <label for="duedatespec">Due date</label>
242 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
245 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
246 <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>
254 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
255 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
257 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
259 [% IF ( RESERVED ) %]
260 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
261 <input type="hidden" name="restoreduedatespec" />
262 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
263 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
264 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
265 <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>
269 [% IF ( RESERVE_WAITING ) %]
270 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
271 <input type="hidden" name="restoreduedatespec" />
272 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
273 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
274 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
275 <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>
279 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
280 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
281 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
282 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
283 <input type="hidden" name="restoreduedatespec" />
284 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
285 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
286 [% IF ( RENEW_ISSUE ) %]
287 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
289 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
292 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
296 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
297 [% UNLESS noissues %]
298 <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 </div> <!-- /#circ_needsconfirmation -->
302 [% END # /NEEDSCONFIRMATION %]
304 [% IF ( IMPOSSIBLE ) %]
305 <div id="circ_impossible" class="dialog alert audio-alert-warning">
306 [% IF ( UNKNOWN_BARCODE ) %]
307 <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>
323 [% IF ( FALLBACK ) %]
325 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
327 <div>No items were found by searching.</div>
331 [% IF ( fast_cataloging ) %]
332 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
333 <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>
340 [% IF ( NOT_FOR_LOAN ) %]
342 [% IF ( itemtype_notforloan ) %]
343 Item type not for loan.
344 [% ELSIF ( item_notforloan ) %]
345 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
346 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
351 [% IF ( WTHDRAWN ) %]
353 <span>Item has been withdrawn</span>
354 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
355 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
359 [% IF ( RESTRICTED ) %]
360 <li>Item is restricted</li>
364 <li>Patron's address is in doubt</li>
367 [% IF ( CARD_LOST ) %]
368 <li>Patron's card is lost</li>
371 [% IF ( DEBARRED ) %]
372 <li>Patron is restricted</li>
375 [% IF ( NO_MORE_RENEWALS ) %]
376 <li>No more renewals possible</li>
379 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
380 <li>This item can not be renewed, it's an on-site checkout</li>
383 [%IF ( AGE_RESTRICTION ) %]
384 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
388 <li>Patron's card is expired</li>
391 [% IF ( TOO_MANY ) %]
392 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
395 [% IF ( ITEMNOTSAMEBRANCH ) %]
396 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
399 [% IF RETURN_IMPOSSIBLE %]
400 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
403 [% IF ( USERBLOCKEDWITHENDDATE ) %]
404 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
407 [% IF ( USERBLOCKEDNOENDDATE ) %]
408 <li>Patron has an indefinite restriction.</li>
411 [% IF ( USERBLOCKEDOVERDUE ) %]
412 <li>Checkouts are BLOCKED because patron has overdue items.</li>
416 [% IF (forceallow) %]
417 <li>Restriction overridden temporarily.</li>
420 </div> <!-- /#circ_impossible -->
422 [% IF ( FALLBACK ) %]
425 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
426 <div class="modal-dialog modal-wide" role="document">
427 <div class="modal-content">
428 <div class="modal-header">
429 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
430 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
432 <div class="modal-body">
433 <table class="table_borrowers">
434 [% FOREACH book IN options %]
437 <a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber | html %]">[% book.title | html %]</a>
438 [% book.barcode | html %]
441 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
442 [% IF (forceallow) %]
443 <input type="hidden" name="forceallow" value="1">
445 <input type="hidden" name="restoreduedatespec" />
446 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
447 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
448 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
449 <input type="hidden" name="branch" value="[% branch | html %]" />
450 <input type="hidden" name="barcode" value="[% book.barcode | html %]" />
451 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
452 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
458 </div> <!-- /.modal-body -->
459 <div class="modal-footer">
460 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
462 </div> <!-- /.modal-content -->
463 </div> <!-- /.modal-dialog.modal-wide -->
464 </div> <!-- /#itemSearchFallback -->
465 [% END # /IF options %]
466 [% END # /IF FALLBACK %]
468 [% ELSE # IF IMPOSSIBLE %]
469 [% IF (forceallow) %]
470 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
472 [% END # /IF IMPOSSIBLE %]
474 <span class="audio-alert-success"></span>
477 <p>Item checked out</p>
481 [% INCLUDE 'patron-toolbar.inc' %]
482 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
485 [% IF ( borrowers ) %]
487 [% INCLUDE 'patron-toolbar.inc' %]
488 <fieldset id="circ_circulation_selectborrower">
489 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
494 <!-- BARCODE ENTRY -->
498 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
499 <div class="dialog alert">
500 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
505 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
506 <div class="col-sm-6">
507 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
508 <input type="hidden" name="restoreduedatespec" />
510 <fieldset id="circ_circulation_issue" class="lastchecked">
512 <fieldset id="circ_circulation_issue">
515 [% IF ( DisplayClearScreenButton ) %]
516 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
517 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
520 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
522 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
524 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
525 <div class="hint">Enter item barcode or keyword:</div>
527 <div class="hint">Enter item barcode:</div>
530 [% IF NEEDSCONFIRMATION %]
531 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
533 <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-circ-settings">
539 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
542 <div class="circ-settings">
544 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
545 [% IF ( SpecifyDueDate ) %]
546 <div id="specify-due-date" class="circ-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="circ-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="circ-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="circ-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 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
604 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
606 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
612 </div> <!-- /.circ-settings -->
614 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
615 <input type="hidden" name="branch" value="[% branch | html %]" />
616 <input type="hidden" name="print" value="maybe" />
617 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
619 <input type="hidden" name="charges" value="yes" />
621 </fieldset> <!-- /#circ_circulation_issue -->
624 <div class="lastchecked">
625 <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>
628 </form> <!-- /#mainform -->
629 </div> <!-- /.col-sm-6 -->
631 [% END #/IF !noissues %]
633 [% IF ( noissues ) %]
634 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
635 <div class="col-sm-6">
640 <div class="col-sm-6">
643 [% IF ( noissues ) %]
644 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
645 <div id="circmessages" class="circmessage attention">
647 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
648 <div id="circmessages" class="circmessage warning">
652 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
653 <span class="circ-hlt">Only on-site checkouts are allowed</span>
657 <div id="circmessages" class="circmessage attention">
662 [% IF ( has_modifications ) %]
663 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
664 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
665 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
670 [% IF ( warndeparture ) %]
672 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
673 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>
678 [% IF ( returnbeforeexpiry ) %]
680 <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
686 <span class="circ-hlt">Expiration:</span> Patron's card has expired.
688 Patron's card expired on [% expiry | $KohaDates %]
690 <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>
695 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
699 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
702 [% IF ( userdebarred ) %]
704 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
706 [% IF ( userdebarreddate ) %]
707 until [% userdebarreddate | $KohaDates %]
710 [% IF ( debarredcomment ) %]
711 with the explanation: <br/>
713 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
714 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
716 [% debarredcomment | $raw | html_line_break %]
721 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
723 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
724 <span class="override_debarment">
725 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
728 </li> <!-- /.blocker -->
729 [% END # /IF userdebarred %]
732 <li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
735 [% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %]
736 [% SET return_claims = patron.return_claims %]
737 [% IF return_claims.count %]
738 <li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span>
742 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
745 [% IF age_limitations %]
746 [% INCLUDE 'category-out-of-age-limit.inc' %]
749 [% IF ( charges_guarantees ) %]
751 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
753 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
761 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
767 [% IF WaitingHolds.count %]
768 <div id="holdswaiting" class="circmessage">
769 <h4>Holds waiting:</h4>
770 [% FOREACH w IN WaitingHolds %]
773 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
774 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
775 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
776 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
777 Hold placed on [% w.reservedate | $KohaDates %].
780 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
781 [% SET expires_on = w.expirationdate %]
782 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
788 [% END # /IF WaitingHolds.count %]
791 <div id="circnotes" class="circmessage">
793 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
797 <div id="messages" class="circmessage">
800 [% FOREACH message IN messages %]
802 [% IF(message.message_type == "L") %]
803 <span class="circ-hlt">
807 [% message.message_date | $KohaDates %]
808 [% Branches.GetName( message.branchcode ) | html %]
809 [% IF message.manager_id %]
810 ( <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> )
812 <i>"[% message.message | html %]"</i>
814 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
815 <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>
820 <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>
821 </div> <!-- /.messages -->
822 </div> <!-- /#circmessages -->
823 </div> <!-- /div or div.col-sm-6 -->
824 </div> <!-- /.row -->
826 <div id="patronlists" class="toptabs">
829 [% IF ( issuecount ) %]
830 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
832 <a href="#checkouts">0 Checkouts</a>
836 [% IF relatives_issues_count %]
837 <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
841 [% IF ( holds_count ) %]
842 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
844 <a href="#reserves" id="holds-tab">0 Holds</a>
848 [% IF Koha.Preference('ArticleRequests') %]
850 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
855 [% IF ( patron.return_claims.count ) %]
856 <a href="#return-claims" id="return-claims-tab">
857 <span id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
859 <span id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
863 <a href="#return-claims" id="return-claims-tab">
864 <span id="return-claims-count-resolved">0</span>
866 <span id="return-claims-count-unresolved">0</span>
872 [% IF Koha.Preference('ArticleRequests') %]
874 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
878 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
880 [% SET enrollments = patron.get_club_enrollments(1) %]
881 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
882 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
884 <a id="clubs-tab-link" href="#clubs-tab">
885 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
891 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
893 [% INCLUDE "checkouts-table.inc" %]
895 [% INCLUDE "relatives-issues-table.inc" %]
897 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
900 </div> <!-- /#clubs-tab -->
903 [% INCLUDE borrower_debarments.inc %]
906 [% IF ( holds_count ) %]
907 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
908 <input type="hidden" name="from" value="circ" />
909 <table id="holds-table" style="width: 100% !Important;">
926 <fieldset class="action">
927 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
931 [% IF Koha.Preference('SuspendHoldsIntranet') %]
932 <fieldset class="action">
933 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
934 <input type="hidden" name="from" value="circ" />
935 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
936 <input type="submit" value="Suspend all holds" />
938 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
939 <label for="suspend_until">until</label>
940 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
941 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
946 <fieldset class="action">
947 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
948 <input type="hidden" name="from" value="circ" />
949 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
950 <input type="hidden" name="suspend" value="0" />
951 <input type="submit" value="Resume all suspended holds" />
954 [% END # /IF SuspendHoldsIntranet %]
956 [% ELSE # IF holds_count %]
957 <p>Patron has nothing on hold.</p>
958 [% END # /IF holds_count %]
959 </div> <!-- /#reserves -->
961 [% INCLUDE 'patron-return-claims.inc' %]
963 [% IF Koha.Preference('ArticleRequests') %]
964 [% INCLUDE 'patron-article-requests.inc' %]
967 </div> <!-- /#patronlists -->
968 [% ELSIF borrowernumber # IF patron %]
969 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
970 [% END # /IF patron %]
972 [% END #/IF borrowers %]
974 </div> <!-- /.col-sm-10.col-sm-push-2 -->
976 [% IF Koha.Preference('CircSidebar') %]
977 [% UNLESS ( borrowers ) %]
978 [% IF not( borrowernumber and patron ) %]
979 <div class="col-sm-2 col-sm-pull-10">
981 [% INCLUDE 'circ-nav.inc' %]
983 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
988 [% UNLESS ( borrowers ) %]
989 [% IF borrowernumber and patron %]
990 <div class="col-sm-2 col-sm-pull-10">
992 [% INCLUDE 'circ-menu.inc' %]
994 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
998 </div> <!-- /.row -->
1002 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1003 <div class="modal-dialog">
1004 <div class="modal-content">
1005 <div class="modal-header">
1006 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1008 <div class="modal-body">
1009 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1011 </div> <!-- /.modal-content -->
1012 </div> <!-- /.modal-dialog -->
1013 </div> <!-- /#barcodeSubmittedModal -->
1015 [% MACRO jsinclude BLOCK %]
1016 [% INCLUDE 'strings.inc' %]
1017 [% INCLUDE 'calendar.inc' %]
1018 [% INCLUDE 'datatables.inc' %]
1019 [% INCLUDE 'columns_settings.inc' %]
1020 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
1021 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
1022 [% INCLUDE 'timepicker.inc' %]
1023 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") | $raw %]
1024 [% Asset.js("js/pages/circulation.js") | $raw %]
1025 [% Asset.js("js/checkouts.js") | $raw %]
1026 [% Asset.js("js/holds.js") | $raw %]
1027 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1028 <script type="text/javascript">
1029 /* Set some variable needed in circulation.js */
1030 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1031 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1032 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1033 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
1034 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
1035 var interface = "[% interface | html %]";
1036 var theme = "[% theme | html %]";
1037 var borrowernumber = "[% patron.borrowernumber | html %]";
1038 var branchcode = "[% branch | html %]";
1039 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1040 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1041 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1042 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1043 var script = "circulation";
1044 var relatives_borrowernumbers = new Array();
1045 [% FOREACH b IN relatives_borrowernumbers %]
1046 relatives_borrowernumbers.push("[% b | html %]");
1049 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
1050 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
1052 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1053 columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1055 [% IF borrowernumber and patron %]
1056 if($.cookie("holdfor") != [% patron.borrowernumber | html %]){
1057 $.removeCookie("holdfor", { path: '/' });
1060 $.removeCookie("holdfor", { path: '/' });
1063 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1066 function toggle_onsite_checkout(){
1067 if ( $("#onsite_checkout").prop('checked') ) {
1068 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1069 [% IF !Koha.Preference('SpecifyDueDate') %]
1070 $("#duedatespec").datetimepicker('destroy');
1073 $("#duedatespec").datetimepicker({
1074 onClose: function(dateText, inst) {
1075 if (validate_date(dateText, inst) ) {
1076 $("#barcode").focus();
1081 }).on("change", function(e, value) {
1082 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1087 function Dopop(link) {
1088 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1090 $(document).ready(function() {
1091 $('#mainform').on('submit',function() {
1092 if ($("#barcode") && $("#barcode").val()) {
1093 $('#barcode').on('keypress',function(event) {
1094 $('#barcodeSubmittedModal').modal();
1095 event.preventDefault(); }
1100 if ( $('#clubs-tab').length ) {
1101 $('#clubs-tab-link').on('click', function() {
1102 $('#clubs-tab').text(_("Loading..."));
1103 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1107 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1108 // listen submit to trigger qslip on empty checkout
1109 $('#mainform').bind('submit',function() {
1110 if ($('#barcode').val() == '') {
1111 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1115 toggle_onsite_checkout();
1116 $("#onsite_checkout").click(function(){
1117 toggle_onsite_checkout();
1120 $("#suspend_until").datepicker({
1121 onClose: function(dateText, inst) {
1122 validate_date(dateText, inst);
1124 minDate: 1, // require that hold suspended until date is after today
1128 [% IF !override_high_holds %]
1129 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1130 if ('[% duedatespec | html %]' === '') {
1131 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1133 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1137 $("#override_high_holds_tmp").on( 'change', function() {
1138 if ( this.checked ) {
1139 $("input[name=duedatespec]:hidden").val('');
1145 [% INCLUDE 'str/members-menu.inc' %]
1146 [% Asset.js("js/members-menu.js") | $raw %]
1149 [% INCLUDE 'intranet-bottom.inc' %]