7 [% USE ColumnsSettings %]
10 [% USE AuthorisedValues %]
11 [% SET footerjs = 1 %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
14 [% SET destination = "circ" %]
16 Koha › Circulation
18 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %]
21 [% INCLUDE 'doc-head-close.inc' %]
24 <body id="circ_circulation" class="circ">
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'circ-search.inc' %]
29 <div id="breadcrumbs">
30 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
31 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
33 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
35 <strong>Checkouts</strong>
39 <div class="main container-fluid">
42 <div class="col-sm-10 col-sm-push-2">
45 [% INCLUDE 'members-toolbar.inc' %]
48 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
49 [% IF ( was_renewed ) %]
50 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
54 <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>
57 [% IF additional_materials %]
58 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
59 [% additional_materials | html %]
63 [% IF ( alert.ITEM_LOST ) %]
64 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
67 [% IF ( alert.OTHER_CHARGES ) %]
68 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
71 [% IF alert.HIGHHOLDS %]
72 <div class="dialog message">High demand item. <b>Loan period was not shortened due to override.</b> Shortened due date would have been [% alert.HIGHHOLDS.returndate | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).</div>
75 [% IF alert.RETURNED_FROM_ANOTHER %]
76 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
79 [% IF ( nopermission ) %]
80 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
83 [% IF ( NEEDSCONFIRMATION ) %]
84 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action">
85 [% IF CAN_user_circulate_force_checkout %]
86 <h3>Please confirm checkout</h3>
88 <h3>Cannot check out</h3>
92 [%IF ( AGE_RESTRICTION ) %]
94 Age restriction [% AGE_RESTRICTION | html %].
95 [% IF CAN_user_circulate_force_checkout %]
102 <li>The patron has a debt of [% DEBT | $Price %].</li>
105 [% IF ( DEBT_GUARANTEES ) %]
106 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
109 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
110 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
113 [% IF ( RENEW_ISSUE ) %]
114 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
117 [% IF ( RESERVE_WAITING ) %]
118 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% 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>
121 [% IF ( RESERVED ) %]
122 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% 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>
125 [% IF ( ISSUED_TO_ANOTHER ) %]
126 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% 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 %]).
127 [% IF CAN_user_circulate_force_checkout %]
128 Check in and check out?
133 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
134 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
137 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
138 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
141 [% IF ( BORRNOTSAMEBRANCH ) %]
142 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
145 [% IF ( PATRON_CANT ) %]
146 <li>This patron can't check out this item per library circulation policy.</li>
149 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
150 <li>No circulation rule is defined for this patron and itemtype combination.</li>
153 [% IF ( NOT_FOR_LOAN_FORCING ) %]
155 [% IF ( itemtype_notforloan ) %]
156 Item type is normally not for loan.
157 [% ELSIF ( item_notforloan ) %]
158 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
159 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
161 [% IF CAN_user_circulate_force_checkout %]
167 [% IF ( USERBLOCKEDOVERDUE ) %]
168 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
169 [% IF CAN_user_circulate_force_checkout %]
175 [% IF ( ITEM_LOST ) %]
176 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
177 [% IF CAN_user_circulate_force_checkout %]
184 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
188 <li>Patron has previously checked out this title: <b>[% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</b>. Check out anyway?</li>
191 [% IF BIBLIO_ALREADY_ISSUED %]
193 Patron has already checked out another item from this record.
194 [% IF CAN_user_circulate_force_checkout %]
201 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
202 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
203 <input type="hidden" name="restoreduedatespec" />
205 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
208 <p class="circ-override-high-holds">
209 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
210 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
214 [% IF ( RESERVED ) %]
216 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
217 <label for="cancelreserve">Cancel hold</label>
221 [% IF ( RESERVE_WAITING ) %]
223 <label for="cancelreserve">Cancel hold</label>
224 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
225 <label for="revertreserve">Revert waiting status</label>
226 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
230 <input type="hidden" name="barcode" value="[% barcode | html %]" />
231 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
232 <input type="hidden" name="issueconfirmed" value="1" />
233 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
235 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
237 [% IF ( INVALID_DATE ) %]
239 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
240 <label for="duedatespec">Due date</label>
243 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
246 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
247 <input type="hidden" name="branch" value="[% branch | html %]" />
249 [% IF ( RENEW_ISSUE ) %]
250 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
252 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
255 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
256 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
258 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
260 [% IF ( RESERVED ) %]
261 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
262 <input type="hidden" name="restoreduedatespec" />
263 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
264 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
265 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
266 <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>
270 [% IF ( RESERVE_WAITING ) %]
271 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
272 <input type="hidden" name="restoreduedatespec" />
273 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
274 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
275 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
276 <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>
280 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
281 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
282 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
283 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
284 <input type="hidden" name="restoreduedatespec" />
285 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
286 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
287 [% IF ( RENEW_ISSUE ) %]
288 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
290 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
293 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
297 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
298 [% UNLESS noissues %]
299 <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>
302 </div> <!-- /#circ_needsconfirmation -->
303 [% END # /NEEDSCONFIRMATION %]
305 [% IF ( IMPOSSIBLE ) %]
306 <div id="circ_impossible" class="dialog alert audio-alert-warning">
307 [% IF ( UNKNOWN_BARCODE ) %]
308 <h3>Barcode not found</h3>
311 <!-- RESULT OF ISSUING REQUEST -->
314 <li>Local use recorded</li>
317 [% IF ( INVALID_DATE ) %]
318 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
321 [% IF ( UNKNOWN_BARCODE ) %]
322 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
324 [% IF ( FALLBACK ) %]
326 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
328 <div>No items were found by searching.</div>
332 [% IF ( fast_cataloging ) %]
333 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
334 <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>
341 [% IF ( NOT_FOR_LOAN ) %]
343 [% IF ( itemtype_notforloan ) %]
344 Item type not for loan.
345 [% ELSIF ( item_notforloan ) %]
346 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
347 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
352 [% IF ( WTHDRAWN ) %]
354 <span>Item has been withdrawn</span>
355 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
356 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
360 [% IF ( RESTRICTED ) %]
361 <li>Item is restricted</li>
365 <li>Patron's address is in doubt</li>
368 [% IF ( CARD_LOST ) %]
369 <li>Patron's card is lost</li>
372 [% IF ( DEBARRED ) %]
373 <li>Patron is restricted</li>
376 [% IF ( NO_MORE_RENEWALS ) %]
377 <li>No more renewals possible</li>
380 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
381 <li>This item can not be renewed, it's an on-site checkout</li>
384 [%IF ( AGE_RESTRICTION ) %]
385 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
389 <li>Patron's card is expired</li>
392 [% IF ( TOO_MANY ) %]
393 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
396 [% IF ( ITEMNOTSAMEBRANCH ) %]
397 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
400 [% IF RETURN_IMPOSSIBLE %]
401 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
404 [% IF ( USERBLOCKEDWITHENDDATE ) %]
405 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
408 [% IF ( USERBLOCKEDNOENDDATE ) %]
409 <li>Patron has an indefinite restriction.</li>
412 [% IF ( USERBLOCKEDOVERDUE ) %]
413 <li>Checkouts are BLOCKED because patron has overdue items.</li>
417 [% IF (forceallow) %]
418 <li>Restriction overridden temporarily.</li>
421 </div> <!-- /#circ_impossible -->
423 [% IF ( FALLBACK ) %]
426 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
427 <div class="modal-dialog modal-wide" role="document">
428 <div class="modal-content">
429 <div class="modal-header">
430 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
431 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
433 <div class="modal-body">
434 <table class="table_borrowers">
435 [% FOREACH book IN options %]
438 <a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber | html %]">[% book.title | html %] <i class="fa fa-window-restore"></i></a>
439 [% book.barcode | html %]
442 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
443 [% IF (forceallow) %]
444 <input type="hidden" name="forceallow" value="1">
446 <input type="hidden" name="restoreduedatespec" />
447 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
448 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
449 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
450 <input type="hidden" name="branch" value="[% branch | html %]" />
451 <input type="hidden" name="barcode" value="[% book.barcode | html %]" />
452 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
453 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
454 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
460 </div> <!-- /.modal-body -->
461 <div class="modal-footer">
462 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
464 </div> <!-- /.modal-content -->
465 </div> <!-- /.modal-dialog.modal-wide -->
466 </div> <!-- /#itemSearchFallback -->
467 [% END # /IF options %]
468 [% END # /IF FALLBACK %]
470 [% ELSE # IF IMPOSSIBLE %]
471 [% IF (forceallow) %]
472 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
474 [% END # /IF IMPOSSIBLE %]
476 <span class="audio-alert-success"></span>
479 <p>Item checked out</p>
483 [% INCLUDE 'patron-toolbar.inc' %]
484 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
487 [% IF ( borrowers ) %]
489 [% INCLUDE 'patron-toolbar.inc' %]
490 <fieldset id="circ_circulation_selectborrower">
491 <legend>Patron selection</legend>
492 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
497 <!-- BARCODE ENTRY -->
501 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
502 <div class="dialog alert">
503 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
508 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
509 <div class="col-sm-6">
510 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
511 <input type="hidden" name="restoreduedatespec" />
513 <fieldset id="circ_circulation_issue" class="lastchecked">
515 <fieldset id="circ_circulation_issue">
518 [% IF ( DisplayClearScreenButton ) %]
519 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
520 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
523 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
525 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
527 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
528 <div class="hint">Enter item barcode or keyword:</div>
530 <div class="hint">Enter item barcode:</div>
533 [% IF NEEDSCONFIRMATION %]
534 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
536 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
539 <button type="submit" class="btn btn-default">Check out</button>
541 <div id="show-circ-settings">
542 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
545 <div class="circ-settings">
547 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
548 [% IF ( SpecifyDueDate ) %]
549 <div id="specify-due-date" class="circ-setting">
550 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
551 [% IF ( duedatespec ) %]
552 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
554 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" />
556 <label for="stickyduedate"> Remember for session:</label>
557 [% IF ( stickyduedate ) %]
558 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
560 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
562 <button class="btn btn-default btn-xs action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button>
567 [% UNLESS ( noissues ) %]
568 <div id="set-automatic-renewal" class="circ-setting">
569 [% IF NEEDSCONFIRMATION %]
571 [% IF patron.autorenew_checkouts %]
572 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
573 title="Patron has opted out of auto-renewal"/>
575 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
578 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
581 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
582 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
583 [% ELSIF patron.autorenew_checkouts %]
584 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
586 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
587 title="Patron has opted out of auto-renewal"/>
591 <label for="auto_renew">Automatic renewal</label>
593 [% IF Koha.Preference('decreaseLoanHighHolds') %]
594 <div id="set_high_holds_overrride" class="circ-setting">
595 [% IF NEEDSCONFIRMATION %]
596 [% IF override_high_holds %]
597 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
599 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
602 [% IF override_high_holds %]
603 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
605 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
608 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
613 [% IF Koha.Preference('OnSiteCheckouts') %]
614 <div id="onsite_checkout-select" class="circ-setting">
616 <div class="onsite-checkout-only">
617 <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>
618 <input type="text" name="duedatespec" id="duedatespec" />
619 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
622 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
623 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
625 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
631 </div> <!-- /.circ-settings -->
633 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
634 <input type="hidden" name="branch" value="[% branch | html %]" />
635 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
637 <input type="hidden" name="charges" value="yes" />
639 </fieldset> <!-- /#circ_circulation_issue -->
642 <div class="lastchecked">
643 <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>
646 </form> <!-- /#mainform -->
647 </div> <!-- /.col-sm-6 -->
649 [% END #/IF !noissues %]
651 [% IF ( noissues ) %]
652 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
653 <div class="col-sm-6">
658 <div class="col-sm-6">
661 [% IF ( noissues ) %]
662 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
663 <div id="circmessages" class="circmessage attention">
665 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
666 <div id="circmessages" class="circmessage warning">
670 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
671 <span class="circ-hlt">Only on-site checkouts are allowed</span>
675 <div id="circmessages" class="circmessage attention">
680 [% IF ( has_modifications ) %]
681 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
682 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
683 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
688 [% IF ( warndeparture ) %]
690 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
691 Patron's card expires on [% expiry | $KohaDates %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]">Edit details</a>
696 [% IF ( returnbeforeexpiry ) %]
698 <span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the expiry date is before the date due, the date due will be set to the expiry date
704 <span class="circ-hlt">Expiration:</span> Patron's card has expired.
706 Patron's card expired on [% expiry | $KohaDates %]
708 <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]">Edit details</a>
713 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
717 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
720 [% IF ( userdebarred ) %]
722 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
724 [% IF ( userdebarreddate ) %]
725 until [% userdebarreddate | $KohaDates %]
728 [% IF ( debarredcomment ) %]
729 with the explanation: <br/>
731 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
732 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
734 [% debarredcomment | $raw | html_line_break %]
739 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
741 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
742 <span class="override_debarment">
743 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
746 </li> <!-- /.blocker -->
747 [% END # /IF userdebarred %]
750 <li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
753 [% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %]
754 [% SET return_claims = patron.return_claims %]
755 [% IF return_claims.count > ClaimReturnedWarningThreshold %]
756 <li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span>
760 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
763 [% IF age_limitations %]
764 [% INCLUDE 'category-out-of-age-limit.inc' %]
767 [% IF ( charges_guarantees ) %]
769 <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
771 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
779 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
785 [% IF WaitingHolds.count %]
786 <div id="holdswaiting" class="circmessage">
787 <h4>Holds waiting:</h4>
788 [% FOREACH w IN WaitingHolds %]
791 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
792 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
793 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
794 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
795 Hold placed on [% w.reservedate | $KohaDates %].
798 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
799 [% SET expires_on = w.expirationdate %]
800 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
806 [% END # /IF WaitingHolds.count %]
809 <div id="circnotes" class="circmessage">
811 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
815 <div id="messages" class="circmessage">
818 [% FOREACH message IN messages %]
820 [% IF(message.message_type == "L") %]
821 <span class="circ-hlt">
825 [% message.message_date | $KohaDates %]
826 [% Branches.GetName( message.branchcode ) | html %]
827 [% IF message.manager_id %]
828 ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id | uri %]">[% message.get_column('manager_firstname') | html %] [% message.get_column('manager_surname') | html %]</a> )
830 <i>"[% message.message | html %]"</i>
832 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
833 <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(_('Are you sure you want to delete this message? This cannot be undone.'));"><i class="fa fa-trash"></i> Delete</a>
838 <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
839 </div> <!-- /.messages -->
840 </div> <!-- /#circmessages -->
841 </div> <!-- /div or div.col-sm-6 -->
842 </div> <!-- /.row -->
844 <div id="patronlists" class="toptabs">
847 [% IF ( issuecount ) %]
848 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
850 <a href="#checkouts">0 Checkouts</a>
854 [% IF relatives_issues_count %]
855 <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
859 [% IF ( holds_count ) %]
860 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
862 <a href="#reserves" id="holds-tab">0 Holds</a>
866 [% IF Koha.Preference('ArticleRequests') %]
868 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
872 [% IF Koha.Preference('ClaimReturnedLostValue') %]
874 [% IF ( patron.return_claims.count ) %]
875 <a href="#return-claims" id="return-claims-tab">
876 <span id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
878 <span id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
882 <a href="#return-claims" id="return-claims-tab">
883 <span id="return-claims-count-resolved">0</span>
885 <span id="return-claims-count-unresolved">0</span>
892 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
894 [% SET enrollments = patron.get_club_enrollments(1) %]
895 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
896 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
898 <a id="clubs-tab-link" href="#clubs-tab">
899 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
905 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
907 [% INCLUDE "checkouts-table.inc" %]
909 [% INCLUDE "relatives-issues-table.inc" %]
911 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
914 </div> <!-- /#clubs-tab -->
917 [% INCLUDE borrower_debarments.inc %]
920 [% IF ( holds_count ) %]
921 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
922 <input type="hidden" name="from" value="circ" />
923 <table id="holds-table" style="width: 100% !Important;">
940 <fieldset class="action">
941 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
945 [% IF Koha.Preference('SuspendHoldsIntranet') %]
946 <fieldset class="action">
947 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
948 <input type="hidden" name="from" value="circ" />
949 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
950 <input type="submit" value="Suspend all holds" />
952 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
953 <label for="suspend_until">until</label>
954 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
955 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
960 <fieldset class="action">
961 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
962 <input type="hidden" name="from" value="circ" />
963 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
964 <input type="hidden" name="suspend" value="0" />
965 <input type="submit" value="Resume all suspended holds" />
968 [% END # /IF SuspendHoldsIntranet %]
970 [% ELSE # IF holds_count %]
971 <p>Patron has nothing on hold.</p>
972 [% END # /IF holds_count %]
973 </div> <!-- /#reserves -->
975 [% IF Koha.Preference('ClaimReturnedLostValue') %]
976 [% INCLUDE 'patron-return-claims.inc' %]
979 [% IF Koha.Preference('ArticleRequests') %]
980 [% INCLUDE 'patron-article-requests.inc' %]
983 </div> <!-- /#patronlists -->
984 [% ELSIF borrowernumber # IF patron %]
985 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
986 [% END # /IF patron %]
988 [% END #/IF borrowers %]
990 </div> <!-- /.col-sm-10.col-sm-push-2 -->
992 [% IF Koha.Preference('CircSidebar') %]
993 [% UNLESS ( borrowers ) %]
994 [% IF not( borrowernumber and patron ) %]
995 <div class="col-sm-2 col-sm-pull-10">
997 [% INCLUDE 'circ-nav.inc' %]
999 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1004 [% UNLESS ( borrowers ) %]
1005 [% IF borrowernumber and patron %]
1006 <div class="col-sm-2 col-sm-pull-10">
1008 [% INCLUDE 'circ-menu.inc' %]
1010 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
1014 </div> <!-- /.row -->
1018 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1019 <div class="modal-dialog">
1020 <div class="modal-content">
1021 <div class="modal-header">
1022 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1024 <div class="modal-body">
1025 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1027 </div> <!-- /.modal-content -->
1028 </div> <!-- /.modal-dialog -->
1029 </div> <!-- /#barcodeSubmittedModal -->
1031 [% MACRO jsinclude BLOCK %]
1032 [% INCLUDE 'calendar.inc' %]
1033 [% INCLUDE 'datatables.inc' %]
1034 [% INCLUDE 'columns_settings.inc' %]
1035 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
1036 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
1037 [% INCLUDE 'timepicker.inc' %]
1038 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
1040 /* Set some variable needed in circulation.js */
1041 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1042 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1043 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | 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 [% Asset.js("js/holds.js") | $raw %]
1063 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1065 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1066 columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1068 [% IF borrowernumber and patron %]
1069 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1070 Cookies.remove("holdfor", { path: '/' });
1073 Cookies.remove("holdfor", { path: '/' });
1076 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1079 function toggle_onsite_checkout(){
1080 if ( $("#onsite_checkout").prop('checked') ) {
1081 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1082 [% IF !Koha.Preference('SpecifyDueDate') %]
1083 $("#duedatespec").datetimepicker('destroy');
1086 $("#duedatespec").datetimepicker({
1087 onClose: function(dateText, inst) {
1088 if (validate_date(dateText, inst) ) {
1089 $("#barcode").focus();
1094 }).on("change", function(e, value) {
1095 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1100 function Dopop(link) {
1101 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1103 $(document).ready(function() {
1104 $('#mainform').on('submit',function() {
1105 if ($("#barcode") && $("#barcode").val()) {
1106 $('#barcode').on('keypress',function(event) {
1107 $('#barcodeSubmittedModal').modal();
1108 event.preventDefault(); }
1113 if ( $('#clubs-tab').length ) {
1114 $('#clubs-tab-link').on('click', function() {
1115 $('#clubs-tab').text(_("Loading..."));
1116 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1120 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1121 // listen submit to trigger qslip on empty checkout
1122 $('#mainform').bind('submit',function() {
1123 if ($('#barcode').val() == '') {
1124 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1128 toggle_onsite_checkout();
1129 $("#onsite_checkout").click(function(){
1130 toggle_onsite_checkout();
1134 [% IF !override_high_holds %]
1135 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1136 if ('[% duedatespec | html %]' === '') {
1137 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1139 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1143 $("#override_high_holds_tmp").on( 'change', function() {
1144 if ( this.checked ) {
1145 $("input[name=duedatespec]:hidden").val('');
1151 [% INCLUDE 'str/members-menu.inc' %]
1152 [% Asset.js("js/members-menu.js") | $raw %]
1155 [% INCLUDE 'intranet-bottom.inc' %]