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 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'circ-search.inc' %]
30 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
33 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
36 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
41 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a>
44 <a href="#" aria-current="page">
45 [% INCLUDE 'patron-title.inc' %]
50 <a href="#" aria-current="page">
58 <div class="main container-fluid">
61 <div class="col-sm-10 col-sm-push-2">
64 [% INCLUDE 'members-toolbar.inc' %]
69 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
70 [% IF ( was_renewed ) %]
71 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
75 <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>
78 [% IF ADDITIONAL_MATERIALS && !NEEDSCONFIRMATION %]
79 <div id="materials" class="dialog message">Note about the accompanying materials: [% ADDITIONAL_MATERIALS | html %]
83 [% IF ( alert.ITEM_LOST ) %]
84 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
87 [% IF ( alert.OTHER_CHARGES ) %]
88 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
91 [% IF alert.HIGHHOLDS %]
92 <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>
95 [% IF alert.RETURNED_FROM_ANOTHER %]
96 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
99 [% IF ( nopermission ) %]
100 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</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 Item type is normally not for loan.
190 [% ELSIF ( item_notforloan ) %]
191 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
192 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
194 [% IF CAN_user_circulate_force_checkout %]
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 | $KohaDates with_hours => 1 %]" />
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 ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
342 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
343 <input type="hidden" name="restoreduedatespec" />
344 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
345 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
346 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
347 <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>
351 [% IF ( RECALLED ) %]
352 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
353 <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>
357 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
358 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
359 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
360 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
361 <input type="hidden" name="restoreduedatespec" />
362 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
363 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
364 [% IF ( RENEW_ISSUE ) %]
365 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
367 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
370 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
374 [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
375 [% UNLESS noissues %]
376 <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>
379 </div> <!-- /#circ_needsconfirmation -->
380 [% END # /NEEDSCONFIRMATION %]
382 [% IF ( IMPOSSIBLE ) %]
383 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
384 [% IF ( UNKNOWN_BARCODE ) %]
385 <h3>Barcode not found</h3>
388 <!-- RESULT OF ISSUING REQUEST -->
390 [% IF ( DEBT_GUARANTORS ) %]
391 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
395 <li>Local use recorded</li>
398 [% IF ( INVALID_DATE ) %]
399 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
402 [% IF ( UNKNOWN_BARCODE ) %]
403 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
405 [% IF ( FALLBACK ) %]
407 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
409 <div>No items were found by searching.</div>
413 [% IF ( fast_cataloging ) %]
414 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
415 <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>
422 [% IF ( NOT_FOR_LOAN ) %]
424 [% IF ( itemtype_notforloan ) %]
425 Item type not for loan.
426 [% ELSIF ( item_notforloan ) %]
427 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
428 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
433 [% IF ( WTHDRAWN ) %]
435 <span>Item has been withdrawn</span>
436 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
437 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
441 [% IF ( RESTRICTED ) %]
442 <li>Item is restricted</li>
446 <li>Patron's address is in doubt</li>
449 [% IF ( CARD_LOST ) %]
450 <li>Patron's card is lost</li>
453 [% IF ( DEBARRED ) %]
454 <li>Patron is restricted</li>
457 [% IF ( NO_MORE_RENEWALS ) %]
458 <li>No more renewals possible</li>
461 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
462 <li>This item can not be renewed, it's an on-site checkout</li>
465 [%IF ( AGE_RESTRICTION ) %]
466 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
470 <li>Patron's card is expired</li>
473 [% IF ( TOO_MANY ) %]
474 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
477 [% IF ( ITEMNOTSAMEBRANCH ) %]
478 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
481 [% IF RETURN_IMPOSSIBLE %]
482 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
485 [% IF ( USERBLOCKEDWITHENDDATE ) %]
486 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
489 [% IF ( USERBLOCKEDNOENDDATE ) %]
490 <li>Patron has an indefinite restriction.</li>
493 [% IF ( USERBLOCKEDOVERDUE ) %]
494 <li>Checkouts are BLOCKED because patron has overdue items.</li>
497 [% IF ( RECALLED_INTRANSIT ) %]
498 <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
502 [% IF (forceallow) %]
503 <li>Restriction overridden temporarily.</li>
506 </div> <!-- /#circ_impossible -->
508 [% IF ( FALLBACK ) %]
511 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
512 <div class="modal-dialog modal-wide" role="document">
513 <div class="modal-content">
514 <div class="modal-header">
515 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
516 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
518 <div class="modal-body">
519 <table class="table_borrowers">
526 <th>Inventory number</th>
527 <th>Serial enumeration</th>
529 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
534 [% FOREACH item IN options %]
537 <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>
540 [% item.barcode | html %]
542 <td>[% item.itemcallnumber | html %]</th>
543 <td>[% item.copynumber | html %]</th>
544 <td>[% item.stocknumber| html %]</th>
545 <td>[% item.enumchron| html %]</th>
547 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
549 [% IF ( item_level_itypes ) %]
551 [% ItemTypes.GetDescription( item.itype ) | html %]
555 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
556 [% IF (forceallow) %]
557 <input type="hidden" name="forceallow" value="1">
559 <input type="hidden" name="restoreduedatespec" />
560 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
561 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
562 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
563 <input type="hidden" name="branch" value="[% branch | html %]" />
564 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
565 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
566 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
567 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
574 </div> <!-- /.modal-body -->
575 <div class="modal-footer">
576 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
578 </div> <!-- /.modal-content -->
579 </div> <!-- /.modal-dialog.modal-wide -->
580 </div> <!-- /#itemSearchFallback -->
581 [% END # /IF options %]
582 [% END # /IF FALLBACK %]
584 [% ELSE # IF IMPOSSIBLE %]
585 [% IF (forceallow) %]
586 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
588 [% END # /IF IMPOSSIBLE %]
590 <span class="audio-alert-success"></span>
593 <p>Item checked out</p>
597 [% INCLUDE 'patron-toolbar.inc' %]
598 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
601 <!-- BARCODE ENTRY -->
605 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
606 <div class="dialog alert">
607 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
612 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
613 <div class="col-sm-6">
614 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
615 <input type="hidden" name="restoreduedatespec" />
617 <fieldset id="circ_circulation_issue" class="lastchecked">
619 <fieldset id="circ_circulation_issue">
622 [% IF ( DisplayClearScreenButton ) %]
623 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
624 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
627 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
629 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
631 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
632 <div class="hint">Enter item barcode or keyword:</div>
634 <div class="hint">Enter item barcode:</div>
637 [% IF NEEDSCONFIRMATION %]
638 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
640 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
643 <button type="submit" class="btn btn-default">Check out</button>
645 <div id="show-circ-settings">
646 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
649 <div class="circ-settings">
651 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
652 [% IF ( SpecifyDueDate ) %]
653 <div id="specify-due-date" class="circ-setting">
654 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
655 [% IF ( duedatespec ) %]
656 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
658 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" />
660 <label for="stickyduedate"> Remember for session:</label>
661 [% IF ( stickyduedate ) %]
662 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
664 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
670 [% UNLESS ( noissues ) %]
671 [% IF Koha.Preference('AllowSetAutomaticRenewal') %]
672 <div id="set-automatic-renewal" class="circ-setting">
673 [% IF NEEDSCONFIRMATION %]
675 [% IF patron.autorenew_checkouts %]
676 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
677 title="Patron has opted out of auto-renewal"/>
679 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
682 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
685 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
686 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
687 [% ELSIF patron.autorenew_checkouts %]
688 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
690 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
691 title="Patron has opted out of auto-renewal"/>
695 <label for="auto_renew">Automatic renewal</label>
698 [% IF Koha.Preference('decreaseLoanHighHolds') %]
699 <div id="set_high_holds_overrride" class="circ-setting">
700 [% IF NEEDSCONFIRMATION %]
701 [% IF override_high_holds %]
702 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
704 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
707 [% IF override_high_holds %]
708 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
710 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
713 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
718 [% IF Koha.Preference('OnSiteCheckouts') %]
719 <div id="onsite_checkout-select" class="circ-setting">
721 <div class="onsite-checkout-only">
722 <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>
723 <input type="text" name="duedatespec" id="duedatespec" />
724 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
727 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
728 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
730 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
736 </div> <!-- /.circ-settings -->
738 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
739 <input type="hidden" name="branch" value="[% branch | html %]" />
740 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
742 <input type="hidden" name="charges" value="yes" />
744 </fieldset> <!-- /#circ_circulation_issue -->
747 <div class="lastchecked">
748 <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>
751 </form> <!-- /#mainform -->
752 </div> <!-- /.col-sm-6 -->
754 [% END #/IF !noissues %]
756 [% IF ( noissues ) %]
757 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
758 <div class="col-sm-6">
763 <div class="col-sm-6">
766 [% IF ( noissues ) %]
767 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
768 <div id="circmessages" class="circmessage attention">
770 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
771 <div id="circmessages" class="circmessage warning">
775 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
776 <span class="circ-hlt">Only on-site checkouts are allowed</span>
780 <div id="circmessages" class="circmessage attention">
783 [% INCLUDE 'patron_messages.inc' %]
785 </div> <!-- /#circmessages -->
786 </div> <!-- /div or div.col-sm-6 -->
787 </div> <!-- /.row -->
789 <div id="patronlists" class="toptabs">
792 [% IF ( issuecount ) %]
793 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
795 <a href="#checkouts">0 Checkouts</a>
799 [% IF relatives_issues_count %]
800 <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
804 [% IF ( holds_count ) %]
805 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
807 <a href="#reserves" id="holds-tab">0 Holds</a>
811 [% IF Koha.Preference('UseRecalls') %]
813 <a href="#recalls" id="recalls-tab">
814 [% recalls.count | html %] Recalls
819 [% IF Koha.Preference('ArticleRequests') %]
820 [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
822 <a href="#article-requests" id="article-requests-tab"> [% current_article_requests.count | html %] Article requests</a>
826 [% IF Koha.Preference('ClaimReturnedLostValue') %]
828 [% IF ( patron.return_claims.count ) %]
829 <a href="#return-claims" id="return-claims-tab">
831 [% IF patron.return_claims.resolved.count == 0 %]
832 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
834 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
836 [% IF patron.return_claims.unresolved.count == 0 %]
837 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
839 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
843 <a href="#return-claims" id="return-claims-tab">
845 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
846 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
852 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
854 [% SET enrollments = patron.get_club_enrollments %]
855 [% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC -->
856 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
858 <a id="clubs-tab-link" href="#clubs-tab">
859 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
865 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
867 [% INCLUDE "checkouts-table.inc" %]
869 [% INCLUDE "relatives-issues-table.inc" %]
871 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
874 </div> <!-- /#clubs-tab -->
877 [% INCLUDE borrower_debarments.inc %]
880 [% IF ( holds_count ) %]
881 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
882 <input type="hidden" name="from" value="circ" />
883 <table id="holds-table" style="width: 100% !Important;">
901 <fieldset class="action">
902 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
904 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
905 [% IF hold_cancellation.count %]
906 <select name="cancellation-reason">
907 <option value="">No reason given</option>
908 [% FOREACH reason IN hold_cancellation %]
909 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
916 [% IF Koha.Preference('SuspendHoldsIntranet') %]
917 <fieldset class="action">
918 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
919 <input type="hidden" name="from" value="circ" />
920 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
921 <input type="submit" value="Suspend all holds" />
923 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
924 <label for="suspend_until">until</label>
925 <input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true" />
926 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
931 <fieldset class="action">
932 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
933 <input type="hidden" name="from" value="circ" />
934 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
935 <input type="hidden" name="suspend" value="0" />
936 <input type="submit" value="Resume all suspended holds" />
939 [% END # /IF SuspendHoldsIntranet %]
941 [% ELSE # IF holds_count %]
942 <p>Patron has nothing on hold.</p>
943 [% END # /IF holds_count %]
944 </div> <!-- /#reserves -->
946 [% IF Koha.Preference('UseRecalls') %]
948 [% INCLUDE 'recalls.inc' %]
952 [% IF Koha.Preference('ClaimReturnedLostValue') %]
953 [% INCLUDE 'patron-return-claims.inc' %]
956 [% IF Koha.Preference('ArticleRequests') %]
957 [% INCLUDE 'patron-article-requests.inc' %]
960 </div> <!-- /#patronlists -->
961 [% ELSIF borrowernumber # IF patron %]
962 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
963 [% END # /IF patron %]
965 </div> <!-- /.col-sm-10.col-sm-push-2 -->
967 [% IF Koha.Preference('CircSidebar') %]
968 [% IF not( borrowernumber and patron ) %]
969 <div class="col-sm-2 col-sm-pull-10">
971 [% INCLUDE 'circ-nav.inc' %]
973 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
977 [% IF borrowernumber and patron %]
978 <div class="col-sm-2 col-sm-pull-10">
980 [% INCLUDE 'circ-menu.inc' %]
982 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
985 </div> <!-- /.row -->
988 [% IF Koha.Preference('ClaimReturnedLostValue') %]
989 [% INCLUDE 'modals/resolve_return_claim.inc' %]
993 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
994 <div class="modal-dialog">
995 <div class="modal-content">
996 <div class="modal-header">
997 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
999 <div class="modal-body">
1000 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1002 </div> <!-- /.modal-content -->
1003 </div> <!-- /.modal-dialog -->
1004 </div> <!-- /#barcodeSubmittedModal -->
1006 [% MACRO jsinclude BLOCK %]
1007 [% INCLUDE 'datatables.inc' %]
1008 [% INCLUDE 'columns_settings.inc' %]
1009 [% INCLUDE 'select2.inc' %]
1010 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
1011 [% INCLUDE 'js-date-format.inc' %]
1013 /* Set some variable needed in circulation.js */
1014 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1015 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1016 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1017 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
1018 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
1019 var interface = "[% interface | html %]";
1020 var theme = "[% theme | html %]";
1021 var borrowernumber = "[% patron.borrowernumber | html %]";
1022 var branchcode = "[% branch | html %]";
1023 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1024 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1025 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1026 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1027 var script = "circulation";
1028 var relatives_borrowernumbers = new Array();
1029 [% FOREACH b IN relatives_borrowernumbers %]
1030 relatives_borrowernumbers.push("[% b | html %]");
1032 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1034 [% Asset.js("js/pages/circulation.js") | $raw %]
1035 [% Asset.js("js/checkouts.js") | $raw %]
1036 [% IF Koha.Preference('ClaimReturnedLostValue') %]
1037 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1039 [% Asset.js("js/holds.js") | $raw %]
1040 [% INCLUDE 'calendar.inc' %]
1042 table_settings_issues_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1043 table_settings_borrowers_table = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1045 [% IF borrowernumber and patron %]
1046 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1047 Cookies.remove("holdfor", { path: '/' });
1050 Cookies.remove("holdfor", { path: '/' });
1053 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
1056 function toggle_onsite_checkout(){
1057 if ( $("#onsite_checkout").prop('checked') ) {
1058 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1062 function Dopop(link) {
1063 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1065 $(document).ready(function() {
1066 $('#mainform').on('submit',function() {
1067 if ($("#barcode") && $("#barcode").val()) {
1068 $('#barcode').on('keypress',function(event) {
1069 $('#barcodeSubmittedModal').modal();
1070 event.preventDefault(); }
1075 if ( $('#clubs-tab').length ) {
1076 $('#clubs-tab-link').on('click', function() {
1077 $('#clubs-tab').text(_("Loading..."));
1078 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1082 // listen submit to trigger qslip on empty checkout
1083 $('#mainform').bind('submit',function() {
1084 if ($('#barcode').val() == '') {
1085 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
1086 window.location='/cgi-bin/koha/circ/circulation.pl';
1089 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1093 toggle_onsite_checkout();
1094 $("#onsite_checkout").click(function(){
1095 toggle_onsite_checkout();
1099 [% IF !override_high_holds %]
1100 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1101 if ('[% duedatespec | html %]' === '') {
1102 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1104 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1108 $("#override_high_holds_tmp").on( 'change', function() {
1109 if ( this.checked ) {
1110 $("input[name=duedatespec]:hidden").val('');
1116 [% INCLUDE 'str/members-menu.inc' %]
1117 [% Asset.js("js/members-menu.js") | $raw %]
1118 [% Asset.js("js/recalls.js") | $raw %]
1121 [% INCLUDE 'intranet-bottom.inc' %]