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>
95 [% IF ( nopermission ) %]
96 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
100 <div class="dialog alert">This is the anonymous patron, so circulation is disabled.</div>
103 [% IF ( NEEDSCONFIRMATION ) %]
104 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1">
105 [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]
106 <h3>Please confirm checkout</h3>
108 <h3>Cannot check out</h3>
112 [%IF ( AGE_RESTRICTION ) %]
114 Age restriction [% AGE_RESTRICTION | html %].
115 [% IF CAN_user_circulate_force_checkout %]
123 <li>The patron has a debt of [% DEBT | $Price %].</li>
126 [% IF ( DEBT_GUARANTEES ) %]
127 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
130 [% IF ( DEBT_GUARANTORS ) %]
131 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
134 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
135 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
138 [% IF ( RENEW_ISSUE ) %]
139 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
142 [% IF ( RESERVE_WAITING ) %]
143 <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>
146 [% IF ( TRANSFERRED ) %]
147 <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>
150 [% IF ( PROCESSING ) %]
151 <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>
154 [% IF ( RESERVED ) %]
155 <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>
158 [% IF ( ISSUED_TO_ANOTHER ) %]
159 <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 %]).
160 [% IF CAN_user_circulate_force_checkout %]
161 Check in and check out?
166 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
167 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
170 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
171 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
174 [% IF ( BORRNOTSAMEBRANCH ) %]
175 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
178 [% IF ( PATRON_CANT ) %]
179 <li>This patron can't check out this item per library circulation policy.</li>
182 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
183 <li>No circulation rule is defined for this patron and itemtype combination.</li>
186 [% IF ( NOT_FOR_LOAN_FORCING ) %]
188 [% IF ( itemtype_notforloan ) %]
189 <span>Item type is normally not for loan.</span>
190 [% ELSIF ( item_notforloan ) %]
191 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
192 <span>Item is normally not for loan</span>[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
194 [% IF CAN_user_circulate_force_checkout %]
195 <span>Check out anyway?</span>
200 [% IF ( USERBLOCKEDOVERDUE ) %]
201 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
202 [% IF CAN_user_circulate_force_checkout %]
208 [% IF ( ITEM_LOST ) %]
209 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
210 [% IF CAN_user_circulate_force_checkout %]
217 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
221 <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>
224 [% IF BIBLIO_ALREADY_ISSUED %]
226 Patron has already checked out another item from this record.
227 [% IF CAN_user_circulate_force_checkout %]
233 [% IF ADDITIONAL_MATERIALS %]
235 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
240 [% IF RECALLED.waiting %]
241 <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>
242 [% ELSIF RECALLED.requested or RECALLED.overdue %]
243 <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>
249 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
250 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
251 <input type="hidden" name="restoreduedatespec" />
253 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
256 <p class="circ-override-high-holds">
257 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
258 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
262 [% IF ( RESERVED ) %]
264 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
265 <label for="cancelreserve">Cancel hold</label>
269 [% IF ( RESERVE_WAITING ) %]
271 <label for="cancelreserve">Cancel hold</label>
272 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
273 <label for="revertreserve">Revert waiting status</label>
274 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
278 [% IF ( TRANSFERRED ) %]
280 <label for="cancelreserve">Cancel hold</label>
281 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
282 <label for="revertreserve">Revert hold transfer status</label>
283 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
287 [% IF ( PROCESSING ) %]
289 <label for="cancelreserve">Cancel hold</label>
290 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
291 <label for="revertreserve">Revert In Processing status</label>
292 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
296 [% IF ( RECALLED ) %]
298 <label for="cancelrecall">Cancel recall</label>
299 <input type="radio" value="cancel" name="cancel_recall" id="cancelrecall" />
300 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
302 [% IF RECALLED.waiting %]
304 <label for="revertrecall">Revert waiting status</label>
305 <input type="radio" value="revert" name="cancel_recall" id="revertrecall" checked="checked"/>
306 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
311 <input type="hidden" name="barcode" value="[% barcode | html %]" />
312 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
313 <input type="hidden" name="issueconfirmed" value="1" />
314 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
316 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
318 [% IF ( INVALID_DATE ) %]
320 <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" />
321 <label for="duedatespec">Due date</label>
324 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
327 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
328 <input type="hidden" name="branch" value="[% branch | html %]" />
330 [% IF ( RENEW_ISSUE ) %]
331 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
333 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
336 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
337 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
339 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
341 [% IF ADDITIONAL_MATERIALS && !CAN_user_circulate_force_checkout %]
342 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
343 <input type="hidden" name="restoreduedatespec" />
345 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
347 <input type="hidden" name="barcode" value="[% barcode | html %]" />
348 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
349 <input type="hidden" name="issueconfirmed" value="1" />
350 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
351 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
352 <input type="hidden" name="branch" value="[% branch | html %]" />
354 [% IF ( RENEW_ISSUE ) %]
355 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
357 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
360 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
361 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
363 [% END # /IF ADDITIONAL_MATERIALS %]
365 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
366 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
367 <input type="hidden" name="restoreduedatespec" />
368 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
369 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
370 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
371 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
375 [% IF ( RECALLED ) %]
376 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
377 <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>
381 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
382 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
383 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
384 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
385 <input type="hidden" name="restoreduedatespec" />
386 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
387 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS or ADDITIONAL_MATERIALS %]
388 [% IF ( RENEW_ISSUE ) %]
389 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
391 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
394 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
398 [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
399 [% UNLESS noissues %]
400 <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>
403 </div> <!-- /#circ_needsconfirmation -->
404 [% END # /NEEDSCONFIRMATION %]
406 [% IF ( IMPOSSIBLE ) %]
407 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
408 [% IF ( UNKNOWN_BARCODE ) %]
409 <h3>Barcode not found</h3>
412 <!-- RESULT OF ISSUING REQUEST -->
414 [% IF ( DEBT_GUARANTORS ) %]
415 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
419 <li>Local use recorded</li>
422 [% IF ( INVALID_DATE ) %]
423 <li>The due date "[% INVALID_DATE | $KohaDates %]" is invalid</li>
426 [% IF ( UNKNOWN_BARCODE ) %]
427 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
429 [% IF ( FALLBACK ) %]
431 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
433 <div>No items were found by searching.</div>
437 [% IF ( fast_cataloging ) %]
438 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
439 <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>
446 [% IF ( NOT_FOR_LOAN ) %]
448 [% IF ( itemtype_notforloan ) %]
449 Item type not for loan.
450 [% ELSIF ( item_notforloan ) %]
451 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
452 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
457 [% IF ( WTHDRAWN ) %]
459 <span>Item has been withdrawn</span>
460 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
461 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
465 [% IF ( RESTRICTED ) %]
466 <li>Item is restricted</li>
470 <li>Patron's address is in doubt</li>
473 [% IF ( CARD_LOST ) %]
474 <li>Patron's card is lost</li>
477 [% IF ( DEBARRED ) %]
478 <li>Patron is restricted</li>
481 [% IF ( NO_MORE_RENEWALS ) %]
482 <li>No more renewals possible</li>
485 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
486 <li>This item can not be renewed, it's an on-site checkout</li>
489 [%IF ( AGE_RESTRICTION ) %]
490 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
494 <li>Patron's card is expired</li>
497 [% IF ( TOO_MANY ) %]
498 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
501 [% IF ( ITEMNOTSAMEBRANCH ) %]
502 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
505 [% IF RETURN_IMPOSSIBLE %]
506 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
509 [% IF ( USERBLOCKEDWITHENDDATE ) %]
510 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
513 [% IF ( USERBLOCKEDNOENDDATE ) %]
514 <li>Patron has an indefinite restriction.</li>
517 [% IF ( USERBLOCKEDOVERDUE ) %]
518 <li>Checkouts are BLOCKED because patron has overdue items.</li>
521 [% IF ( RECALLED_INTRANSIT ) %]
522 <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
525 [% IF NO_OPEN_DAYS %]
526 <li>No open days found while calculating the due date. Check the library calendar.</li>
530 [% IF (forceallow) %]
531 <li>Restriction overridden temporarily.</li>
534 </div> <!-- /#circ_impossible -->
536 [% IF ( FALLBACK ) %]
539 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
540 <div class="modal-dialog modal-wide" role="document">
541 <div class="modal-content">
542 <div class="modal-header">
543 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
544 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
546 <div class="modal-body">
547 <table class="table_borrowers">
554 <th>Inventory number</th>
555 <th>Serial enumeration</th>
557 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
562 [% FOREACH item IN options %]
565 <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>
566 [% IF item.onloan %]<span style="float: right; color: red; margin-left:5px;">Checked out</span>[% END %]
569 [% item.barcode | html %]
571 <td>[% item.itemcallnumber | html %]</th>
572 <td>[% item.copynumber | html %]</th>
573 <td>[% item.stocknumber| html %]</th>
574 <td>[% item.enumchron| html %]</th>
576 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
578 [% IF ( item_level_itypes ) %]
580 [% ItemTypes.GetDescription( item.itype ) | html %]
584 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
585 [% IF (forceallow) %]
586 <input type="hidden" name="forceallow" value="1">
588 <input type="hidden" name="restoreduedatespec" />
589 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
590 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
591 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
592 <input type="hidden" name="branch" value="[% branch | html %]" />
593 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
594 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
595 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
596 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
603 </div> <!-- /.modal-body -->
604 <div class="modal-footer">
605 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
607 </div> <!-- /.modal-content -->
608 </div> <!-- /.modal-dialog.modal-wide -->
609 </div> <!-- /#itemSearchFallback -->
610 [% END # /IF options %]
611 [% END # /IF FALLBACK %]
613 [% ELSE # IF IMPOSSIBLE %]
614 [% IF (forceallow) %]
615 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
617 [% END # /IF IMPOSSIBLE %]
619 <span class="audio-alert-success"></span>
622 <p>Item checked out</p>
626 [% INCLUDE 'patron-toolbar.inc' %]
627 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
630 <!-- BARCODE ENTRY -->
634 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
635 <div class="dialog alert">
636 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
641 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
642 <div class="col-sm-6">
643 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
644 <input type="hidden" name="restoreduedatespec" />
646 <fieldset id="circ_circulation_issue" class="lastchecked">
648 <fieldset id="circ_circulation_issue">
651 [% IF Koha.Preference('DisplayClearScreenButton') == 'issueslip' %]
652 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
653 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
654 [% ELSIF Koha.Preference('DisplayClearScreenButton') == 'issueqslip' %]
655 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
656 <span id="printclearscreenq"><a href="#" title="Print quick slip and clear screen"><i class="fa fa-print"></i></a></span>
659 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
661 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
663 [% IF NEEDSCONFIRMATION %]
664 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
666 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
667 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode or keyword" />
669 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode" />
673 <div id="show-circ-settings">
674 <a href="#" title="Checkout settings"><i class="fa-solid fa-sliders"></i></a>
677 <button type="submit" class="btn btn-primary">Check out</button>
679 <div class="circ-settings">
681 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
682 [% IF ( SpecifyDueDate ) %]
683 <div id="specify-due-date" class="circ-setting">
684 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
685 [% IF ( duedatespec ) %]
686 <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" />
688 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
690 <label for="stickyduedate"> Remember for session:</label>
691 [% IF ( stickyduedate ) %]
692 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
694 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
700 [% UNLESS ( noissues ) %]
701 [% IF Koha.Preference('AllowSetAutomaticRenewal') %]
702 <div id="set-automatic-renewal" class="circ-setting">
703 [% IF NEEDSCONFIRMATION %]
705 [% IF patron.autorenew_checkouts %]
706 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
707 title="Patron has opted out of auto-renewal"/>
709 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
712 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
715 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
716 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
717 [% ELSIF patron.autorenew_checkouts %]
718 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
720 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
721 title="Patron has opted out of auto-renewal"/>
725 <label for="auto_renew">Automatic renewal</label>
728 [% IF Koha.Preference('decreaseLoanHighHolds') %]
729 <div id="set_high_holds_overrride" class="circ-setting">
730 [% IF NEEDSCONFIRMATION %]
731 [% IF override_high_holds %]
732 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
734 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
737 [% IF override_high_holds %]
738 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
740 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
743 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
748 [% IF Koha.Preference('OnSiteCheckouts') %]
749 <div id="onsite_checkout-select" class="circ-setting">
751 <div class="onsite-checkout-only">
752 <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>
753 <input type="text" name="duedatespec" id="duedatespec" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
754 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
757 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
758 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
760 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
766 </div> <!-- /.circ-settings -->
768 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
769 <input type="hidden" name="branch" value="[% branch | html %]" />
770 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
772 <input type="hidden" name="charges" value="yes" />
774 </fieldset> <!-- /#circ_circulation_issue -->
777 <div class="lastchecked">
779 <strong>Checked out: </strong>
780 [% issue.item.biblio.title | html %] ([% issue.item.barcode | html %]).
782 [% IF issue.item.is_bundle %]
783 [% SET bundle_items_count = issue.item.bundle_items.count %]
784 [% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %].
787 Due on [% issue.date_due | $KohaDates as_due_date => 1 %]
791 </form> <!-- /#mainform -->
792 </div> <!-- /.col-sm-6 -->
794 [% END #/IF !noissues %]
796 [% IF ( noissues ) %]
797 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
798 <div class="col-sm-6">
803 <div class="col-sm-6">
806 [% IF ( noissues ) %]
807 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
808 <div id="circmessages" class="circmessage attention">
810 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
811 <div id="circmessages" class="circmessage warning">
815 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
816 <span class="circ-hlt">Only on-site checkouts are allowed</span>
820 <div id="circmessages" class="circmessage attention">
823 [% INCLUDE 'patron_messages.inc' %]
825 </div> <!-- /#circmessages -->
826 </div> <!-- /div or div.col-sm-6 -->
827 </div> <!-- /.row -->
829 [% INCLUDE 'patron-detail-tabs.inc' patronpage = "circ" %]
831 [% ELSIF borrowernumber # IF patron %]
832 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
833 [% END # /IF patron %]
835 </div> <!-- /.col-sm-10.col-sm-push-2 -->
837 [% IF Koha.Preference('CircSidebar') %]
838 [% IF not( borrowernumber and patron ) %]
839 <div class="col-sm-2 col-sm-pull-10">
841 [% INCLUDE 'circ-nav.inc' %]
843 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
847 [% IF borrowernumber and patron %]
848 <div class="col-sm-2 col-sm-pull-10">
850 [% INCLUDE 'circ-menu.inc' %]
852 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
855 </div> <!-- /.row -->
858 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
859 [% INCLUDE 'modals/resolve_return_claim.inc' %]
863 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
864 <div class="modal-dialog">
865 <div class="modal-content">
866 <div class="modal-header">
867 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
869 <div class="modal-body">
870 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
872 </div> <!-- /.modal-content -->
873 </div> <!-- /.modal-dialog -->
874 </div> <!-- /#barcodeSubmittedModal -->
876 [% MACRO jsinclude BLOCK %]
877 [% INCLUDE 'datatables.inc' %]
878 [% INCLUDE 'columns_settings.inc' %]
879 [% INCLUDE 'select2.inc' %]
880 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
881 [% PROCESS 'modal-claims.inc' %]
882 [% PROCESS 'modal-claims-js' %]
883 [% INCLUDE 'js-date-format.inc' %]
886 /* Set some variable needed in circulation.js */
887 const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') || 0 | html %];
888 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
889 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
890 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
891 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
892 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
893 var interface = "[% interface | html %]";
894 var theme = "[% theme | html %]";
895 var borrowernumber = "[% patron.borrowernumber | html %]";
896 var branchcode = "[% branch | html %]";
897 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
898 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
899 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
900 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
901 var script = "circulation";
902 var relatives_borrowernumbers = new Array();
903 [% FOREACH b IN relatives_borrowernumbers %]
904 relatives_borrowernumbers.push("[% b | html %]");
906 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
908 [% Asset.js("js/pages/circulation.js") | $raw %]
909 [% Asset.js("js/checkouts.js") | $raw %]
910 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
911 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
913 [% Asset.js("js/holds.js") | $raw %]
914 [% INCLUDE 'calendar.inc' %]
916 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
917 table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
918 table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
919 table_settings_holds_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'holds-table', 'json' ) | $raw %]
921 [% IF borrowernumber and patron %]
922 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
923 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
926 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
929 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
932 function toggle_onsite_checkout(){
933 if ( $("#onsite_checkout").prop('checked') ) {
934 const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
935 duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
939 function Dopop(link) {
940 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
942 $(document).ready(function() {
943 $('#mainform').on('submit',function() {
944 if ($("#barcode") && $("#barcode").val()) {
945 $('#barcode').on('keypress',function(event) {
946 $('#barcodeSubmittedModal').modal();
947 event.preventDefault(); }
952 // listen submit to trigger qslip on empty checkout
953 $('#mainform').bind('submit',function() {
954 if ($('#barcode').val() == '') {
955 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
956 window.location='/cgi-bin/koha/circ/circulation.pl';
959 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
963 toggle_onsite_checkout();
964 $("#onsite_checkout").click(function(){
965 toggle_onsite_checkout();
969 [% IF !override_high_holds %]
970 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
971 if ('[% duedatespec | html %]' === '') {
972 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
974 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
978 $("#override_high_holds_tmp").on( 'change', function() {
979 if ( this.checked ) {
980 $("input[name=duedatespec]:hidden").val('');
986 [% INCLUDE 'str/members-menu.inc' %]
987 [% Asset.js("js/members-menu.js") | $raw %]
988 [% Asset.js("js/recalls.js") | $raw %]
991 [% INCLUDE 'intranet-bottom.inc' %]