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">
60 [% INCLUDE 'members-toolbar.inc' %]
65 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
66 [% IF ( was_renewed ) %]
67 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
71 <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>
74 [% IF ADDITIONAL_MATERIALS && !NEEDSCONFIRMATION %]
75 <div id="materials" class="dialog message">Note about the accompanying materials: [% ADDITIONAL_MATERIALS | html %]
79 [% IF ( alert.ITEM_LOST ) %]
80 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
83 [% IF ( alert.OTHER_CHARGES ) %]
84 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
87 [% IF alert.HIGHHOLDS %]
88 <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>
91 [% IF alert.RETURNED_FROM_ANOTHER %]
92 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
96 <div class="dialog alert">Item is booked by this user<div>
99 [% IF ( nopermission ) %]
100 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
103 [% IF is_anonymous %]
104 <div class="dialog alert">This is the anonymous patron, so circulation is disabled.</div>
107 [% IF ( NEEDSCONFIRMATION ) %]
108 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1">
109 [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]
110 <h3>Please confirm checkout</h3>
112 <h3>Cannot check out</h3>
116 [%IF ( AGE_RESTRICTION ) %]
118 Age restriction [% AGE_RESTRICTION | html %].
119 [% IF CAN_user_circulate_force_checkout %]
127 <li>The patron has a debt of [% DEBT | $Price %].</li>
130 [% IF ( DEBT_GUARANTEES ) %]
131 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
134 [% IF ( DEBT_GUARANTORS ) %]
135 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
138 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
139 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
142 [% IF ( RENEW_ISSUE ) %]
143 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
146 [% IF ( RESERVE_WAITING ) %]
147 <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>
150 [% IF ( TRANSFERRED ) %]
151 <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>
154 [% IF ( PROCESSING ) %]
155 <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>
158 [% IF ( RESERVED ) %]
159 <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>
162 [% IF ( ISSUED_TO_ANOTHER ) %]
163 <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 %]).
164 [% IF CAN_user_circulate_force_checkout %]
165 Check in and check out?
170 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
171 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
174 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
175 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
178 [% IF ( BORRNOTSAMEBRANCH ) %]
179 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
182 [% IF ( PATRON_CANT ) %]
183 <li>This patron can't check out this item per library circulation policy.</li>
186 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
187 <li>No circulation rule is defined for this patron and itemtype combination.</li>
190 [% IF ( NOT_FOR_LOAN_FORCING ) %]
192 [% IF ( itemtype_notforloan ) %]
193 <span>Item type is normally not for loan.</span>
194 [% ELSIF ( item_notforloan ) %]
195 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
196 <span>Item is normally not for loan</span>[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
198 [% IF CAN_user_circulate_force_checkout %]
199 <span>Check out anyway?</span>
204 [% IF ( USERBLOCKEDOVERDUE ) %]
205 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
206 [% IF CAN_user_circulate_force_checkout %]
212 [% IF ( ITEM_LOST ) %]
213 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
214 [% IF CAN_user_circulate_force_checkout %]
221 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
225 <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>
228 [% IF BIBLIO_ALREADY_ISSUED %]
230 Patron has already checked out another item from this record.
231 [% IF CAN_user_circulate_force_checkout %]
237 [% IF ADDITIONAL_MATERIALS %]
239 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
244 [% IF RECALLED.waiting %]
245 <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>
246 [% ELSIF RECALLED.requested or RECALLED.overdue %]
247 <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>
251 [% IF ( BOOKED_TO_ANOTHER ) %]
253 Due for another patron booking by: [% BOOKED_TO_ANOTHER.start_date | $KohaDates %]
257 [% IF ( BOOKED_EARLY ) %]
259 Patron has this item booked for checkout on [% BOOKED_EARLY.start_date | $KohaDates %]
264 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
265 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
267 <input type="hidden" name="restoreduedatespec" />
269 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
272 <p class="circ-override-high-holds">
273 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
274 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
278 [% IF ( RESERVED ) %]
280 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
281 <label for="cancelreserve">Cancel hold</label>
285 [% IF ( RESERVE_WAITING ) %]
287 <label for="cancelreserve">Cancel hold</label>
288 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
289 <label for="revertreserve">Revert waiting status</label>
290 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
294 [% IF ( TRANSFERRED ) %]
296 <label for="cancelreserve">Cancel hold</label>
297 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
298 <label for="revertreserve">Revert hold transfer status</label>
299 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
303 [% IF ( PROCESSING ) %]
305 <label for="cancelreserve">Cancel hold</label>
306 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
307 <label for="revertreserve">Revert In Processing status</label>
308 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
312 [% IF ( RECALLED ) %]
314 <label for="cancelrecall">Cancel recall</label>
315 <input type="radio" value="cancel" name="cancel_recall" id="cancelrecall" />
316 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
318 [% IF RECALLED.waiting %]
320 <label for="revertrecall">Revert waiting status</label>
321 <input type="radio" value="revert" name="cancel_recall" id="revertrecall" checked="checked"/>
322 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
327 <input type="hidden" name="barcode" value="[% barcode | html %]" />
328 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
329 <input type="hidden" name="issueconfirmed" value="1" />
330 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
332 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
334 [% IF ( INVALID_DATE ) %]
336 <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" />
337 <label for="duedatespec">Due date</label>
340 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
343 [% IF ( BOOKED_TO_ANOTHER ) %]
345 <label for="reduceddue">Reducing due date to: <label>
346 <input type="text" size="20" id="reudceddue" name="reduceddue" value="[% reduceddue | $KohaDates with_hours => 1 %]" readonly="readonly">
350 [% IF ( BOOKED_EARLY ) %]
352 Allow early collection?
356 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
357 <input type="hidden" name="branch" value="[% branch | html %]" />
359 [% IF ( RENEW_ISSUE ) %]
360 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
362 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
365 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
366 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
369 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
371 [% IF ADDITIONAL_MATERIALS && !CAN_user_circulate_force_checkout %]
372 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
373 <input type="hidden" name="restoreduedatespec" />
375 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
377 <input type="hidden" name="barcode" value="[% barcode | html %]" />
378 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
379 <input type="hidden" name="issueconfirmed" value="1" />
380 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
381 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
382 <input type="hidden" name="branch" value="[% branch | html %]" />
384 [% IF ( RENEW_ISSUE ) %]
385 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
387 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
390 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
391 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
393 [% END # /IF ADDITIONAL_MATERIALS %]
395 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
396 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
397 <input type="hidden" name="restoreduedatespec" />
398 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
399 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
400 <input type="hidden" name="confirm_hold" value="[% reserve_id | html %]" />
401 <input type="hidden" name="hold_branch" value="[% resbranchcode | html %]" />
402 <input type="hidden" name="hold_borrower" value="[% resborrowernumber | html %]" />
403 <input type="hidden" name="hold_itemnumber" value="[% item.itemnumber | html %]" />
404 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
405 <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>
409 [% IF ( RECALLED ) %]
410 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
411 <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>
415 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
416 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
417 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
418 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
419 <input type="hidden" name="restoreduedatespec" />
420 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
421 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS or ADDITIONAL_MATERIALS %]
422 [% IF ( RENEW_ISSUE ) %]
423 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
425 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
428 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
432 [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
433 [% UNLESS noissues %]
434 <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>
437 </div> <!-- /#circ_needsconfirmation -->
438 [% END # /NEEDSCONFIRMATION %]
440 [% IF ( IMPOSSIBLE ) %]
441 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
442 [% IF ( UNKNOWN_BARCODE ) %]
443 <h3>Barcode not found</h3>
446 <!-- RESULT OF ISSUING REQUEST -->
448 [% IF ( DEBT_GUARANTORS ) %]
449 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
453 <li>Local use recorded</li>
456 [% IF ( INVALID_DATE ) %]
457 <li>The due date "[% INVALID_DATE | $KohaDates %]" is invalid</li>
460 [% IF ( UNKNOWN_BARCODE ) %]
461 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
463 [% IF ( FALLBACK ) %]
465 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
467 <div>No items were found by searching.</div>
471 [% IF ( fast_cataloging ) %]
472 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
473 <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>
480 [% IF ( NOT_FOR_LOAN ) %]
482 [% IF ( itemtype_notforloan ) %]
483 Item type not for loan.
484 [% ELSIF ( item_notforloan ) %]
485 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
486 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
491 [% IF ( WTHDRAWN ) %]
493 <span>Item has been withdrawn</span>
494 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
495 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
499 [% IF ( RESTRICTED ) %]
500 <li>Item is restricted</li>
504 <li>Patron's address is in doubt</li>
507 [% IF ( CARD_LOST ) %]
508 <li>Patron's card is lost</li>
511 [% IF ( DEBARRED ) %]
512 <li>Patron is restricted</li>
515 [% IF ( NO_MORE_RENEWALS ) %]
516 <li>No more renewals possible</li>
519 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
520 <li>This item can not be renewed, it's an on-site checkout</li>
523 [%IF ( AGE_RESTRICTION ) %]
524 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
528 <li>Patron's card is expired</li>
531 [% IF ( TOO_MANY ) %]
532 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
535 [% IF ( ITEMNOTSAMEBRANCH ) %]
536 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
539 [% IF RETURN_IMPOSSIBLE %]
540 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
543 [% IF ( USERBLOCKEDWITHENDDATE ) %]
544 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
547 [% IF ( USERBLOCKEDNOENDDATE ) %]
548 <li>Patron has an indefinite restriction.</li>
551 [% IF ( USERBLOCKEDOVERDUE ) %]
552 <li>Checkouts are BLOCKED because patron has overdue items.</li>
555 [% IF ( RECALLED_INTRANSIT ) %]
556 <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
559 [% IF NO_OPEN_DAYS %]
560 <li>No open days found while calculating the due date. Check the library calendar.</li>
564 [% IF (forceallow) %]
565 <li>Restriction overridden temporarily.</li>
568 [% IF ( BOOKED_TO_ANOTHER ) %]
569 <li>!!A booking exists!!</li>
572 </div> <!-- /#circ_impossible -->
574 [% IF ( FALLBACK ) %]
577 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
578 <div class="modal-dialog modal-wide" role="document">
579 <div class="modal-content">
580 <div class="modal-header">
581 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
582 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
584 <div class="modal-body">
585 <table class="table_borrowers">
592 <th>Inventory number</th>
593 <th>Serial enumeration</th>
595 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
600 [% FOREACH item IN options %]
603 <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>
604 [% IF item.onloan %]<span style="float: right; color: red; margin-left:5px;">Checked out</span>[% END %]
607 [% item.barcode | html %]
609 <td>[% item.itemcallnumber | html %]</th>
610 <td>[% item.copynumber | html %]</th>
611 <td>[% item.stocknumber| html %]</th>
612 <td>[% item.enumchron| html %]</th>
614 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
616 [% IF ( item_level_itypes ) %]
618 [% ItemTypes.GetDescription( item.itype ) | html %]
622 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
623 [% IF (forceallow) %]
624 <input type="hidden" name="forceallow" value="1">
626 <input type="hidden" name="restoreduedatespec" />
627 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
628 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
629 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
630 <input type="hidden" name="branch" value="[% branch | html %]" />
631 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
632 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
633 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
634 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
641 </div> <!-- /.modal-body -->
642 <div class="modal-footer">
643 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
645 </div> <!-- /.modal-content -->
646 </div> <!-- /.modal-dialog.modal-wide -->
647 </div> <!-- /#itemSearchFallback -->
648 [% END # /IF options %]
649 [% END # /IF FALLBACK %]
651 [% ELSE # IF IMPOSSIBLE %]
652 [% IF (forceallow) %]
653 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
655 [% END # /IF IMPOSSIBLE %]
657 <span class="audio-alert-success"></span>
660 <p>Item checked out</p>
664 [% INCLUDE 'patron-toolbar.inc' %]
665 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
668 <!-- BARCODE ENTRY -->
672 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
673 <div class="dialog alert">
674 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
679 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
680 <div class="col-sm-6">
681 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
682 <input type="hidden" name="restoreduedatespec" />
684 <fieldset id="circ_circulation_issue" class="lastchecked">
686 <fieldset id="circ_circulation_issue">
689 [% IF Koha.Preference('DisplayClearScreenButton') == 'issueslip' %]
690 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
691 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
692 [% ELSIF Koha.Preference('DisplayClearScreenButton') == 'issueqslip' %]
693 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
694 <span id="printclearscreenq"><a href="#" title="Print quick slip and clear screen"><i class="fa fa-print"></i></a></span>
697 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
699 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
701 [% IF NEEDSCONFIRMATION %]
702 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
704 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
705 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode or keyword" />
707 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode" />
711 <div id="show-circ-settings">
712 <a href="#" title="Checkout settings"><i class="fa-solid fa-sliders"></i></a>
715 <button type="submit" class="btn btn-primary">Check out</button>
717 <div class="circ-settings">
719 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
720 [% IF ( SpecifyDueDate ) %]
721 <div id="specify-due-date" class="circ-setting">
722 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
723 [% IF ( duedatespec ) %]
724 <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" />
726 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
728 <label for="stickyduedate"> Remember for session:</label>
729 [% IF ( stickyduedate ) %]
730 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
732 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
738 [% UNLESS ( noissues ) %]
739 [% IF Koha.Preference('AllowSetAutomaticRenewal') %]
740 <div id="set-automatic-renewal" class="circ-setting">
741 [% IF NEEDSCONFIRMATION %]
743 [% IF patron.autorenew_checkouts %]
744 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
745 title="Patron has opted out of auto-renewal"/>
747 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
750 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
753 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
754 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
755 [% ELSIF patron.autorenew_checkouts %]
756 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
758 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
759 title="Patron has opted out of auto-renewal"/>
763 <label for="auto_renew">Automatic renewal</label>
766 [% IF Koha.Preference('decreaseLoanHighHolds') %]
767 <div id="set_high_holds_overrride" class="circ-setting">
768 [% IF NEEDSCONFIRMATION %]
769 [% IF override_high_holds %]
770 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
772 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
775 [% IF override_high_holds %]
776 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
778 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
781 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
786 [% IF Koha.Preference('OnSiteCheckouts') %]
787 <div id="onsite_checkout-select" class="circ-setting">
789 <div class="onsite-checkout-only">
790 <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>
791 <input type="text" name="duedatespec" id="duedatespec" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
792 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
795 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
796 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
798 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
804 </div> <!-- /.circ-settings -->
806 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
807 <input type="hidden" name="branch" value="[% branch | html %]" />
808 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
810 <input type="hidden" name="charges" value="yes" />
812 </fieldset> <!-- /#circ_circulation_issue -->
815 <div class="lastchecked">
817 <strong>Checked out: </strong>
818 [% issue.item.biblio.title | html %] ([% issue.item.barcode | html %]).
820 [% IF issue.item.is_bundle %]
821 [% SET bundle_items_count = issue.item.bundle_items.count %]
822 [% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %].
825 Due on [% issue.date_due | $KohaDates as_due_date => 1 %]
829 </form> <!-- /#mainform -->
830 </div> <!-- /.col-sm-6 -->
832 [% END #/IF !noissues %]
834 [% IF ( noissues ) %]
835 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
836 <div class="col-sm-6">
841 <div class="col-sm-6">
844 [% IF ( noissues ) %]
845 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
846 <div id="circmessages" class="circmessage attention">
848 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
849 <div id="circmessages" class="circmessage warning">
853 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
854 <span class="circ-hlt">Only on-site checkouts are allowed</span>
858 <div id="circmessages" class="circmessage attention">
861 [% INCLUDE 'patron_messages.inc' %]
863 </div> <!-- /#circmessages -->
864 </div> <!-- /div or div.col-sm-6 -->
865 </div> <!-- /.row -->
867 [% INCLUDE 'patron-detail-tabs.inc' patronpage = "circ" %]
869 [% ELSIF borrowernumber # IF patron %]
870 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
871 [% END # /IF patron %]
873 </div> <!-- /.col-sm-10.col-sm-push-2 -->
875 [% IF Koha.Preference('CircSidebar') %]
876 [% IF not( borrowernumber and patron ) %]
877 <div class="col-sm-2 col-sm-pull-10">
879 [% INCLUDE 'circ-nav.inc' %]
881 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
885 [% IF borrowernumber and patron %]
886 <div class="col-sm-2 col-sm-pull-10">
888 [% INCLUDE 'circ-menu.inc' %]
890 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
893 </div> <!-- /.row -->
896 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
897 [% INCLUDE 'modals/resolve_return_claim.inc' %]
901 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
902 <div class="modal-dialog">
903 <div class="modal-content">
904 <div class="modal-header">
905 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
907 <div class="modal-body">
908 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
910 </div> <!-- /.modal-content -->
911 </div> <!-- /.modal-dialog -->
912 </div> <!-- /#barcodeSubmittedModal -->
914 [% MACRO jsinclude BLOCK %]
915 [% INCLUDE 'datatables.inc' %]
916 [% INCLUDE 'columns_settings.inc' %]
917 [% INCLUDE 'select2.inc' %]
918 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
919 [% PROCESS 'modal-claims.inc' %]
920 [% PROCESS 'modal-claims-js' %]
921 [% INCLUDE 'js-date-format.inc' %]
924 /* Set some variable needed in circulation.js */
925 const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') || 0 | html %];
926 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
927 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
928 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
929 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
930 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
931 var interface = "[% interface | html %]";
932 var theme = "[% theme | html %]";
933 var borrowernumber = "[% patron.borrowernumber | html %]";
934 var branchcode = "[% branch | html %]";
935 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
936 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
937 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
938 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
939 var script = "circulation";
940 var relatives_borrowernumbers = new Array();
941 [% FOREACH b IN relatives_borrowernumbers %]
942 relatives_borrowernumbers.push("[% b | html %]");
944 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
946 [% Asset.js("js/pages/circulation.js") | $raw %]
947 [% Asset.js("js/checkouts.js") | $raw %]
948 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
949 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
951 [% Asset.js("js/holds.js") | $raw %]
952 [% INCLUDE 'calendar.inc' %]
954 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
955 table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
956 table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
957 table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
959 [% IF borrowernumber and patron %]
960 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
961 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
964 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
967 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
970 function toggle_onsite_checkout(){
971 if ( $("#onsite_checkout").prop('checked') ) {
972 const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
973 duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
977 function Dopop(link) {
978 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
980 $(document).ready(function() {
981 $('#mainform').on('submit',function() {
982 if ($("#barcode") && $("#barcode").val()) {
983 $('#barcode').on('keypress',function(event) {
984 $('#barcodeSubmittedModal').modal();
985 event.preventDefault(); }
990 // listen submit to trigger qslip on empty checkout
991 $('#mainform').bind('submit',function() {
992 if ($('#barcode').val() == '') {
993 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
994 window.location='/cgi-bin/koha/circ/circulation.pl';
997 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1001 toggle_onsite_checkout();
1002 $("#onsite_checkout").click(function(){
1003 toggle_onsite_checkout();
1007 [% IF !override_high_holds %]
1008 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1009 if ('[% duedatespec | html %]' === '') {
1010 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1012 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1016 $("#override_high_holds_tmp").on( 'change', function() {
1017 if ( this.checked ) {
1018 $("input[name=duedatespec]:hidden").val('');
1024 [% INCLUDE 'str/members-menu.inc' %]
1025 [% Asset.js("js/members-menu.js") | $raw %]
1026 [% Asset.js("js/recalls.js") | $raw %]
1029 [% INCLUDE 'intranet-bottom.inc' %]