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 <button type="submit" class="btn btn-primary">Check out</button>
767 <div class="circ-settings">
769 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
770 [% IF ( SpecifyDueDate ) %]
771 <div id="specify-due-date" class="circ-setting">
772 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
773 [% IF ( duedatespec ) %]
774 <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" />
776 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
778 <label for="stickyduedate"> Remember for session:</label>
779 [% IF ( stickyduedate ) %]
780 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
782 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
788 [% UNLESS ( noissues ) %]
789 [% IF Koha.Preference('AllowSetAutomaticRenewal') %]
790 <div id="set-automatic-renewal" class="circ-setting">
791 [% IF NEEDSCONFIRMATION %]
793 [% IF patron.autorenew_checkouts %]
794 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
795 title="Patron has opted out of auto-renewal"/>
797 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
800 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
803 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
804 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
805 [% ELSIF patron.autorenew_checkouts %]
806 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
808 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
809 title="Patron has opted out of auto-renewal"/>
813 <label for="auto_renew">Automatic renewal</label>
816 [% IF Koha.Preference('decreaseLoanHighHolds') %]
817 <div id="set_high_holds_overrride" class="circ-setting">
818 [% IF NEEDSCONFIRMATION %]
819 [% IF override_high_holds %]
820 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
822 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
825 [% IF override_high_holds %]
826 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
828 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
831 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
836 [% IF Koha.Preference('OnSiteCheckouts') %]
837 <div id="onsite_checkout-select" class="circ-setting">
839 <div class="onsite-checkout-only">
840 <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>
841 <input type="text" name="duedatespec" id="duedatespec" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
842 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
845 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
846 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
848 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
854 </div> <!-- /.circ-settings -->
856 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
857 <input type="hidden" name="branch" value="[% branch | html %]" />
858 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
860 <input type="hidden" name="charges" value="yes" />
862 </fieldset> <!-- /#circ_circulation_issue -->
865 <div class="lastchecked">
867 <strong>Checked out: </strong>
868 [% issue.item.biblio.title | html %] ([% issue.item.barcode | html %]).
870 [% IF issue.item.is_bundle %]
871 [% SET bundle_items_count = issue.item.bundle_items.count %]
872 [% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %].
875 Due on [% issue.date_due | $KohaDates as_due_date => 1 %]
879 </form> <!-- /#mainform -->
880 </div> <!-- /.col-sm-6 -->
882 [% END #/IF !noissues %]
884 [% IF ( noissues ) %]
885 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
886 <div class="col-sm-6">
891 <div class="col-sm-6">
894 [% IF ( noissues ) %]
895 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
896 <div id="circmessages" class="circmessage attention">
898 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
899 <div id="circmessages" class="circmessage warning">
903 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
904 <span class="circ-hlt">Only on-site checkouts are allowed</span>
908 <div id="circmessages" class="circmessage attention">
911 [% INCLUDE 'patron_messages.inc' %]
913 </div> <!-- /#circmessages -->
914 </div> <!-- /div or div.col-sm-6 -->
915 </div> <!-- /.row -->
917 [% INCLUDE 'patron-detail-tabs.inc' patronpage = "circ" %]
919 [% ELSIF borrowernumber # IF patron %]
920 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
921 [% END # /IF patron %]
923 </div> <!-- /.col-sm-10.col-sm-push-2 -->
925 [% IF Koha.Preference('CircSidebar') %]
926 [% IF not( borrowernumber and patron ) %]
927 <div class="col-sm-2 col-sm-pull-10">
929 [% INCLUDE 'circ-nav.inc' %]
931 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
935 [% IF borrowernumber and patron %]
936 <div class="col-sm-2 col-sm-pull-10">
938 [% INCLUDE 'circ-menu.inc' %]
940 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
943 </div> <!-- /.row -->
946 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
947 [% INCLUDE 'modals/resolve_return_claim.inc' %]
951 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
952 <div class="modal-dialog">
953 <div class="modal-content">
954 <div class="modal-header">
955 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
957 <div class="modal-body">
958 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
960 </div> <!-- /.modal-content -->
961 </div> <!-- /.modal-dialog -->
962 </div> <!-- /#barcodeSubmittedModal -->
964 [% MACRO jsinclude BLOCK %]
965 [% INCLUDE 'datatables.inc' %]
966 [% INCLUDE 'columns_settings.inc' %]
967 [% INCLUDE 'select2.inc' %]
968 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
969 [% PROCESS 'modal-claims.inc' %]
970 [% PROCESS 'modal-claims-js' %]
971 [% INCLUDE 'js-date-format.inc' %]
974 /* Set some variable needed in circulation.js */
975 const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') || 0 | html %];
976 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
977 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
978 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
979 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
980 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
981 var interface = "[% interface | html %]";
982 var theme = "[% theme | html %]";
983 var borrowernumber = "[% patron.borrowernumber | html %]";
984 var branchcode = "[% branch | html %]";
985 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
986 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
987 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
988 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
989 var script = "circulation";
990 var relatives_borrowernumbers = new Array();
991 [% FOREACH b IN relatives_borrowernumbers %]
992 relatives_borrowernumbers.push("[% b | html %]");
994 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
996 [% Asset.js("js/pages/circulation.js") | $raw %]
997 [% Asset.js("js/checkouts.js") | $raw %]
998 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
999 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1001 [% Asset.js("js/holds.js") | $raw %]
1002 [% INCLUDE 'calendar.inc' %]
1004 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1005 table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1006 table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1007 table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
1009 [% IF borrowernumber and patron %]
1010 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1011 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
1014 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
1017 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
1020 function toggle_onsite_checkout(){
1021 if ( $("#onsite_checkout").prop('checked') ) {
1022 const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
1023 duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
1027 function Dopop(link) {
1028 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1030 $(document).ready(function() {
1031 $('#mainform').on('submit',function() {
1032 if ($("#barcode") && $("#barcode").val()) {
1033 $('#barcode').on('keypress',function(event) {
1034 $('#barcodeSubmittedModal').modal();
1035 event.preventDefault(); }
1040 // listen submit to trigger qslip on empty checkout
1041 $('#mainform').bind('submit',function() {
1042 if ($('#barcode').val() == '') {
1043 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
1044 window.location='/cgi-bin/koha/circ/circulation.pl';
1047 window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=issue[% CircAutoPrintQuickSlip | html %]", "printwindow");
1052 toggle_onsite_checkout();
1053 $("#onsite_checkout").click(function(){
1054 toggle_onsite_checkout();
1058 [% IF !override_high_holds %]
1059 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1060 if ('[% duedatespec | html %]' === '') {
1061 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1063 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1067 $("#override_high_holds_tmp").on( 'change', function() {
1068 if ( this.checked ) {
1069 $("input[name=duedatespec]:hidden").val('');
1075 [% INCLUDE 'str/members-menu.inc' %]
1076 [% Asset.js("js/members-menu.js") | $raw %]
1077 [% Asset.js("js/recalls.js") | $raw %]
1080 [% INCLUDE 'intranet-bottom.inc' %]
1082 [% BLOCK circulation_rule_criteria %]
1086 [% IF rule.itemtype %]
1087 [% ItemTypes.GetDescription( rule.itemtype ) | html %]
1089 <i>All item types</i>
1094 [% IF rule.categorycode %]
1095 [% Categories.GetName( rule.categorycode ) | html %]
1097 <i>All patron categories</i>
1102 [% IF rule.branchcode %]
1103 [% Branches.GetName( rule.branchcode ) | html %]
1105 <i>All libraries</i>