7 [% USE TablesSettings %]
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 && !NEEDSCONFIRMATION %]
58 <div id="materials" class="dialog message">Note about the accompanying materials: [% ADDITIONAL_MATERIALS | html %]
62 [% IF ( alert.ITEM_LOST ) %]
63 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
66 [% IF ( alert.OTHER_CHARGES ) %]
67 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
70 [% IF alert.HIGHHOLDS %]
71 <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>
74 [% IF alert.RETURNED_FROM_ANOTHER %]
75 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
78 [% IF ( nopermission ) %]
79 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
82 [% IF ( NEEDSCONFIRMATION ) %]
83 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1">
84 [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]
85 <h3>Please confirm checkout</h3>
87 <h3>Cannot check out</h3>
91 [%IF ( AGE_RESTRICTION ) %]
93 Age restriction [% AGE_RESTRICTION | html %].
94 [% 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 ( DEBT_GUARANTORS ) %]
110 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
113 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
114 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
117 [% IF ( RENEW_ISSUE ) %]
118 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
121 [% IF ( RESERVE_WAITING ) %]
122 <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>
125 [% IF ( RESERVED ) %]
126 <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>
129 [% IF ( ISSUED_TO_ANOTHER ) %]
130 <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 %]).
131 [% IF CAN_user_circulate_force_checkout %]
132 Check in and check out?
137 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
138 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
141 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
142 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
145 [% IF ( BORRNOTSAMEBRANCH ) %]
146 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
149 [% IF ( PATRON_CANT ) %]
150 <li>This patron can't check out this item per library circulation policy.</li>
153 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
154 <li>No circulation rule is defined for this patron and itemtype combination.</li>
157 [% IF ( NOT_FOR_LOAN_FORCING ) %]
159 [% IF ( itemtype_notforloan ) %]
160 Item type is normally not for loan.
161 [% ELSIF ( item_notforloan ) %]
162 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
163 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
165 [% IF CAN_user_circulate_force_checkout %]
171 [% IF ( USERBLOCKEDOVERDUE ) %]
172 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
173 [% IF CAN_user_circulate_force_checkout %]
179 [% IF ( ITEM_LOST ) %]
180 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
181 [% IF CAN_user_circulate_force_checkout %]
188 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
192 <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>
195 [% IF BIBLIO_ALREADY_ISSUED %]
197 Patron has already checked out another item from this record.
198 [% IF CAN_user_circulate_force_checkout %]
204 [% IF ADDITIONAL_MATERIALS %]
206 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
211 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
212 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
213 <input type="hidden" name="restoreduedatespec" />
215 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
218 <p class="circ-override-high-holds">
219 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
220 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
224 [% IF ( RESERVED ) %]
226 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
227 <label for="cancelreserve">Cancel hold</label>
231 [% IF ( RESERVE_WAITING ) %]
233 <label for="cancelreserve">Cancel hold</label>
234 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
235 <label for="revertreserve">Revert waiting status</label>
236 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
240 <input type="hidden" name="barcode" value="[% barcode | html %]" />
241 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
242 <input type="hidden" name="issueconfirmed" value="1" />
243 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
245 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
247 [% IF ( INVALID_DATE ) %]
249 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
250 <label for="duedatespec">Due date</label>
253 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
256 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
257 <input type="hidden" name="branch" value="[% branch | html %]" />
259 [% IF ( RENEW_ISSUE ) %]
260 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
262 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
265 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
266 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
268 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
270 [% IF ( RESERVED ) %]
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 [% IF ( RESERVE_WAITING ) %]
281 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
282 <input type="hidden" name="restoreduedatespec" />
283 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
284 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
285 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
286 <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>
290 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
291 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
292 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
293 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
294 <input type="hidden" name="restoreduedatespec" />
295 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
296 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
297 [% IF ( RENEW_ISSUE ) %]
298 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
300 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
303 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
307 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
308 [% UNLESS noissues %]
309 <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>
312 </div> <!-- /#circ_needsconfirmation -->
313 [% END # /NEEDSCONFIRMATION %]
315 [% IF ( IMPOSSIBLE ) %]
316 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
317 [% IF ( UNKNOWN_BARCODE ) %]
318 <h3>Barcode not found</h3>
321 <!-- RESULT OF ISSUING REQUEST -->
323 [% IF ( DEBT_GUARANTORS ) %]
324 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
328 <li>Local use recorded</li>
331 [% IF ( INVALID_DATE ) %]
332 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
335 [% IF ( UNKNOWN_BARCODE ) %]
336 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
338 [% IF ( FALLBACK ) %]
340 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
342 <div>No items were found by searching.</div>
346 [% IF ( fast_cataloging ) %]
347 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
348 <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>
355 [% IF ( NOT_FOR_LOAN ) %]
357 [% IF ( itemtype_notforloan ) %]
358 Item type not for loan.
359 [% ELSIF ( item_notforloan ) %]
360 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
361 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
366 [% IF ( WTHDRAWN ) %]
368 <span>Item has been withdrawn</span>
369 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
370 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
374 [% IF ( RESTRICTED ) %]
375 <li>Item is restricted</li>
379 <li>Patron's address is in doubt</li>
382 [% IF ( CARD_LOST ) %]
383 <li>Patron's card is lost</li>
386 [% IF ( DEBARRED ) %]
387 <li>Patron is restricted</li>
390 [% IF ( NO_MORE_RENEWALS ) %]
391 <li>No more renewals possible</li>
394 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
395 <li>This item can not be renewed, it's an on-site checkout</li>
398 [%IF ( AGE_RESTRICTION ) %]
399 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
403 <li>Patron's card is expired</li>
406 [% IF ( TOO_MANY ) %]
407 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
410 [% IF ( ITEMNOTSAMEBRANCH ) %]
411 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
414 [% IF RETURN_IMPOSSIBLE %]
415 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
418 [% IF ( USERBLOCKEDWITHENDDATE ) %]
419 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
422 [% IF ( USERBLOCKEDNOENDDATE ) %]
423 <li>Patron has an indefinite restriction.</li>
426 [% IF ( USERBLOCKEDOVERDUE ) %]
427 <li>Checkouts are BLOCKED because patron has overdue items.</li>
431 [% IF (forceallow) %]
432 <li>Restriction overridden temporarily.</li>
435 </div> <!-- /#circ_impossible -->
437 [% IF ( FALLBACK ) %]
440 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
441 <div class="modal-dialog modal-wide" role="document">
442 <div class="modal-content">
443 <div class="modal-header">
444 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
445 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
447 <div class="modal-body">
448 <table class="table_borrowers">
449 [% FOREACH book IN options %]
452 <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>
453 [% book.barcode | html %]
456 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
457 [% IF (forceallow) %]
458 <input type="hidden" name="forceallow" value="1">
460 <input type="hidden" name="restoreduedatespec" />
461 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
462 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
463 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
464 <input type="hidden" name="branch" value="[% branch | html %]" />
465 <input type="hidden" name="barcode" value="[% book.barcode | html %]" />
466 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
467 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
468 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
474 </div> <!-- /.modal-body -->
475 <div class="modal-footer">
476 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
478 </div> <!-- /.modal-content -->
479 </div> <!-- /.modal-dialog.modal-wide -->
480 </div> <!-- /#itemSearchFallback -->
481 [% END # /IF options %]
482 [% END # /IF FALLBACK %]
484 [% ELSE # IF IMPOSSIBLE %]
485 [% IF (forceallow) %]
486 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
488 [% END # /IF IMPOSSIBLE %]
490 <span class="audio-alert-success"></span>
493 <p>Item checked out</p>
497 [% INCLUDE 'patron-toolbar.inc' %]
498 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
501 [% IF ( borrowers ) %]
503 [% INCLUDE 'patron-toolbar.inc' %]
504 <fieldset id="circ_circulation_selectborrower">
505 <legend>Patron selection</legend>
506 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
511 <!-- BARCODE ENTRY -->
515 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
516 <div class="dialog alert">
517 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
522 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
523 <div class="col-sm-6">
524 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
525 <input type="hidden" name="restoreduedatespec" />
527 <fieldset id="circ_circulation_issue" class="lastchecked">
529 <fieldset id="circ_circulation_issue">
532 [% IF ( DisplayClearScreenButton ) %]
533 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
534 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
537 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
539 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
541 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
542 <div class="hint">Enter item barcode or keyword:</div>
544 <div class="hint">Enter item barcode:</div>
547 [% IF NEEDSCONFIRMATION %]
548 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
550 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
553 <button type="submit" class="btn btn-default">Check out</button>
555 <div id="show-circ-settings">
556 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
559 <div class="circ-settings">
561 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
562 [% IF ( SpecifyDueDate ) %]
563 <div id="specify-due-date" class="circ-setting">
564 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
565 [% IF ( duedatespec ) %]
566 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
568 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" />
570 <label for="stickyduedate"> Remember for session:</label>
571 [% IF ( stickyduedate ) %]
572 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
574 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
576 <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>
581 [% UNLESS ( noissues ) %]
582 <div id="set-automatic-renewal" class="circ-setting">
583 [% IF NEEDSCONFIRMATION %]
585 [% IF patron.autorenew_checkouts %]
586 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
587 title="Patron has opted out of auto-renewal"/>
589 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
592 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
595 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
596 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
597 [% ELSIF patron.autorenew_checkouts %]
598 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
600 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
601 title="Patron has opted out of auto-renewal"/>
605 <label for="auto_renew">Automatic renewal</label>
607 [% IF Koha.Preference('decreaseLoanHighHolds') %]
608 <div id="set_high_holds_overrride" class="circ-setting">
609 [% IF NEEDSCONFIRMATION %]
610 [% IF override_high_holds %]
611 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
613 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
616 [% IF override_high_holds %]
617 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
619 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
622 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
627 [% IF Koha.Preference('OnSiteCheckouts') %]
628 <div id="onsite_checkout-select" class="circ-setting">
630 <div class="onsite-checkout-only">
631 <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>
632 <input type="text" name="duedatespec" id="duedatespec" />
633 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
636 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
637 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
639 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
645 </div> <!-- /.circ-settings -->
647 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
648 <input type="hidden" name="branch" value="[% branch | html %]" />
649 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
651 <input type="hidden" name="charges" value="yes" />
653 </fieldset> <!-- /#circ_circulation_issue -->
656 <div class="lastchecked">
657 <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>
660 </form> <!-- /#mainform -->
661 </div> <!-- /.col-sm-6 -->
663 [% END #/IF !noissues %]
665 [% IF ( noissues ) %]
666 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
667 <div class="col-sm-6">
672 <div class="col-sm-6">
675 [% IF ( noissues ) %]
676 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
677 <div id="circmessages" class="circmessage attention">
679 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
680 <div id="circmessages" class="circmessage warning">
684 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
685 <span class="circ-hlt">Only on-site checkouts are allowed</span>
689 <div id="circmessages" class="circmessage attention">
694 [% IF ( has_modifications ) %]
695 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
696 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
697 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
702 [% IF ( warndeparture ) %]
704 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
705 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>
710 [% IF ( returnbeforeexpiry ) %]
712 <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
718 <span class="circ-hlt">Expiration:</span> Patron's card has expired.
720 Patron's card expired on [% expiry | $KohaDates %]
722 <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>
727 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
731 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
734 [% IF ( userdebarred ) %]
736 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
738 [% IF ( userdebarreddate ) %]
739 until [% userdebarreddate | $KohaDates %]
742 [% IF ( debarredcomment ) %]
743 with the explanation: <br/>
745 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
746 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
748 [% debarredcomment | $raw | html_line_break %]
753 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
755 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
756 <span class="override_debarment">
757 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
760 </li> <!-- /.blocker -->
761 [% END # /IF userdebarred %]
764 <li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
767 [% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %]
768 [% SET return_claims = patron.return_claims %]
769 [% IF return_claims.count > ClaimReturnedWarningThreshold %]
770 <li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span>
774 [% IF age_limitations %]
775 [% INCLUDE 'category-out-of-age-limit.inc' %]
779 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
781 [% IF ( charges_guarantors_guarantees ) %]
783 <span class="circ-hlt">Charges:</span> Patron's guarantors and their other guarantees collectively owe [% charges_guarantors_guarantees | $Price %].
785 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
789 [% IF ( charges_guarantees ) %]
791 <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
793 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
801 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
807 [% IF WaitingHolds.count %]
808 <div id="holdswaiting" class="circmessage">
809 <h4>Holds waiting:</h4>
810 [% FOREACH w IN WaitingHolds %]
813 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
814 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
815 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
816 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
817 Hold placed on [% w.reservedate | $KohaDates %].
820 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
821 [% SET expires_on = w.expirationdate %]
822 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
828 [% END # /IF WaitingHolds.count %]
831 <div id="circnotes" class="circmessage">
833 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
837 <div id="messages" class="circmessage">
840 [% FOREACH message IN messages %]
842 [% IF(message.message_type == "L") %]
843 <span class="circ-hlt">
847 [% message.message_date | $KohaDates %]
848 [% Branches.GetName( message.branchcode ) | html %]
849 [% IF message.manager_id %]
850 ( <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> )
852 <em>"[% message.message | html %]"</em>
854 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
855 <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>
860 <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>
861 </div> <!-- /.messages -->
862 </div> <!-- /#circmessages -->
863 </div> <!-- /div or div.col-sm-6 -->
864 </div> <!-- /.row -->
866 <div id="patronlists" class="toptabs">
869 [% IF ( issuecount ) %]
870 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
872 <a href="#checkouts">0 Checkouts</a>
876 [% IF relatives_issues_count %]
877 <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
881 [% IF ( holds_count ) %]
882 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
884 <a href="#reserves" id="holds-tab">0 Holds</a>
888 [% IF Koha.Preference('ArticleRequests') %]
890 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
894 [% IF Koha.Preference('ClaimReturnedLostValue') %]
896 [% IF ( patron.return_claims.count ) %]
897 <a href="#return-claims" id="return-claims-tab">
899 [% IF patron.return_claims.resolved.count == 0 %]
900 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
902 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
904 [% IF patron.return_claims.unresolved.count == 0 %]
905 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
907 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
911 <a href="#return-claims" id="return-claims-tab">
913 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
914 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
920 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
922 [% SET enrollments = patron.get_club_enrollments(1) %]
923 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
924 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
926 <a id="clubs-tab-link" href="#clubs-tab">
927 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
933 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
935 [% INCLUDE "checkouts-table.inc" %]
937 [% INCLUDE "relatives-issues-table.inc" %]
939 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
942 </div> <!-- /#clubs-tab -->
945 [% INCLUDE borrower_debarments.inc %]
948 [% IF ( holds_count ) %]
949 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
950 <input type="hidden" name="from" value="circ" />
951 <table id="holds-table" style="width: 100% !Important;">
968 <fieldset class="action">
969 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
971 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
972 [% IF hold_cancellation %]
973 <select name="cancellation-reason">
974 <option value="">No reason given</option>
975 [% FOREACH reason IN hold_cancellation %]
976 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
983 [% IF Koha.Preference('SuspendHoldsIntranet') %]
984 <fieldset class="action">
985 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
986 <input type="hidden" name="from" value="circ" />
987 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
988 <input type="submit" value="Suspend all holds" />
990 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
991 <label for="suspend_until">until</label>
992 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
993 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
998 <fieldset class="action">
999 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1000 <input type="hidden" name="from" value="circ" />
1001 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
1002 <input type="hidden" name="suspend" value="0" />
1003 <input type="submit" value="Resume all suspended holds" />
1006 [% END # /IF SuspendHoldsIntranet %]
1008 [% ELSE # IF holds_count %]
1009 <p>Patron has nothing on hold.</p>
1010 [% END # /IF holds_count %]
1011 </div> <!-- /#reserves -->
1013 [% IF Koha.Preference('ClaimReturnedLostValue') %]
1014 [% INCLUDE 'patron-return-claims.inc' %]
1017 [% IF Koha.Preference('ArticleRequests') %]
1018 [% INCLUDE 'patron-article-requests.inc' %]
1021 </div> <!-- /#patronlists -->
1022 [% ELSIF borrowernumber # IF patron %]
1023 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
1024 [% END # /IF patron %]
1026 [% END #/IF borrowers %]
1028 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1030 [% IF Koha.Preference('CircSidebar') %]
1031 [% UNLESS ( borrowers ) %]
1032 [% IF not( borrowernumber and patron ) %]
1033 <div class="col-sm-2 col-sm-pull-10">
1035 [% INCLUDE 'circ-nav.inc' %]
1037 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1042 [% UNLESS ( borrowers ) %]
1043 [% IF borrowernumber and patron %]
1044 <div class="col-sm-2 col-sm-pull-10">
1046 [% INCLUDE 'circ-menu.inc' %]
1048 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
1052 </div> <!-- /.row -->
1056 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1057 <div class="modal-dialog">
1058 <div class="modal-content">
1059 <div class="modal-header">
1060 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1062 <div class="modal-body">
1063 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1065 </div> <!-- /.modal-content -->
1066 </div> <!-- /.modal-dialog -->
1067 </div> <!-- /#barcodeSubmittedModal -->
1069 [% MACRO jsinclude BLOCK %]
1070 [% INCLUDE 'calendar.inc' %]
1071 [% INCLUDE 'datatables.inc' %]
1072 [% INCLUDE 'columns_settings.inc' %]
1073 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
1074 [% INCLUDE 'timepicker.inc' %]
1075 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
1077 /* Set some variable needed in circulation.js */
1078 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1079 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1080 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1081 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
1082 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
1083 var interface = "[% interface | html %]";
1084 var theme = "[% theme | html %]";
1085 var borrowernumber = "[% patron.borrowernumber | html %]";
1086 var branchcode = "[% branch | html %]";
1087 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1088 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1089 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1090 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1091 var script = "circulation";
1092 var relatives_borrowernumbers = new Array();
1093 [% FOREACH b IN relatives_borrowernumbers %]
1094 relatives_borrowernumbers.push("[% b | html %]");
1096 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1098 [% Asset.js("js/pages/circulation.js") | $raw %]
1099 [% Asset.js("js/checkouts.js") | $raw %]
1100 [% Asset.js("js/holds.js") | $raw %]
1101 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1103 columns_settings_issues_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1104 columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1106 [% IF borrowernumber and patron %]
1107 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1108 Cookies.remove("holdfor", { path: '/' });
1111 Cookies.remove("holdfor", { path: '/' });
1114 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1117 function toggle_onsite_checkout(){
1118 if ( $("#onsite_checkout").prop('checked') ) {
1119 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1120 [% IF !Koha.Preference('SpecifyDueDate') %]
1121 $("#duedatespec").datetimepicker('destroy');
1124 $("#duedatespec").datetimepicker({
1125 onClose: function(dateText, inst) {
1126 if (validate_date(dateText, inst) ) {
1127 $("#barcode").focus();
1132 }).on("change", function(e, value) {
1133 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1138 function Dopop(link) {
1139 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1141 $(document).ready(function() {
1142 $('#mainform').on('submit',function() {
1143 if ($("#barcode") && $("#barcode").val()) {
1144 $('#barcode').on('keypress',function(event) {
1145 $('#barcodeSubmittedModal').modal();
1146 event.preventDefault(); }
1151 if ( $('#clubs-tab').length ) {
1152 $('#clubs-tab-link').on('click', function() {
1153 $('#clubs-tab').text(_("Loading..."));
1154 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1158 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1159 // listen submit to trigger qslip on empty checkout
1160 $('#mainform').bind('submit',function() {
1161 if ($('#barcode').val() == '') {
1162 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1166 toggle_onsite_checkout();
1167 $("#onsite_checkout").click(function(){
1168 toggle_onsite_checkout();
1172 [% IF !override_high_holds %]
1173 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1174 if ('[% duedatespec | html %]' === '') {
1175 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1177 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1181 $("#override_high_holds_tmp").on( 'change', function() {
1182 if ( this.checked ) {
1183 $("input[name=duedatespec]:hidden").val('');
1189 [% INCLUDE 'str/members-menu.inc' %]
1190 [% Asset.js("js/members-menu.js") | $raw %]
1193 [% INCLUDE 'intranet-bottom.inc' %]