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>
99 [% IF ( NEEDSCONFIRMATION ) %]
100 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1">
101 [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]
102 <h3>Please confirm checkout</h3>
104 <h3>Cannot check out</h3>
108 [%IF ( AGE_RESTRICTION ) %]
110 Age restriction [% AGE_RESTRICTION | html %].
111 [% IF CAN_user_circulate_force_checkout %]
119 <li>The patron has a debt of [% DEBT | $Price %].</li>
122 [% IF ( DEBT_GUARANTEES ) %]
123 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
126 [% IF ( DEBT_GUARANTORS ) %]
127 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
130 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
131 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
134 [% IF ( RENEW_ISSUE ) %]
135 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
138 [% IF ( RESERVE_WAITING ) %]
139 <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>
142 [% IF ( TRANSFERRED ) %]
143 <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>
146 [% IF ( PROCESSING ) %]
147 <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>
150 [% IF ( RESERVED ) %]
151 <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>
154 [% IF ( ISSUED_TO_ANOTHER ) %]
155 <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 %]).
156 [% IF CAN_user_circulate_force_checkout %]
157 Check in and check out?
162 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
163 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
166 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
167 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
170 [% IF ( BORRNOTSAMEBRANCH ) %]
171 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
174 [% IF ( PATRON_CANT ) %]
175 <li>This patron can't check out this item per library circulation policy.</li>
178 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
179 <li>No circulation rule is defined for this patron and itemtype combination.</li>
182 [% IF ( NOT_FOR_LOAN_FORCING ) %]
184 [% IF ( itemtype_notforloan ) %]
185 <span>Item type is normally not for loan.</span>
186 [% ELSIF ( item_notforloan ) %]
187 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
188 <span>Item is normally not for loan</span>[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
190 [% IF CAN_user_circulate_force_checkout %]
191 <span>Check out anyway?</span>
196 [% IF ( USERBLOCKEDOVERDUE ) %]
197 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
198 [% IF CAN_user_circulate_force_checkout %]
204 [% IF ( ITEM_LOST ) %]
205 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
206 [% IF CAN_user_circulate_force_checkout %]
213 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
217 <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>
220 [% IF BIBLIO_ALREADY_ISSUED %]
222 Patron has already checked out another item from this record.
223 [% IF CAN_user_circulate_force_checkout %]
229 [% IF ADDITIONAL_MATERIALS %]
231 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
236 [% IF RECALLED.waiting %]
237 <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>
238 [% ELSIF RECALLED.requested or RECALLED.overdue %]
239 <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>
245 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
246 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
247 <input type="hidden" name="restoreduedatespec" />
249 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
252 <p class="circ-override-high-holds">
253 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
254 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
258 [% IF ( RESERVED ) %]
260 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
261 <label for="cancelreserve">Cancel hold</label>
265 [% IF ( RESERVE_WAITING ) %]
267 <label for="cancelreserve">Cancel hold</label>
268 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
269 <label for="revertreserve">Revert waiting status</label>
270 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
274 [% IF ( TRANSFERRED ) %]
276 <label for="cancelreserve">Cancel hold</label>
277 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
278 <label for="revertreserve">Revert hold transfer status</label>
279 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
283 [% IF ( PROCESSING ) %]
285 <label for="cancelreserve">Cancel hold</label>
286 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
287 <label for="revertreserve">Revert In Processing status</label>
288 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
292 [% IF ( RECALLED ) %]
294 <label for="cancelrecall">Cancel recall</label>
295 <input type="radio" value="cancel" name="cancel_recall" id="cancelrecall" />
296 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
298 [% IF RECALLED.waiting %]
300 <label for="revertrecall">Revert waiting status</label>
301 <input type="radio" value="revert" name="cancel_recall" id="revertrecall" checked="checked"/>
302 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
307 <input type="hidden" name="barcode" value="[% barcode | html %]" />
308 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
309 <input type="hidden" name="issueconfirmed" value="1" />
310 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
312 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
314 [% IF ( INVALID_DATE ) %]
316 <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" />
317 <label for="duedatespec">Due date</label>
320 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
323 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
324 <input type="hidden" name="branch" value="[% branch | html %]" />
326 [% IF ( RENEW_ISSUE ) %]
327 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
329 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
332 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
333 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
335 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
337 [% IF ADDITIONAL_MATERIALS && !CAN_user_circulate_force_checkout %]
338 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
339 <input type="hidden" name="restoreduedatespec" />
341 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
343 <input type="hidden" name="barcode" value="[% barcode | html %]" />
344 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
345 <input type="hidden" name="issueconfirmed" value="1" />
346 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
347 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
348 <input type="hidden" name="branch" value="[% branch | html %]" />
350 [% IF ( RENEW_ISSUE ) %]
351 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
353 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
356 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
357 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
359 [% END # /IF ADDITIONAL_MATERIALS %]
361 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
362 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
363 <input type="hidden" name="restoreduedatespec" />
364 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
365 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
366 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
367 <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>
371 [% IF ( RECALLED ) %]
372 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
373 <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>
377 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
378 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
379 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
380 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
381 <input type="hidden" name="restoreduedatespec" />
382 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
383 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS or ADDITIONAL_MATERIALS %]
384 [% IF ( RENEW_ISSUE ) %]
385 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
387 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
390 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
394 [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
395 [% UNLESS noissues %]
396 <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>
399 </div> <!-- /#circ_needsconfirmation -->
400 [% END # /NEEDSCONFIRMATION %]
402 [% IF ( IMPOSSIBLE ) %]
403 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
404 [% IF ( UNKNOWN_BARCODE ) %]
405 <h3>Barcode not found</h3>
408 <!-- RESULT OF ISSUING REQUEST -->
410 [% IF ( DEBT_GUARANTORS ) %]
411 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
415 <li>Local use recorded</li>
418 [% IF ( INVALID_DATE ) %]
419 <li>The due date "[% INVALID_DATE | $KohaDates %]" is invalid</li>
422 [% IF ( UNKNOWN_BARCODE ) %]
423 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
425 [% IF ( FALLBACK ) %]
427 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
429 <div>No items were found by searching.</div>
433 [% IF ( fast_cataloging ) %]
434 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
435 <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>
442 [% IF ( NOT_FOR_LOAN ) %]
444 [% IF ( itemtype_notforloan ) %]
445 Item type not for loan.
446 [% ELSIF ( item_notforloan ) %]
447 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
448 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
453 [% IF ( WTHDRAWN ) %]
455 <span>Item has been withdrawn</span>
456 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
457 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
461 [% IF ( RESTRICTED ) %]
462 <li>Item is restricted</li>
466 <li>Patron's address is in doubt</li>
469 [% IF ( CARD_LOST ) %]
470 <li>Patron's card is lost</li>
473 [% IF ( DEBARRED ) %]
474 <li>Patron is restricted</li>
477 [% IF ( NO_MORE_RENEWALS ) %]
478 <li>No more renewals possible</li>
481 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
482 <li>This item can not be renewed, it's an on-site checkout</li>
485 [%IF ( AGE_RESTRICTION ) %]
486 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
490 <li>Patron's card is expired</li>
493 [% IF ( TOO_MANY ) %]
494 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
497 [% IF ( ITEMNOTSAMEBRANCH ) %]
498 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
501 [% IF RETURN_IMPOSSIBLE %]
502 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
505 [% IF ( USERBLOCKEDWITHENDDATE ) %]
506 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
509 [% IF ( USERBLOCKEDNOENDDATE ) %]
510 <li>Patron has an indefinite restriction.</li>
513 [% IF ( USERBLOCKEDOVERDUE ) %]
514 <li>Checkouts are BLOCKED because patron has overdue items.</li>
517 [% IF ( RECALLED_INTRANSIT ) %]
518 <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
521 [% IF NO_OPEN_DAYS %]
522 <li>No open days found while calculating the due date. Check the library calendar.</li>
526 [% IF (forceallow) %]
527 <li>Restriction overridden temporarily.</li>
530 </div> <!-- /#circ_impossible -->
532 [% IF ( FALLBACK ) %]
535 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
536 <div class="modal-dialog modal-wide" role="document">
537 <div class="modal-content">
538 <div class="modal-header">
539 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
540 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
542 <div class="modal-body">
543 <table class="table_borrowers">
550 <th>Inventory number</th>
551 <th>Serial enumeration</th>
553 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
558 [% FOREACH item IN options %]
561 <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>
562 [% IF item.onloan %]<span style="float: right; color: red; margin-left:5px;">Checked out</span>[% END %]
565 [% item.barcode | html %]
567 <td>[% item.itemcallnumber | html %]</th>
568 <td>[% item.copynumber | html %]</th>
569 <td>[% item.stocknumber| html %]</th>
570 <td>[% item.enumchron| html %]</th>
572 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
574 [% IF ( item_level_itypes ) %]
576 [% ItemTypes.GetDescription( item.itype ) | html %]
580 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
581 [% IF (forceallow) %]
582 <input type="hidden" name="forceallow" value="1">
584 <input type="hidden" name="restoreduedatespec" />
585 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
586 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
587 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
588 <input type="hidden" name="branch" value="[% branch | html %]" />
589 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
590 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
591 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
592 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
599 </div> <!-- /.modal-body -->
600 <div class="modal-footer">
601 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
603 </div> <!-- /.modal-content -->
604 </div> <!-- /.modal-dialog.modal-wide -->
605 </div> <!-- /#itemSearchFallback -->
606 [% END # /IF options %]
607 [% END # /IF FALLBACK %]
609 [% ELSE # IF IMPOSSIBLE %]
610 [% IF (forceallow) %]
611 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
613 [% END # /IF IMPOSSIBLE %]
615 <span class="audio-alert-success"></span>
618 <p>Item checked out</p>
622 [% INCLUDE 'patron-toolbar.inc' %]
623 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
626 <!-- BARCODE ENTRY -->
630 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
631 <div class="dialog alert">
632 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
637 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
638 <div class="col-sm-6">
639 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
640 <input type="hidden" name="restoreduedatespec" />
642 <fieldset id="circ_circulation_issue" class="lastchecked">
644 <fieldset id="circ_circulation_issue">
647 [% IF Koha.Preference('DisplayClearScreenButton') == 'issueslip' %]
648 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
649 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
650 [% ELSIF Koha.Preference('DisplayClearScreenButton') == 'issueqslip' %]
651 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
652 <span id="printclearscreenq"><a href="#" title="Print quick slip and clear screen"><i class="fa fa-print"></i></a></span>
655 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
657 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
659 [% IF NEEDSCONFIRMATION %]
660 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
662 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
663 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode or keyword" />
665 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" placeholder="Enter item barcode" />
669 <div id="show-circ-settings">
670 <a href="#" title="Checkout settings"><i class="fa-solid fa-sliders"></i></a>
673 <button type="submit" class="btn btn-primary">Check out</button>
675 <div class="circ-settings">
677 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
678 [% IF ( SpecifyDueDate ) %]
679 <div id="specify-due-date" class="circ-setting">
680 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
681 [% IF ( duedatespec ) %]
682 <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" />
684 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
686 <label for="stickyduedate"> Remember for session:</label>
687 [% IF ( stickyduedate ) %]
688 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
690 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
696 [% UNLESS ( noissues ) %]
697 [% IF Koha.Preference('AllowSetAutomaticRenewal') %]
698 <div id="set-automatic-renewal" class="circ-setting">
699 [% IF NEEDSCONFIRMATION %]
701 [% IF patron.autorenew_checkouts %]
702 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
703 title="Patron has opted out of auto-renewal"/>
705 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
708 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
711 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
712 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
713 [% ELSIF patron.autorenew_checkouts %]
714 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
716 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
717 title="Patron has opted out of auto-renewal"/>
721 <label for="auto_renew">Automatic renewal</label>
724 [% IF Koha.Preference('decreaseLoanHighHolds') %]
725 <div id="set_high_holds_overrride" class="circ-setting">
726 [% IF NEEDSCONFIRMATION %]
727 [% IF override_high_holds %]
728 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
730 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
733 [% IF override_high_holds %]
734 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
736 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
739 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
744 [% IF Koha.Preference('OnSiteCheckouts') %]
745 <div id="onsite_checkout-select" class="circ-setting">
747 <div class="onsite-checkout-only">
748 <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>
749 <input type="text" name="duedatespec" id="duedatespec" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
750 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
753 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
754 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
756 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
762 </div> <!-- /.circ-settings -->
764 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
765 <input type="hidden" name="branch" value="[% branch | html %]" />
766 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
768 <input type="hidden" name="charges" value="yes" />
770 </fieldset> <!-- /#circ_circulation_issue -->
773 <div class="lastchecked">
775 <strong>Checked out: </strong>
776 [% issue.item.biblio.title | html %] ([% issue.item.barcode | html %]).
778 [% IF issue.item.is_bundle %]
779 [% SET bundle_items_count = issue.item.bundle_items.count %]
780 [% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %].
783 Due on [% issue.date_due | $KohaDates as_due_date => 1 %]
787 </form> <!-- /#mainform -->
788 </div> <!-- /.col-sm-6 -->
790 [% END #/IF !noissues %]
792 [% IF ( noissues ) %]
793 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
794 <div class="col-sm-6">
799 <div class="col-sm-6">
802 [% IF ( noissues ) %]
803 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
804 <div id="circmessages" class="circmessage attention">
806 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
807 <div id="circmessages" class="circmessage warning">
811 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
812 <span class="circ-hlt">Only on-site checkouts are allowed</span>
816 <div id="circmessages" class="circmessage attention">
819 [% INCLUDE 'patron_messages.inc' %]
821 </div> <!-- /#circmessages -->
822 </div> <!-- /div or div.col-sm-6 -->
823 </div> <!-- /.row -->
825 [% INCLUDE 'patron-detail-tabs.inc' patronpage = "circ" %]
827 [% ELSIF borrowernumber # IF patron %]
828 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
829 [% END # /IF patron %]
831 </div> <!-- /.col-sm-10.col-sm-push-2 -->
833 [% IF Koha.Preference('CircSidebar') %]
834 [% IF not( borrowernumber and patron ) %]
835 <div class="col-sm-2 col-sm-pull-10">
837 [% INCLUDE 'circ-nav.inc' %]
839 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
843 [% IF borrowernumber and patron %]
844 <div class="col-sm-2 col-sm-pull-10">
846 [% INCLUDE 'circ-menu.inc' %]
848 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
851 </div> <!-- /.row -->
854 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
855 [% INCLUDE 'modals/resolve_return_claim.inc' %]
859 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
860 <div class="modal-dialog">
861 <div class="modal-content">
862 <div class="modal-header">
863 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
865 <div class="modal-body">
866 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
868 </div> <!-- /.modal-content -->
869 </div> <!-- /.modal-dialog -->
870 </div> <!-- /#barcodeSubmittedModal -->
872 [% MACRO jsinclude BLOCK %]
873 [% INCLUDE 'datatables.inc' %]
874 [% INCLUDE 'columns_settings.inc' %]
875 [% INCLUDE 'select2.inc' %]
876 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
877 [% PROCESS 'modal-claims.inc' %]
878 [% PROCESS 'modal-claims-js' %]
879 [% INCLUDE 'js-date-format.inc' %]
882 /* Set some variable needed in circulation.js */
883 const LoadCheckoutsTableDelay = [% Koha.Preference('LoadCheckoutsTableDelay') || 0 | html %];
884 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
885 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
886 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
887 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
888 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
889 var interface = "[% interface | html %]";
890 var theme = "[% theme | html %]";
891 var borrowernumber = "[% patron.borrowernumber | html %]";
892 var branchcode = "[% branch | html %]";
893 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
894 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
895 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
896 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
897 var script = "circulation";
898 var relatives_borrowernumbers = new Array();
899 [% FOREACH b IN relatives_borrowernumbers %]
900 relatives_borrowernumbers.push("[% b | html %]");
902 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
904 [% Asset.js("js/pages/circulation.js") | $raw %]
905 [% Asset.js("js/checkouts.js") | $raw %]
906 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
907 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
909 [% Asset.js("js/holds.js") | $raw %]
910 [% INCLUDE 'calendar.inc' %]
912 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
913 table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
914 table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
916 [% IF borrowernumber and patron %]
917 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
918 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
921 Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
924 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
927 function toggle_onsite_checkout(){
928 if ( $("#onsite_checkout").prop('checked') ) {
929 const duedatespec_fp = document.querySelector("#duedatespec")._flatpickr;
930 duedatespec_fp.setDate("[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]");
934 function Dopop(link) {
935 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
937 $(document).ready(function() {
938 $('#mainform').on('submit',function() {
939 if ($("#barcode") && $("#barcode").val()) {
940 $('#barcode').on('keypress',function(event) {
941 $('#barcodeSubmittedModal').modal();
942 event.preventDefault(); }
947 // listen submit to trigger qslip on empty checkout
948 $('#mainform').bind('submit',function() {
949 if ($('#barcode').val() == '') {
950 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
951 window.location='/cgi-bin/koha/circ/circulation.pl';
954 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
958 toggle_onsite_checkout();
959 $("#onsite_checkout").click(function(){
960 toggle_onsite_checkout();
964 [% IF !override_high_holds %]
965 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
966 if ('[% duedatespec | html %]' === '') {
967 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
969 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
973 $("#override_high_holds_tmp").on( 'change', function() {
974 if ( this.checked ) {
975 $("input[name=duedatespec]:hidden").val('');
981 [% INCLUDE 'str/members-menu.inc' %]
982 [% Asset.js("js/members-menu.js") | $raw %]
983 [% Asset.js("js/recalls.js") | $raw %]
986 [% INCLUDE 'intranet-bottom.inc' %]