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 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
608 </div> <!-- /.circ-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" />
617 </fieldset> <!-- /#circ_circulation_issue -->
620 <div class="lastchecked">
621 <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>
624 </form> <!-- /#mainform -->
625 </div> <!-- /.col-sm-6 -->
627 [% END #/IF !noissues %]
629 [% IF ( noissues ) %]
630 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
631 <div class="col-sm-6">
636 <div class="col-sm-6">
639 [% IF ( noissues ) %]
640 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
641 <div id="circmessages" class="circmessage attention">
643 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
644 <div id="circmessages" class="circmessage warning">
648 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
649 <span class="circ-hlt">Only on-site checkouts are allowed</span>
653 <div id="circmessages" class="circmessage attention">
658 [% IF ( has_modifications ) %]
659 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
660 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
661 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
666 [% IF ( warndeparture ) %]
668 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
669 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>
674 [% IF ( returnbeforeexpiry ) %]
676 <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
682 <span class="circ-hlt">Expiration:</span> Patron's card has expired.
684 Patron's card expired on [% expiry | $KohaDates %]
686 <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>
691 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
695 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
698 [% IF ( userdebarred ) %]
700 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
702 [% IF ( userdebarreddate ) %]
703 until [% userdebarreddate | $KohaDates %]
706 [% IF ( debarredcomment ) %]
707 with the explanation: <br/>
709 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
710 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
712 [% debarredcomment | $raw | html_line_break %]
717 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
719 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
720 <span class="override_debarment">
721 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
724 </li> <!-- /.blocker -->
725 [% END # /IF userdebarred %]
728 <li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
732 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
735 [% IF age_limitations %]
736 [% INCLUDE 'category-out-of-age-limit.inc' %]
739 [% IF ( charges_guarantees ) %]
741 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
743 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
751 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
757 [% IF WaitingHolds.count %]
758 <div id="holdswaiting" class="circmessage">
759 <h4>Holds waiting:</h4>
760 [% FOREACH w IN WaitingHolds %]
763 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
764 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
765 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
766 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
767 Hold placed on [% w.reservedate | $KohaDates %].
770 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
771 [% SET expires_on = w.expirationdate %]
772 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
778 [% END # /IF WaitingHolds.count %]
781 <div id="circnotes" class="circmessage">
783 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
787 <div id="messages" class="circmessage">
790 [% FOREACH message IN messages %]
792 [% IF(message.message_type == "L") %]
793 <span class="circ-hlt">
797 [% message.message_date | $KohaDates %]
798 [% Branches.GetName( message.branchcode ) | html %]
799 [% IF message.manager_id %]
800 ( <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> )
802 <i>"[% message.message | html %]"</i>
804 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
805 <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>
810 <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>
811 </div> <!-- /.messages -->
812 </div> <!-- /#circmessages -->
813 </div> <!-- /div or div.col-sm-6 -->
814 </div> <!-- /.row -->
816 <div id="patronlists" class="toptabs">
819 [% IF ( issuecount ) %]
820 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
822 <a href="#checkouts">0 Checkouts</a>
826 [% IF relatives_issues_count %]
827 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
831 [% IF ( holds_count ) %]
832 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
834 <a href="#reserves" id="holds-tab">0 Holds</a>
838 [% IF Koha.Preference('ArticleRequests') %]
840 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
844 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
846 [% SET enrollments = patron.get_club_enrollments(1) %]
847 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
848 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
850 <a id="clubs-tab-link" href="#clubs-tab">
851 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
857 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
859 [% INCLUDE "checkouts-table.inc" %]
861 [% INCLUDE "relatives-issues-table.inc" %]
863 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
866 </div> <!-- /#clubs-tab -->
869 [% INCLUDE borrower_debarments.inc %]
872 [% IF ( holds_count ) %]
873 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
874 <input type="hidden" name="from" value="circ" />
875 <table id="holds-table" style="width: 100% !Important;">
892 <fieldset class="action">
893 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
897 [% IF Koha.Preference('SuspendHoldsIntranet') %]
898 <fieldset class="action">
899 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
900 <input type="hidden" name="from" value="circ" />
901 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
902 <input type="submit" value="Suspend all holds" />
904 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
905 <label for="suspend_until">until</label>
906 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
907 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
912 <fieldset class="action">
913 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
914 <input type="hidden" name="from" value="circ" />
915 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
916 <input type="hidden" name="suspend" value="0" />
917 <input type="submit" value="Resume all suspended holds" />
920 [% END # /IF SuspendHoldsIntranet %]
922 [% ELSE # IF holds_count %]
923 <p>Patron has nothing on hold.</p>
924 [% END # /IF holds_count %]
925 </div> <!-- /#reserves -->
927 [% IF Koha.Preference('ArticleRequests') %]
928 [% INCLUDE 'patron-article-requests.inc' %]
931 </div> <!-- /#patronlists -->
932 [% ELSIF borrowernumber # IF patron %]
933 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
934 [% END # /IF patron %]
936 [% END #/IF borrowers %]
938 </div> <!-- /.col-sm-10.col-sm-push-2 -->
940 [% IF Koha.Preference('CircSidebar') %]
941 [% UNLESS ( borrowers ) %]
942 [% IF not( borrowernumber and patron ) %]
943 <div class="col-sm-2 col-sm-pull-10">
945 [% INCLUDE 'circ-nav.inc' %]
947 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
952 [% UNLESS ( borrowers ) %]
953 [% IF borrowernumber and patron %]
954 <div class="col-sm-2 col-sm-pull-10">
956 [% INCLUDE 'circ-menu.inc' %]
958 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
962 </div> <!-- /.row -->
966 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
967 <div class="modal-dialog">
968 <div class="modal-content">
969 <div class="modal-header">
970 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
972 <div class="modal-body">
973 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
975 </div> <!-- /.modal-content -->
976 </div> <!-- /.modal-dialog -->
977 </div> <!-- /#barcodeSubmittedModal -->
979 [% MACRO jsinclude BLOCK %]
980 [% INCLUDE 'strings.inc' %]
981 [% INCLUDE 'calendar.inc' %]
982 [% INCLUDE 'datatables.inc' %]
983 [% INCLUDE 'columns_settings.inc' %]
984 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
985 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
986 [% INCLUDE 'timepicker.inc' %]
987 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") | $raw %]
988 [% Asset.js("js/pages/circulation.js") | $raw %]
989 [% Asset.js("js/checkouts.js") | $raw %]
990 [% Asset.js("js/holds.js") | $raw %]
991 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
992 <script type="text/javascript">
993 /* Set some variable needed in circulation.js */
994 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
995 var interface = "[% interface | html %]";
996 var theme = "[% theme | html %]";
997 var borrowernumber = "[% patron.borrowernumber | html %]";
998 var branchcode = "[% branch | html %]";
999 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1000 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1001 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1002 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1003 var script = "circulation";
1004 var relatives_borrowernumbers = new Array();
1005 [% FOREACH b IN relatives_borrowernumbers %]
1006 relatives_borrowernumbers.push("[% b | html %]");
1009 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
1010 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
1012 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1013 columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1015 [% IF borrowernumber and patron %]
1016 if($.cookie("holdfor") != [% patron.borrowernumber | html %]){
1017 $.removeCookie("holdfor", { path: '/' });
1020 $.removeCookie("holdfor", { path: '/' });
1023 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1026 function toggle_onsite_checkout(){
1027 if ( $("#onsite_checkout").prop('checked') ) {
1028 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1029 [% IF !Koha.Preference('SpecifyDueDate') %]
1030 $("#duedatespec").datetimepicker('destroy');
1033 $("#duedatespec").datetimepicker({
1034 onClose: function(dateText, inst) {
1035 if (validate_date(dateText, inst) ) {
1036 $("#barcode").focus();
1041 }).on("change", function(e, value) {
1042 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1047 function Dopop(link) {
1048 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1050 $(document).ready(function() {
1051 $('#mainform').on('submit',function() {
1052 if ($("#barcode") && $("#barcode").val()) {
1053 $('#barcode').on('keypress',function(event) {
1054 $('#barcodeSubmittedModal').modal();
1055 event.preventDefault(); }
1060 if ( $('#clubs-tab').length ) {
1061 $('#clubs-tab-link').on('click', function() {
1062 $('#clubs-tab').text(_("Loading..."));
1063 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1067 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1068 // listen submit to trigger qslip on empty checkout
1069 $('#mainform').bind('submit',function() {
1070 if ($('#barcode').val() == '') {
1071 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1075 toggle_onsite_checkout();
1076 $("#onsite_checkout").click(function(){
1077 toggle_onsite_checkout();
1080 $("#suspend_until").datepicker({
1081 onClose: function(dateText, inst) {
1082 validate_date(dateText, inst);
1084 minDate: 1, // require that hold suspended until date is after today
1088 [% IF !override_high_holds %]
1089 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1090 if ('[% duedatespec | html %]' === '') {
1091 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1093 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1097 $("#override_high_holds_tmp").on( 'change', function() {
1098 if ( this.checked ) {
1099 $("input[name=duedatespec]:hidden").val('');
1105 [% INCLUDE 'str/members-menu.inc' %]
1106 [% Asset.js("js/members-menu.js") | $raw %]
1109 [% INCLUDE 'intranet-bottom.inc' %]