8 [% USE TablesSettings %]
11 [% USE AuthorisedValues %]
12 [% PROCESS 'i18n.inc' %]
13 [% SET footerjs = 1 %]
14 [% INCLUDE 'doc-head-open.inc' %]
15 [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
16 [% SET destination = "circ" %]
17 <title>[% FILTER collapse %]
19 [% patron_in_title = INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %]
20 [% tx("Checking out to {patron}", { patron = patron_in_title }) | html %] ›
22 [% t("Circulation") | html %] ›
23 [% t("Koha") | html %]
25 [% INCLUDE 'doc-head-close.inc' %]
28 <body id="circ_circulation" class="circ">
30 [% WRAPPER 'header.inc' %]
31 [% INCLUDE 'circ-search.inc' %]
34 [% WRAPPER 'sub-header.inc' %]
35 [% WRAPPER breadcrumbs %]
36 [% WRAPPER breadcrumb_item %]
37 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
40 [% WRAPPER breadcrumb_item %]
41 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a>
43 [% WRAPPER breadcrumb_item bc_active= 1 %]
44 [% INCLUDE 'patron-title.inc' %]
47 [% WRAPPER breadcrumb_item bc_active= 1 %]
48 <span>Checkouts</span>
51 [% END #/ WRAPPER breadcrumbs %]
52 [% END #/ WRAPPER sub-header.inc %]
54 <div class="main container-fluid">
57 <div class="col-sm-10 col-sm-push-2">
58 [% INCLUDE 'messages.inc' %]
61 [% INCLUDE 'members-toolbar.inc' %]
66 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
67 [% IF ( was_renewed ) %]
68 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
72 <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>
75 [% IF ADDITIONAL_MATERIALS && !NEEDSCONFIRMATION %]
76 <div id="materials" class="dialog message">
77 <span class="mats_spec_label">Note about the accompanying materials: </span>
78 <span class="mats_spec_message">[% ADDITIONAL_MATERIALS | html %]</span>
82 [% IF ( alert.ITEM_LOST ) %]
83 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
86 [% IF ( alert.OTHER_CHARGES ) %]
87 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
90 [% IF alert.HIGHHOLDS %]
91 <div class="dialog message">High demand item. <strong>Loan period was not shortened due to override.</strong> Shortened due date would have been [% alert.HIGHHOLDS.returndate | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).</div>
94 [% IF alert.RETURNED_FROM_ANOTHER %]
95 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
99 <div class="dialog alert">Item is booked by this user</div>
102 [% IF ( nopermission ) %]
103 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
106 [% IF is_anonymous %]
107 <div class="dialog alert">This is the anonymous patron, so circulation is disabled.</div>
110 [% IF ( NEEDSCONFIRMATION ) %]
111 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1">
112 [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]
113 <h3>Please confirm checkout</h3>
115 <h3>Cannot check out</h3>
119 [%IF ( AGE_RESTRICTION ) %]
121 Age restriction [% AGE_RESTRICTION | html %].
122 [% IF CAN_user_circulate_force_checkout %]
130 <li>The patron has a debt of [% DEBT | $Price %].</li>
133 [% IF ( DEBT_GUARANTEES ) %]
134 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
137 [% IF ( DEBT_GUARANTORS ) %]
138 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
141 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
142 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
145 [% IF ( RENEW_ISSUE ) %]
146 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
149 [% IF ( RESERVE_WAITING ) %]
150 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% 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>
153 [% IF ( TRANSFERRED ) %]
154 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) and being transferred to [% Branches.GetName( resbranchcode ) | html %]</li>
157 [% IF ( PROCESSING ) %]
158 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is being processed for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %]</li>
161 [% IF ( RESERVED ) %]
162 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% 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>
165 [% IF ( ISSUED_TO_ANOTHER ) %]
166 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% 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 %]).
167 [% IF CAN_user_circulate_force_checkout %]
168 Check in and check out?
173 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
174 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
176 Maximum checkouts calculated from the circulation rule for
177 [% INCLUDE circulation_rule_criteria rule=circulation_rule_TOO_MANY %]
181 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
182 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
184 Maximum checkouts calculated from the circulation rule for
185 [% INCLUDE circulation_rule_criteria rule=circulation_rule_TOO_MANY %]
189 [% IF ( BORRNOTSAMEBRANCH ) %]
190 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
193 [% IF ( PATRON_CANT ) %]
194 <li>This patron can't check out this item per library circulation policy.</li>
197 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
198 <li>No circulation rule is defined for this patron and itemtype combination.</li>
201 [% IF ( NOT_FOR_LOAN_FORCING ) %]
203 [% IF ( itemtype_notforloan ) %]
204 <span>Item type is normally not for loan.</span>
205 [% ELSIF ( item_notforloan ) %]
206 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
207 <span>Item is normally not for loan</span>[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
209 [% IF CAN_user_circulate_force_checkout %]
210 <span>Check out anyway?</span>
215 [% IF ( USERBLOCKEDOVERDUE ) %]
216 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
217 [% IF CAN_user_circulate_force_checkout %]
223 [% IF ( ITEM_LOST ) %]
224 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
225 [% IF CAN_user_circulate_force_checkout %]
232 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
236 <li>Patron has previously checked out this title: <strong>[% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</strong>. Check out anyway?</li>
239 [% IF BIBLIO_ALREADY_ISSUED %]
241 Patron has already checked out another item from this record.
242 [% IF CAN_user_circulate_force_checkout %]
248 [% IF ADDITIONAL_MATERIALS %]
250 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
255 [% IF RECALLED.waiting %]
256 <li>Item <i>[% RECALLED.biblio.title | html %]</i> ([% RECALLED.item.barcode | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.patron_id | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.pickup_library_id ) | html %] since [% RECALLED.waiting_date | $KohaDates %]</li>
257 [% ELSIF RECALLED.requested or RECALLED.overdue %]
258 <li>Item <i>[% RECALLED.biblio.title | html %]</i> [% IF RECALLED.item %]([% RECALLED.item.barcode | html %])[% END %] has been recalled by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.patron_id | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.pickup_library_id ) | html %] since [% RECALLED.created_date | $KohaDates %]</li>
262 [% IF ( BOOKED_TO_ANOTHER ) %]
264 Due for another patron booking by: [% BOOKED_TO_ANOTHER.start_date | $KohaDates %]
268 [% IF ( BOOKED_EARLY ) %]
270 Patron has this item booked for checkout on [% BOOKED_EARLY.start_date | $KohaDates %]
275 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
276 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
277 [% INCLUDE 'csrf-token.inc' %]
279 <input type="hidden" name="restoreduedatespec" />
280 <input type="hidden" name="op" value="cud-checkout" />
282 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
285 <p class="circ-override-high-holds">
286 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
287 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
291 [% IF ( RESERVED ) %]
293 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
294 <label for="cancelreserve">Cancel hold</label>
298 [% IF ( RESERVE_WAITING ) %]
300 <label for="cancelreserve">Cancel hold</label>
301 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
302 <label for="revertreserve">Revert waiting status</label>
303 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
307 [% IF ( TRANSFERRED ) %]
309 <label for="cancelreserve">Cancel hold</label>
310 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
311 <label for="revertreserve">Revert hold transfer status</label>
312 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
316 [% IF ( PROCESSING ) %]
318 <label for="cancelreserve">Cancel hold</label>
319 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
320 <label for="revertreserve">Revert In Processing status</label>
321 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
325 [% IF ( RECALLED ) %]
327 <label for="cancelrecall">Cancel recall</label>
328 <input type="radio" value="cancel" name="cancel_recall" id="cancelrecall" />
329 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
331 [% IF RECALLED.waiting %]
333 <label for="revertrecall">Revert waiting status</label>
334 <input type="radio" value="revert" name="cancel_recall" id="revertrecall" checked="checked"/>
335 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
340 <input type="hidden" name="barcode" value="[% barcode | html %]" />
341 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
342 <input type="hidden" name="issueconfirmed" value="1" />
343 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
345 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
347 [% IF ( INVALID_DATE ) %]
349 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
350 <label for="duedatespec">Due date</label>
353 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
356 [% IF ( BOOKED_TO_ANOTHER ) %]
358 <label for="reduceddue">Reducing due date to: <label>
359 <input type="text" size="20" id="reduceddue" name="reduceddue" value="[% reduceddue | html %]" class="flatpickr" data-flatpickr-futuredate="true" data-flatpickr-maxdate="[% reduceddue | html %]" required="required">
363 [% IF ( BOOKED_EARLY ) %]
365 Allow early collection?
369 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
370 <input type="hidden" name="branch" value="[% branch | html %]" />
372 [% IF ( RENEW_ISSUE ) %]
373 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
375 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
378 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
379 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
382 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
384 [% IF ADDITIONAL_MATERIALS && !CAN_user_circulate_force_checkout %]
385 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
386 [% INCLUDE 'csrf-token.inc' %]
387 <input type="hidden" name="op" value="cud-checkout" />
388 <input type="hidden" name="restoreduedatespec" />
390 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
392 <input type="hidden" name="barcode" value="[% barcode | html %]" />
393 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
394 <input type="hidden" name="issueconfirmed" value="1" />
395 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
396 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
397 <input type="hidden" name="branch" value="[% branch | html %]" />
399 [% IF ( RENEW_ISSUE ) %]
400 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
402 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
405 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
406 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
408 [% END # /IF ADDITIONAL_MATERIALS %]
410 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
411 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
412 [% INCLUDE 'csrf-token.inc' %]
413 <input type="hidden" name="op" value="cud-confirm_hold" />
414 <input type="hidden" name="restoreduedatespec" />
415 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
416 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
417 <input type="hidden" name="confirm_hold" value="[% reserve_id | html %]" />
418 <input type="hidden" name="hold_branch" value="[% resbranchcode | html %]" />
419 <input type="hidden" name="hold_borrower" value="[% resborrowernumber | html %]" />
420 <input type="hidden" name="hold_itemnumber" value="[% item.itemnumber | html %]" />
421 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
422 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]&itemnumber=[% item.id | html %]');this.form.submit();"><i class="fa fa-print"></i> Don't check out, confirm hold, and print slip (P)</button>
426 [% IF ( RECALLED ) %]
427 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
428 <button class="print" type="submit" onclick="Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% RECALLED.id | html %]');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
432 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
433 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
434 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
435 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
436 <input type="hidden" name="restoreduedatespec" />
437 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
438 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS or ADDITIONAL_MATERIALS %]
439 [% IF ( RENEW_ISSUE ) %]
440 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
442 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
445 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
449 [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
450 [% UNLESS noissues %]
451 <button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa-solid fa-note-sticky"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
454 </div> <!-- /#circ_needsconfirmation -->
455 [% END # /NEEDSCONFIRMATION %]
457 [% IF ( IMPOSSIBLE ) %]
458 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
459 [% IF ( UNKNOWN_BARCODE ) %]
460 <h3>Barcode not found</h3>
463 <!-- RESULT OF ISSUING REQUEST -->
465 [% IF ( DEBT_GUARANTORS ) %]
466 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
470 <li>Local use recorded</li>
471 [% IF ( CHECKEDIN ) %]
472 <li>Item checked in from: [% INCLUDE 'patron-title.inc' patron=BORROWER %]</li>
474 [% IF ( MESSAGES.ResFound ) %]
475 <li>Item on hold, please checkin.</li>
477 [% IF ( MESSAGES.ReturnClaims ) %]
478 <li>Item claimed returned, please checkin.</li>
480 [% IF ( MESSAGES.RecallFound ) %]
481 <li>Item can fill a recall, please checkin.</li>
483 [% IF ( MESSAGES.WasLost ) %]
484 [% IF ( Koha.Preference('BlockReturnOfLostItems') ) %]
485 <li>Item was lost, cannot be returned.</li>
487 <li>Item was lost, now found.</li>
490 [% IF ( MESSAGES.withdrawn ) %]
491 [% IF ( Koha.Preference('BlockReturnOfWithdrawnItems') ) %]
492 <li>Item was withdrawn, cannot be returned.</li>
494 <li>Item was withdrawn</li>
498 [% IF ( INVALID_DATE ) %]
499 <li>The due date "[% INVALID_DATE | $KohaDates %]" is invalid</li>
502 [% IF ( UNKNOWN_BARCODE ) %]
503 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
505 [% IF ( FALLBACK ) %]
507 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
509 <div>No items were found by searching.</div>
513 [% IF ( fast_cataloging ) %]
514 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
515 <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>
522 [% IF ( NOT_FOR_LOAN ) %]
524 [% IF ( itemtype_notforloan ) %]
525 Item type not for loan.
526 [% ELSIF ( item_notforloan ) %]
527 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
528 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
533 [% IF ( WTHDRAWN ) %]
535 <span>Item has been withdrawn</span>
536 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
537 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
541 [% IF ( RESTRICTED ) %]
542 <li>Item is restricted</li>
546 <li>Patron's address is in doubt</li>
549 [% IF ( CARD_LOST ) %]
550 <li>Patron's card is lost</li>
553 [% IF ( DEBARRED ) %]
554 <li>Patron is restricted</li>
557 [% IF ( NO_MORE_RENEWALS ) %]
558 <li>No more renewals possible</li>
561 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
562 <li>This item can not be renewed, it's an on-site checkout</li>
565 [%IF ( AGE_RESTRICTION ) %]
566 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
570 <li>Patron's card is expired</li>
573 [% IF ( TOO_MANY ) %]
574 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
576 Maximum checkouts calculated from the circulation rule for
577 [% INCLUDE circulation_rule_criteria rule=circulation_rule_TOO_MANY %]
581 [% IF ( ITEMNOTSAMEBRANCH ) %]
582 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
585 [% IF RETURN_IMPOSSIBLE %]
586 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
589 [% IF ( USERBLOCKEDWITHENDDATE ) %]
590 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
593 [% IF ( USERBLOCKEDNOENDDATE ) %]
594 <li>Patron has an indefinite restriction.</li>
597 [% IF ( USERBLOCKEDOVERDUE ) %]
598 <li>Checkouts are BLOCKED because patron has overdue items.</li>
601 [% IF ( RECALLED_INTRANSIT ) %]
602 <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
605 [% IF NO_OPEN_DAYS %]
606 <li>No open days found while calculating the due date. Check the library calendar.</li>
610 [% IF (forceallow) %]
611 <li>Restriction overridden temporarily.</li>
614 [% IF ( BOOKED_TO_ANOTHER ) %]
615 <li>!!A booking exists!!</li>
618 </div> <!-- /#circ_impossible -->
620 [% IF ( FALLBACK ) %]
623 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
624 <div class="modal-dialog modal-wide" role="document">
625 <div class="modal-content">
626 <div class="modal-header">
627 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
628 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
630 <div class="modal-body">
631 <table class="table_borrowers">
638 <th>Inventory number</th>
639 <th>Serial enumeration</th>
641 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
646 [% FOREACH item IN options %]
649 <a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | html %]">[% item.biblio.title | html %] <i class="fa-solid fa-window-restore"></i></a>
650 [% IF item.onloan %]<span style="float: right; color: red; margin-left:5px;">Checked out</span>[% END %]
653 [% item.barcode | html %]
655 <td>[% item.itemcallnumber | html %]</th>
656 <td>[% item.copynumber | html %]</th>
657 <td>[% item.stocknumber| html %]</th>
658 <td>[% item.enumchron| html %]</th>
660 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
662 [% IF ( item_level_itypes ) %]
664 [% ItemTypes.GetDescription( item.itype ) | html %]
668 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
669 [% INCLUDE 'csrf-token.inc' %]
670 [% IF (forceallow) %]
671 <input type="hidden" name="forceallow" value="1">
673 <input type="hidden" name="restoreduedatespec" />
674 <input type="hidden" name="op" value="cud-checkout" />
675 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
676 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
677 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
678 <input type="hidden" name="branch" value="[% branch | html %]" />
679 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
680 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
681 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
682 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
689 </div> <!-- /.modal-body -->
690 <div class="modal-footer">
691 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
693 </div> <!-- /.modal-content -->
694 </div> <!-- /.modal-dialog.modal-wide -->
695 </div> <!-- /#itemSearchFallback -->
696 [% END # /IF options %]
697 [% END # /IF FALLBACK %]
699 [% ELSE # IF IMPOSSIBLE %]
700 [% IF (forceallow) %]
701 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
703 [% END # /IF IMPOSSIBLE %]
705 <span class="audio-alert-success"></span>
708 <p>Item checked out</p>
712 [% INCLUDE 'patron-toolbar.inc' %]
713 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
716 <!-- BARCODE ENTRY -->
720 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
721 <div class="dialog alert">
722 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
727 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
728 <div class="col-sm-6">
729 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
730 [% INCLUDE 'csrf-token.inc' %]
731 <input type="hidden" name="op" value="cud-checkout" />
732 <input type="hidden" name="restoreduedatespec" />
734 <fieldset id="circ_circulation_issue" class="lastchecked">
736 <fieldset id="circ_circulation_issue">
739 [% IF Koha.Preference('DisplayClearScreenButton') == 'issueslip' %]
740 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
741 <span class="printslip printclearscreen" data-clear="true" data-code="issueslip"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
742 [% ELSIF Koha.Preference('DisplayClearScreenButton') == 'issueqslip' %]
743 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
744 <span class="printslip printclearscreen" data-clear="true" data-code="issueqslip"><a href="#" title="Print quick slip and clear screen"><i class="fa fa-print"></i></a></span>
747 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
749 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
751 [% IF NEEDSCONFIRMATION %]
752 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
754 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
755 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode or keyword" />
757 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode" />
761 <div id="show-circ-settings">
762 <a href="#" title="Checkout settings"><i class="fa-solid fa-sliders"></i></a>
765 [% IF waiting_holds_barcodes %]
766 <button type="button" class="btn btn-primary">Check out</button>
768 <button type="submit" class="btn btn-primary">Check out</button>
771 <div class="circ-settings">
773 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
774 [% IF ( SpecifyDueDate ) %]
775 <div id="specify-due-date" class="circ-setting">
776 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
777 [% IF ( duedatespec ) %]
778 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
780 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
782 <label for="stickyduedate"> Remember for session:</label>
783 [% IF ( stickyduedate ) %]
784 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
786 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
792 [% UNLESS ( noissues ) %]
793 [% IF Koha.Preference('AllowSetAutomaticRenewal') %]
794 <div id="set-automatic-renewal" class="circ-setting">
795 [% IF NEEDSCONFIRMATION %]
797 [% IF patron.autorenew_checkouts %]
798 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
799 title="Patron has opted out of auto-renewal"/>
801 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
804 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
807 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
808 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
809 [% ELSIF patron.autorenew_checkouts %]
810 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
812 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
813 title="Patron has opted out of auto-renewal"/>
817 <label for="auto_renew">Automatic renewal</label>
820 [% IF Koha.Preference('decreaseLoanHighHolds') %]
821 <div id="set_high_holds_overrride" class="circ-setting">
822 [% IF NEEDSCONFIRMATION %]
823 [% IF override_high_holds %]
824 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
826 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
829 [% IF override_high_holds %]
830 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
832 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
835 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
840 [% IF Koha.Preference('OnSiteCheckouts') %]
841 <div id="onsite_checkout-select" class="circ-setting">
843 <div class="onsite-checkout-only">
844 <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>
845 <input type="text" name="duedatespec" id="duedatespec" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
846 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
849 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
850 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
852 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
858 </div> <!-- /.circ-settings -->
860 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
861 <input type="hidden" name="branch" value="[% branch | html %]" />
862 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
864 <input type="hidden" name="charges" value="yes" />
866 </fieldset> <!-- /#circ_circulation_issue -->
869 <div class="lastchecked">
871 <strong>Checked out: </strong>
872 [% issue.item.biblio.title | html %] ([% issue.item.barcode | html %]).
874 [% IF issue.item.is_bundle %]
875 [% SET bundle_items_count = issue.item.bundle_items.count %]
876 [% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %].
879 Due on [% issue.date_due | $KohaDates as_due_date => 1 %]
883 </form> <!-- /#mainform -->
884 </div> <!-- /.col-sm-6 -->
886 [% END #/IF !noissues %]
888 [% IF ( noissues ) %]
889 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
890 <div class="col-sm-6">
895 <div class="col-sm-6">
898 [% IF ( noissues ) %]
899 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
900 <div id="circmessages" class="circmessage attention">
902 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
903 <div id="circmessages" class="circmessage warning">
907 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
908 <span class="circ-hlt">Only on-site checkouts are allowed</span>
912 <div id="circmessages" class="circmessage attention">
915 [% INCLUDE 'patron_messages.inc' %]
917 </div> <!-- /#circmessages -->
918 </div> <!-- /div or div.col-sm-6 -->
919 </div> <!-- /.row -->
921 [% INCLUDE 'patron-detail-tabs.inc' patronpage = "circ" %]
923 [% ELSIF borrowernumber # IF patron %]
924 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
925 [% END # /IF patron %]
927 </div> <!-- /.col-sm-10.col-sm-push-2 -->
929 [% IF Koha.Preference('CircSidebar') %]
930 [% IF not( borrowernumber and patron ) %]
931 <div class="col-sm-2 col-sm-pull-10">
933 [% INCLUDE 'circ-nav.inc' %]
935 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
939 [% IF borrowernumber and patron %]
940 <div class="col-sm-2 col-sm-pull-10">
942 [% INCLUDE 'circ-menu.inc' %]
944 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
947 </div> <!-- /.row -->
950 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
951 [% INCLUDE 'modals/resolve_return_claim.inc' %]
955 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
956 <div class="modal-dialog">
957 <div class="modal-content">
958 <div class="modal-header">
959 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
961 <div class="modal-body">
962 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
964 </div> <!-- /.modal-content -->
965 </div> <!-- /.modal-dialog -->
966 </div> <!-- /#barcodeSubmittedModal -->
968 [% IF waiting_holds_barcodes %]
969 <div id="circ-warnwaitingholds-modal" class="modal fade audio-alert-action block">
970 <div class="modal-dialog">
971 <div class="modal-content">
972 <div class="modal-header">
973 <h3>This patron has waiting holds</h3>
975 <div class="modal-body">
978 This patron has waiting holds that are available for checkout
982 <div class="modal-footer">
983 <button type="button" class="btn btn-primary" data-dismiss="modal">Ok</button>
990 [% MACRO jsinclude BLOCK %]
991 [% INCLUDE 'datatables.inc' %]
992 [% INCLUDE 'columns_settings.inc' %]
993 [% INCLUDE 'select2.inc' %]
994 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
995 [% PROCESS 'modal-claims.inc' %]
996 [% PROCESS 'modal-claims-js' %]
997 [% INCLUDE 'js-date-format.inc' %]
1000 /* Set some variable needed in circulation.js */
1001 const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') || 0 | html %];
1002 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1003 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1004 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1005 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
1006 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
1007 var interface = "[% interface | html %]";
1008 var theme = "[% theme | html %]";
1009 var borrowernumber = "[% patron.borrowernumber | html %]";
1010 var branchcode = "[% branch | html %]";
1011 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1012 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1013 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1014 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1015 var script = "circulation";
1016 var relatives_borrowernumbers = new Array();
1017 [% FOREACH b IN relatives_borrowernumbers %]
1018 relatives_borrowernumbers.push("[% b | html %]");
1020 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1022 [% Asset.js("js/pages/circulation.js") | $raw %]
1023 [% Asset.js("js/checkouts.js") | $raw %]
1024 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
1025 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1027 [% Asset.js("js/holds.js") | $raw %]
1028 [% INCLUDE 'calendar.inc' %]
1030 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1031 table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1032 table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1033 table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1035 [% IF borrowernumber and patron %]
1036 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1037 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
1040 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
1043 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
1046 function toggle_onsite_checkout(){
1047 if ( $("#onsite_checkout").prop('checked') ) {
1048 const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
1049 duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
1053 function Dopop(link) {
1054 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1056 $(document).ready(function() {
1057 [% IF waiting_holds_barcodes %]
1058 $('#circ-warnwaitingholds-modal .btn-primary').on('click',function() {
1059 $('#mainform').submit();
1062 var waiting_holds_barcodes = new Array();
1063 [% FOREACH b IN waiting_holds_barcodes %]
1064 waiting_holds_barcodes.push("[% b | html %]");
1066 $('#barcode').on('keyup', function() {
1067 $('#mainform .btn-primary').off('click');
1068 $('#barcode').off('keypress');
1069 if ( waiting_holds_barcodes.includes($('#barcode').val().trim()) ) {
1070 $('#mainform .btn-primary').on('click',function() {
1071 $('#mainform').submit();
1074 $('#barcode').on('keypress', function(e) {
1075 if (e.which == 13) {
1076 $('#mainform').submit();
1080 $('#mainform .btn-primary').on('click',function() {
1081 $('#circ-warnwaitingholds-modal').modal();
1084 $('#barcode').on('keypress', function(e) {
1085 if (e.which == 13) {
1086 $('#circ-warnwaitingholds-modal').modal();
1093 $('#mainform').on('submit',function() {
1094 if ($("#barcode") && $("#barcode").val()) {
1095 $('#barcode').on('keypress',function(event) {
1096 $('#barcodeSubmittedModal').modal();
1097 event.preventDefault(); }
1102 // listen submit to trigger qslip on empty checkout
1103 $('#mainform').bind('submit',function() {
1104 if ($('#barcode').val() == '') {
1105 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
1106 window.location='/cgi-bin/koha/circ/circulation.pl';
1109 window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=issue[% CircAutoPrintQuickSlip | html %]", "printwindow");
1114 toggle_onsite_checkout();
1115 $("#onsite_checkout").click(function(){
1116 toggle_onsite_checkout();
1120 [% IF !override_high_holds %]
1121 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1122 if ('[% duedatespec | html %]' === '') {
1123 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1125 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1129 $("#override_high_holds_tmp").on( 'change', function() {
1130 if ( this.checked ) {
1131 $("input[name=duedatespec]:hidden").val('');
1137 [% INCLUDE 'str/members-menu.inc' %]
1138 [% Asset.js("js/members-menu.js") | $raw %]
1139 [% Asset.js("js/recalls.js") | $raw %]
1142 [% INCLUDE 'intranet-bottom.inc' %]
1144 [% BLOCK circulation_rule_criteria %]
1148 [% IF rule.itemtype %]
1149 [% ItemTypes.GetDescription( rule.itemtype ) | html %]
1151 <i>All item types</i>
1156 [% IF rule.categorycode %]
1157 [% Categories.GetName( rule.categorycode ) | html %]
1159 <i>All patron categories</i>
1164 [% IF rule.branchcode %]
1165 [% Branches.GetName( rule.branchcode ) | html %]
1167 <i>All libraries</i>