8 [% USE TablesSettings %]
11 [% USE AuthorisedValues %]
12 [% SET footerjs = 1 %]
13 [% INCLUDE 'doc-head-open.inc' %]
14 [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
15 [% SET destination = "circ" %]
18 Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] › [% END %]
20 Circulation › Koha
22 [% INCLUDE 'doc-head-close.inc' %]
25 <body id="circ_circulation" class="circ">
27 [% WRAPPER 'header.inc' %]
28 [% INCLUDE 'circ-search.inc' %]
31 [% WRAPPER 'sub-header.inc' %]
32 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
35 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
38 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
43 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a>
46 <a href="#" aria-current="page">
47 [% INCLUDE 'patron-title.inc' %]
52 <a href="#" aria-current="page">
61 <div class="main container-fluid">
64 <div class="col-sm-10 col-sm-push-2">
67 [% INCLUDE 'members-toolbar.inc' %]
72 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
73 [% IF ( was_renewed ) %]
74 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
78 <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>
81 [% IF ADDITIONAL_MATERIALS && !NEEDSCONFIRMATION %]
82 <div id="materials" class="dialog message">Note about the accompanying materials: [% ADDITIONAL_MATERIALS | html %]
86 [% IF ( alert.ITEM_LOST ) %]
87 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
90 [% IF ( alert.OTHER_CHARGES ) %]
91 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
94 [% IF alert.HIGHHOLDS %]
95 <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>
98 [% IF alert.RETURNED_FROM_ANOTHER %]
99 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
102 [% IF ( nopermission ) %]
103 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
106 [% IF ( NEEDSCONFIRMATION ) %]
107 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1">
108 [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]
109 <h3>Please confirm checkout</h3>
111 <h3>Cannot check out</h3>
115 [%IF ( AGE_RESTRICTION ) %]
117 Age restriction [% AGE_RESTRICTION | html %].
118 [% IF CAN_user_circulate_force_checkout %]
126 <li>The patron has a debt of [% DEBT | $Price %].</li>
129 [% IF ( DEBT_GUARANTEES ) %]
130 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
133 [% IF ( DEBT_GUARANTORS ) %]
134 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
137 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
138 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
141 [% IF ( RENEW_ISSUE ) %]
142 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
145 [% IF ( RESERVE_WAITING ) %]
146 <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>
149 [% IF ( TRANSFERRED ) %]
150 <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>
153 [% IF ( PROCESSING ) %]
154 <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>
157 [% IF ( RESERVED ) %]
158 <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>
161 [% IF ( ISSUED_TO_ANOTHER ) %]
162 <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 %]).
163 [% IF CAN_user_circulate_force_checkout %]
164 Check in and check out?
169 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
170 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
173 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
174 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
177 [% IF ( BORRNOTSAMEBRANCH ) %]
178 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
181 [% IF ( PATRON_CANT ) %]
182 <li>This patron can't check out this item per library circulation policy.</li>
185 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
186 <li>No circulation rule is defined for this patron and itemtype combination.</li>
189 [% IF ( NOT_FOR_LOAN_FORCING ) %]
191 [% IF ( itemtype_notforloan ) %]
192 <span>Item type is normally not for loan.</span>
193 [% ELSIF ( item_notforloan ) %]
194 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
195 <span>Item is normally not for loan</span>[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
197 [% IF CAN_user_circulate_force_checkout %]
198 <span>Check out anyway?</span>
203 [% IF ( USERBLOCKEDOVERDUE ) %]
204 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
205 [% IF CAN_user_circulate_force_checkout %]
211 [% IF ( ITEM_LOST ) %]
212 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
213 [% IF CAN_user_circulate_force_checkout %]
220 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
224 <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>
227 [% IF BIBLIO_ALREADY_ISSUED %]
229 Patron has already checked out another item from this record.
230 [% IF CAN_user_circulate_force_checkout %]
236 [% IF ADDITIONAL_MATERIALS %]
238 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
243 [% IF RECALLED.waiting %]
244 <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>
245 [% ELSIF RECALLED.requested or RECALLED.overdue %]
246 <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>
252 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
253 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
254 <input type="hidden" name="restoreduedatespec" />
256 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
259 <p class="circ-override-high-holds">
260 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
261 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
265 [% IF ( RESERVED ) %]
267 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
268 <label for="cancelreserve">Cancel hold</label>
272 [% IF ( RESERVE_WAITING ) %]
274 <label for="cancelreserve">Cancel hold</label>
275 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
276 <label for="revertreserve">Revert waiting status</label>
277 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
281 [% IF ( TRANSFERRED ) %]
283 <label for="cancelreserve">Cancel hold</label>
284 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
285 <label for="revertreserve">Revert hold transfer status</label>
286 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
290 [% IF ( PROCESSING ) %]
292 <label for="cancelreserve">Cancel hold</label>
293 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
294 <label for="revertreserve">Revert In Processing status</label>
295 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
299 [% IF ( RECALLED ) %]
301 <label for="cancelrecall">Cancel recall</label>
302 <input type="radio" value="cancel" name="cancel_recall" id="cancelrecall" />
303 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
305 [% IF RECALLED.waiting %]
307 <label for="revertrecall">Revert waiting status</label>
308 <input type="radio" value="revert" name="cancel_recall" id="revertrecall" checked="checked"/>
309 <input type="hidden" value="[% RECALLED.id | html %]" name="recall_id" />
314 <input type="hidden" name="barcode" value="[% barcode | html %]" />
315 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
316 <input type="hidden" name="issueconfirmed" value="1" />
317 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
319 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
321 [% IF ( INVALID_DATE ) %]
323 <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" />
324 <label for="duedatespec">Due date</label>
327 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
330 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
331 <input type="hidden" name="branch" value="[% branch | html %]" />
333 [% IF ( RENEW_ISSUE ) %]
334 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
336 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
339 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
340 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
342 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
344 [% IF ADDITIONAL_MATERIALS && !CAN_user_circulate_force_checkout %]
345 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
346 <input type="hidden" name="restoreduedatespec" />
348 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
350 <input type="hidden" name="barcode" value="[% barcode | html %]" />
351 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
352 <input type="hidden" name="issueconfirmed" value="1" />
353 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
354 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
355 <input type="hidden" name="branch" value="[% branch | html %]" />
357 [% IF ( RENEW_ISSUE ) %]
358 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
360 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
363 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
364 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
366 [% END # /IF ADDITIONAL_MATERIALS %]
368 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
369 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
370 <input type="hidden" name="restoreduedatespec" />
371 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
372 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
373 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
374 <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>
378 [% IF ( RECALLED ) %]
379 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
380 <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>
384 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
385 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
386 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
387 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
388 <input type="hidden" name="restoreduedatespec" />
389 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
390 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS or ADDITIONAL_MATERIALS %]
391 [% IF ( RENEW_ISSUE ) %]
392 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
394 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
397 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
401 [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
402 [% UNLESS noissues %]
403 <button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button>
406 </div> <!-- /#circ_needsconfirmation -->
407 [% END # /NEEDSCONFIRMATION %]
409 [% IF ( IMPOSSIBLE ) %]
410 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
411 [% IF ( UNKNOWN_BARCODE ) %]
412 <h3>Barcode not found</h3>
415 <!-- RESULT OF ISSUING REQUEST -->
417 [% IF ( DEBT_GUARANTORS ) %]
418 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
422 <li>Local use recorded</li>
425 [% IF ( INVALID_DATE ) %]
426 <li>The due date "[% INVALID_DATE | $KohaDates %]" is invalid</li>
429 [% IF ( UNKNOWN_BARCODE ) %]
430 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
432 [% IF ( FALLBACK ) %]
434 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
436 <div>No items were found by searching.</div>
440 [% IF ( fast_cataloging ) %]
441 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
442 <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>
449 [% IF ( NOT_FOR_LOAN ) %]
451 [% IF ( itemtype_notforloan ) %]
452 Item type not for loan.
453 [% ELSIF ( item_notforloan ) %]
454 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
455 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
460 [% IF ( WTHDRAWN ) %]
462 <span>Item has been withdrawn</span>
463 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
464 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
468 [% IF ( RESTRICTED ) %]
469 <li>Item is restricted</li>
473 <li>Patron's address is in doubt</li>
476 [% IF ( CARD_LOST ) %]
477 <li>Patron's card is lost</li>
480 [% IF ( DEBARRED ) %]
481 <li>Patron is restricted</li>
484 [% IF ( NO_MORE_RENEWALS ) %]
485 <li>No more renewals possible</li>
488 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
489 <li>This item can not be renewed, it's an on-site checkout</li>
492 [%IF ( AGE_RESTRICTION ) %]
493 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
497 <li>Patron's card is expired</li>
500 [% IF ( TOO_MANY ) %]
501 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
504 [% IF ( ITEMNOTSAMEBRANCH ) %]
505 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
508 [% IF RETURN_IMPOSSIBLE %]
509 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
512 [% IF ( USERBLOCKEDWITHENDDATE ) %]
513 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
516 [% IF ( USERBLOCKEDNOENDDATE ) %]
517 <li>Patron has an indefinite restriction.</li>
520 [% IF ( USERBLOCKEDOVERDUE ) %]
521 <li>Checkouts are BLOCKED because patron has overdue items.</li>
524 [% IF ( RECALLED_INTRANSIT ) %]
525 <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
529 [% IF (forceallow) %]
530 <li>Restriction overridden temporarily.</li>
533 </div> <!-- /#circ_impossible -->
535 [% IF ( FALLBACK ) %]
538 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
539 <div class="modal-dialog modal-wide" role="document">
540 <div class="modal-content">
541 <div class="modal-header">
542 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
543 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
545 <div class="modal-body">
546 <table class="table_borrowers">
553 <th>Inventory number</th>
554 <th>Serial enumeration</th>
556 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
561 [% FOREACH item IN options %]
564 <a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | html %]">[% item.biblio.title | html %] <i class="fa fa-window-restore"></i></a>
567 [% item.barcode | html %]
569 <td>[% item.itemcallnumber | html %]</th>
570 <td>[% item.copynumber | html %]</th>
571 <td>[% item.stocknumber| html %]</th>
572 <td>[% item.enumchron| html %]</th>
574 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
576 [% IF ( item_level_itypes ) %]
578 [% ItemTypes.GetDescription( item.itype ) | html %]
582 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
583 [% IF (forceallow) %]
584 <input type="hidden" name="forceallow" value="1">
586 <input type="hidden" name="restoreduedatespec" />
587 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
588 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
589 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
590 <input type="hidden" name="branch" value="[% branch | html %]" />
591 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
592 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
593 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
594 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
601 </div> <!-- /.modal-body -->
602 <div class="modal-footer">
603 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
605 </div> <!-- /.modal-content -->
606 </div> <!-- /.modal-dialog.modal-wide -->
607 </div> <!-- /#itemSearchFallback -->
608 [% END # /IF options %]
609 [% END # /IF FALLBACK %]
611 [% ELSE # IF IMPOSSIBLE %]
612 [% IF (forceallow) %]
613 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
615 [% END # /IF IMPOSSIBLE %]
617 <span class="audio-alert-success"></span>
620 <p>Item checked out</p>
624 [% INCLUDE 'patron-toolbar.inc' %]
625 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
628 <!-- BARCODE ENTRY -->
632 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
633 <div class="dialog alert">
634 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
639 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
640 <div class="col-sm-6">
641 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
642 <input type="hidden" name="restoreduedatespec" />
644 <fieldset id="circ_circulation_issue" class="lastchecked">
646 <fieldset id="circ_circulation_issue">
649 [% IF Koha.Preference('DisplayClearScreenButton') == 'issueslip' %]
650 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
651 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
652 [% ELSIF Koha.Preference('DisplayClearScreenButton') == 'issueqslip' %]
653 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
654 <span id="printclearscreenq"><a href="#" title="Print quick slip and clear screen"><i class="fa fa-print"></i></a></span>
657 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
659 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
661 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
662 <div class="hint">Enter item barcode or keyword:</div>
664 <div class="hint">Enter item barcode:</div>
667 [% IF NEEDSCONFIRMATION %]
668 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
670 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
673 <button type="submit" class="btn btn-default">Check out</button>
675 <div id="show-circ-settings">
676 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
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">
778 <p><strong>Checked out: </strong>[% issue.item.biblio.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates as_due_date => 1 %]</p>
781 </form> <!-- /#mainform -->
782 </div> <!-- /.col-sm-6 -->
784 [% END #/IF !noissues %]
786 [% IF ( noissues ) %]
787 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
788 <div class="col-sm-6">
793 <div class="col-sm-6">
796 [% IF ( noissues ) %]
797 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
798 <div id="circmessages" class="circmessage attention">
800 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
801 <div id="circmessages" class="circmessage warning">
805 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
806 <span class="circ-hlt">Only on-site checkouts are allowed</span>
810 <div id="circmessages" class="circmessage attention">
813 [% INCLUDE 'patron_messages.inc' %]
815 </div> <!-- /#circmessages -->
816 </div> <!-- /div or div.col-sm-6 -->
817 </div> <!-- /.row -->
819 <div id="patronlists" class="toptabs">
822 <a href="#checkouts">Checkouts ([% issuecount || 0 | html %])</a>
825 [% IF relatives_issues_count %]
827 <a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts ([% relatives_issues_count | html %])</a>
832 <a href="#reserves" id="holds-tab">Holds ([% holds_count || 0 | html %])</a>
835 [% IF Koha.Preference('UseRecalls') %]
837 <a href="#recalls" id="recalls-tab">Recalls ([% recalls.count || 0 | html %])</a>
841 [% IF Koha.Preference('ArticleRequests') %]
842 [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
844 <a href="#article-requests" id="article-requests-tab">Article requests ([% current_article_requests.count || 0 | html %])</a>
848 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
850 [% IF ( patron.return_claims.count ) %]
851 <a href="#return-claims" id="return-claims-tab">
853 ([% IF patron.return_claims.resolved.count == 0 %]
854 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
856 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
858 [% IF patron.return_claims.unresolved.count == 0 %]
859 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
861 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
865 <a href="#return-claims" id="return-claims-tab">
867 (<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
868 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>)
875 <a id="debarments-tab-link" href="#reldebarments">Restrictions ([% debarments.size || 0 | html %])</a>
878 [% SET enrollments = patron.get_club_enrollments %]
879 [% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC -->
880 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
882 <a id="clubs-tab-link" href="#clubs-tab">
883 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
889 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
891 [% INCLUDE "checkouts-table.inc" %]
893 [% INCLUDE "relatives-issues-table.inc" %]
895 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
898 </div> <!-- /#clubs-tab -->
901 [% INCLUDE borrower_debarments.inc %]
904 [% IF ( holds_count ) %]
905 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
906 <input type="hidden" name="from" value="circ" />
907 <table id="holds-table" style="width: 100% !Important;">
925 <fieldset class="action">
926 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
928 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
929 [% IF hold_cancellation.count %]
930 <select name="cancellation-reason">
931 <option value="">No reason given</option>
932 [% FOREACH reason IN hold_cancellation %]
933 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
940 [% IF Koha.Preference('SuspendHoldsIntranet') %]
941 <fieldset class="action">
942 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
943 <input type="hidden" name="from" value="circ" />
944 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
945 <input type="submit" value="Suspend all holds" />
947 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
948 <label for="suspend_until">until</label>
949 <input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true" />
950 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
955 <fieldset class="action">
956 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
957 <input type="hidden" name="from" value="circ" />
958 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
959 <input type="hidden" name="suspend" value="0" />
960 <input type="submit" value="Resume all suspended holds" />
963 [% END # /IF SuspendHoldsIntranet %]
965 [% ELSE # IF holds_count %]
966 <p>Patron has nothing on hold.</p>
967 [% END # /IF holds_count %]
968 </div> <!-- /#reserves -->
970 [% IF Koha.Preference('UseRecalls') %]
972 [% INCLUDE 'recalls.inc' %]
976 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
977 [% INCLUDE 'patron-return-claims.inc' %]
980 [% IF Koha.Preference('ArticleRequests') %]
981 [% INCLUDE 'patron-article-requests.inc' %]
984 </div> <!-- /#patronlists -->
985 [% ELSIF borrowernumber # IF patron %]
986 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
987 [% END # /IF patron %]
989 </div> <!-- /.col-sm-10.col-sm-push-2 -->
991 [% IF Koha.Preference('CircSidebar') %]
992 [% IF not( borrowernumber and patron ) %]
993 <div class="col-sm-2 col-sm-pull-10">
995 [% INCLUDE 'circ-nav.inc' %]
997 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1001 [% IF borrowernumber and patron %]
1002 <div class="col-sm-2 col-sm-pull-10">
1004 [% INCLUDE 'circ-menu.inc' %]
1006 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
1009 </div> <!-- /.row -->
1012 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
1013 [% INCLUDE 'modals/resolve_return_claim.inc' %]
1017 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1018 <div class="modal-dialog">
1019 <div class="modal-content">
1020 <div class="modal-header">
1021 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1023 <div class="modal-body">
1024 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1026 </div> <!-- /.modal-content -->
1027 </div> <!-- /.modal-dialog -->
1028 </div> <!-- /#barcodeSubmittedModal -->
1030 [% MACRO jsinclude BLOCK %]
1031 [% INCLUDE 'datatables.inc' %]
1032 [% INCLUDE 'columns_settings.inc' %]
1033 [% INCLUDE 'select2.inc' %]
1034 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
1035 [% PROCESS 'modal-claims.inc' %]
1036 [% PROCESS 'modal-claims-js' %]
1039 /* Set some variable needed in circulation.js */
1040 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1041 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1042 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1043 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
1044 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
1045 var interface = "[% interface | html %]";
1046 var theme = "[% theme | html %]";
1047 var borrowernumber = "[% patron.borrowernumber | html %]";
1048 var branchcode = "[% branch | html %]";
1049 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1050 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1051 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1052 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1053 var script = "circulation";
1054 var relatives_borrowernumbers = new Array();
1055 [% FOREACH b IN relatives_borrowernumbers %]
1056 relatives_borrowernumbers.push("[% b | html %]");
1058 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1060 [% Asset.js("js/pages/circulation.js") | $raw %]
1061 [% Asset.js("js/checkouts.js") | $raw %]
1062 [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %]
1063 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1065 [% Asset.js("js/holds.js") | $raw %]
1066 [% INCLUDE 'calendar.inc' %]
1068 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1069 table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'relatives-issues-table', 'json' ) | $raw %]
1070 table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1072 [% IF borrowernumber and patron %]
1073 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1074 Cookies.remove("holdfor", { path: '/' });
1077 Cookies.remove("holdfor", { path: '/' });
1080 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
1083 function toggle_onsite_checkout(){
1084 if ( $("#onsite_checkout").prop('checked') ) {
1085 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1089 function Dopop(link) {
1090 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1092 $(document).ready(function() {
1093 $('#mainform').on('submit',function() {
1094 if ($("#barcode") && $("#barcode").val()) {
1095 $('#barcode').on('keypress',function(event) {
1096 $('#barcodeSubmittedModal').modal();
1097 event.preventDefault(); }
1102 if ( $('#clubs-tab').length ) {
1103 $('#clubs-tab-link').on('click', function() {
1104 $('#clubs-tab').text(_("Loading..."));
1105 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1109 // listen submit to trigger qslip on empty checkout
1110 $('#mainform').bind('submit',function() {
1111 if ($('#barcode').val() == '') {
1112 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
1113 window.location='/cgi-bin/koha/circ/circulation.pl';
1116 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1120 toggle_onsite_checkout();
1121 $("#onsite_checkout").click(function(){
1122 toggle_onsite_checkout();
1126 [% IF !override_high_holds %]
1127 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1128 if ('[% duedatespec | html %]' === '') {
1129 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1131 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1135 $("#override_high_holds_tmp").on( 'change', function() {
1136 if ( this.checked ) {
1137 $("input[name=duedatespec]:hidden").val('');
1143 [% INCLUDE 'str/members-menu.inc' %]
1144 [% Asset.js("js/members-menu.js") | $raw %]
1145 [% Asset.js("js/recalls.js") | $raw %]
1148 [% INCLUDE 'intranet-bottom.inc' %]