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 ( TRANSFERRED ) %]
126 <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>
129 [% IF ( RESERVED ) %]
130 <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>
133 [% IF ( ISSUED_TO_ANOTHER ) %]
134 <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 %]).
135 [% IF CAN_user_circulate_force_checkout %]
136 Check in and check out?
141 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
142 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
145 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
146 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
149 [% IF ( BORRNOTSAMEBRANCH ) %]
150 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
153 [% IF ( PATRON_CANT ) %]
154 <li>This patron can't check out this item per library circulation policy.</li>
157 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
158 <li>No circulation rule is defined for this patron and itemtype combination.</li>
161 [% IF ( NOT_FOR_LOAN_FORCING ) %]
163 [% IF ( itemtype_notforloan ) %]
164 Item type is normally not for loan.
165 [% ELSIF ( item_notforloan ) %]
166 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
167 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
169 [% IF CAN_user_circulate_force_checkout %]
175 [% IF ( USERBLOCKEDOVERDUE ) %]
176 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
177 [% IF CAN_user_circulate_force_checkout %]
183 [% IF ( ITEM_LOST ) %]
184 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
185 [% IF CAN_user_circulate_force_checkout %]
192 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
196 <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>
199 [% IF BIBLIO_ALREADY_ISSUED %]
201 Patron has already checked out another item from this record.
202 [% IF CAN_user_circulate_force_checkout %]
208 [% IF ADDITIONAL_MATERIALS %]
210 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
215 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
216 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
217 <input type="hidden" name="restoreduedatespec" />
219 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
222 <p class="circ-override-high-holds">
223 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
224 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
228 [% IF ( RESERVED ) %]
230 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
231 <label for="cancelreserve">Cancel hold</label>
235 [% IF ( RESERVE_WAITING ) %]
237 <label for="cancelreserve">Cancel hold</label>
238 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
239 <label for="revertreserve">Revert waiting status</label>
240 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
244 [% IF ( TRANSFERRED ) %]
246 <label for="cancelreserve">Cancel hold</label>
247 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
248 <label for="revertreserve">Revert hold transfer status</label>
249 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
253 <input type="hidden" name="barcode" value="[% barcode | html %]" />
254 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
255 <input type="hidden" name="issueconfirmed" value="1" />
256 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
258 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
260 [% IF ( INVALID_DATE ) %]
262 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
263 <label for="duedatespec">Due date</label>
266 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
269 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
270 <input type="hidden" name="branch" value="[% branch | html %]" />
272 [% IF ( RENEW_ISSUE ) %]
273 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
275 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
278 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
279 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
281 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
283 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED ) %]
284 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
285 <input type="hidden" name="restoreduedatespec" />
286 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
287 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
288 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
289 <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>
293 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
294 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
295 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
296 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
297 <input type="hidden" name="restoreduedatespec" />
298 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
299 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
300 [% IF ( RENEW_ISSUE ) %]
301 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
303 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
306 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
310 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
311 [% UNLESS noissues %]
312 <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>
315 </div> <!-- /#circ_needsconfirmation -->
316 [% END # /NEEDSCONFIRMATION %]
318 [% IF ( IMPOSSIBLE ) %]
319 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
320 [% IF ( UNKNOWN_BARCODE ) %]
321 <h3>Barcode not found</h3>
324 <!-- RESULT OF ISSUING REQUEST -->
326 [% IF ( DEBT_GUARANTORS ) %]
327 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
331 <li>Local use recorded</li>
334 [% IF ( INVALID_DATE ) %]
335 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
338 [% IF ( UNKNOWN_BARCODE ) %]
339 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
341 [% IF ( FALLBACK ) %]
343 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
345 <div>No items were found by searching.</div>
349 [% IF ( fast_cataloging ) %]
350 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
351 <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>
358 [% IF ( NOT_FOR_LOAN ) %]
360 [% IF ( itemtype_notforloan ) %]
361 Item type not for loan.
362 [% ELSIF ( item_notforloan ) %]
363 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
364 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
369 [% IF ( WTHDRAWN ) %]
371 <span>Item has been withdrawn</span>
372 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
373 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
377 [% IF ( RESTRICTED ) %]
378 <li>Item is restricted</li>
382 <li>Patron's address is in doubt</li>
385 [% IF ( CARD_LOST ) %]
386 <li>Patron's card is lost</li>
389 [% IF ( DEBARRED ) %]
390 <li>Patron is restricted</li>
393 [% IF ( NO_MORE_RENEWALS ) %]
394 <li>No more renewals possible</li>
397 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
398 <li>This item can not be renewed, it's an on-site checkout</li>
401 [%IF ( AGE_RESTRICTION ) %]
402 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
406 <li>Patron's card is expired</li>
409 [% IF ( TOO_MANY ) %]
410 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
413 [% IF ( ITEMNOTSAMEBRANCH ) %]
414 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
417 [% IF RETURN_IMPOSSIBLE %]
418 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
421 [% IF ( USERBLOCKEDWITHENDDATE ) %]
422 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
425 [% IF ( USERBLOCKEDNOENDDATE ) %]
426 <li>Patron has an indefinite restriction.</li>
429 [% IF ( USERBLOCKEDOVERDUE ) %]
430 <li>Checkouts are BLOCKED because patron has overdue items.</li>
434 [% IF (forceallow) %]
435 <li>Restriction overridden temporarily.</li>
438 </div> <!-- /#circ_impossible -->
440 [% IF ( FALLBACK ) %]
443 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
444 <div class="modal-dialog modal-wide" role="document">
445 <div class="modal-content">
446 <div class="modal-header">
447 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
448 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
450 <div class="modal-body">
451 <table class="table_borrowers">
452 [% FOREACH book IN options %]
455 <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>
456 [% book.barcode | html %]
459 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
460 [% IF (forceallow) %]
461 <input type="hidden" name="forceallow" value="1">
463 <input type="hidden" name="restoreduedatespec" />
464 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
465 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
466 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
467 <input type="hidden" name="branch" value="[% branch | html %]" />
468 <input type="hidden" name="barcode" value="[% book.barcode | html %]" />
469 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
470 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
471 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
477 </div> <!-- /.modal-body -->
478 <div class="modal-footer">
479 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
481 </div> <!-- /.modal-content -->
482 </div> <!-- /.modal-dialog.modal-wide -->
483 </div> <!-- /#itemSearchFallback -->
484 [% END # /IF options %]
485 [% END # /IF FALLBACK %]
487 [% ELSE # IF IMPOSSIBLE %]
488 [% IF (forceallow) %]
489 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
491 [% END # /IF IMPOSSIBLE %]
493 <span class="audio-alert-success"></span>
496 <p>Item checked out</p>
500 [% INCLUDE 'patron-toolbar.inc' %]
501 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
504 [% IF ( borrowers ) %]
506 [% INCLUDE 'patron-toolbar.inc' %]
507 <fieldset id="circ_circulation_selectborrower">
508 <legend>Patron selection</legend>
509 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
514 <!-- BARCODE ENTRY -->
518 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
519 <div class="dialog alert">
520 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
525 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
526 <div class="col-sm-6">
527 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
528 <input type="hidden" name="restoreduedatespec" />
530 <fieldset id="circ_circulation_issue" class="lastchecked">
532 <fieldset id="circ_circulation_issue">
535 [% IF ( DisplayClearScreenButton ) %]
536 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
537 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
540 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
542 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
544 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
545 <div class="hint">Enter item barcode or keyword:</div>
547 <div class="hint">Enter item barcode:</div>
550 [% IF NEEDSCONFIRMATION %]
551 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
553 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
556 <button type="submit" class="btn btn-default">Check out</button>
558 <div id="show-circ-settings">
559 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
562 <div class="circ-settings">
564 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
565 [% IF ( SpecifyDueDate ) %]
566 <div id="specify-due-date" class="circ-setting">
567 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
568 [% IF ( duedatespec ) %]
569 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
571 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" />
573 <label for="stickyduedate"> Remember for session:</label>
574 [% IF ( stickyduedate ) %]
575 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
577 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
579 <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>
584 [% UNLESS ( noissues ) %]
585 <div id="set-automatic-renewal" class="circ-setting">
586 [% IF NEEDSCONFIRMATION %]
588 [% IF patron.autorenew_checkouts %]
589 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
590 title="Patron has opted out of auto-renewal"/>
592 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
595 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
598 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
599 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
600 [% ELSIF patron.autorenew_checkouts %]
601 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
603 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
604 title="Patron has opted out of auto-renewal"/>
608 <label for="auto_renew">Automatic renewal</label>
610 [% IF Koha.Preference('decreaseLoanHighHolds') %]
611 <div id="set_high_holds_overrride" class="circ-setting">
612 [% IF NEEDSCONFIRMATION %]
613 [% IF override_high_holds %]
614 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
616 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
619 [% IF override_high_holds %]
620 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
622 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
625 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
630 [% IF Koha.Preference('OnSiteCheckouts') %]
631 <div id="onsite_checkout-select" class="circ-setting">
633 <div class="onsite-checkout-only">
634 <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>
635 <input type="text" name="duedatespec" id="duedatespec" />
636 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
639 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
640 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
642 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
648 </div> <!-- /.circ-settings -->
650 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
651 <input type="hidden" name="branch" value="[% branch | html %]" />
652 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
654 <input type="hidden" name="charges" value="yes" />
656 </fieldset> <!-- /#circ_circulation_issue -->
659 <div class="lastchecked">
660 <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>
663 </form> <!-- /#mainform -->
664 </div> <!-- /.col-sm-6 -->
666 [% END #/IF !noissues %]
668 [% IF ( noissues ) %]
669 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
670 <div class="col-sm-6">
675 <div class="col-sm-6">
678 [% IF ( noissues ) %]
679 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
680 <div id="circmessages" class="circmessage attention">
682 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
683 <div id="circmessages" class="circmessage warning">
687 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
688 <span class="circ-hlt">Only on-site checkouts are allowed</span>
692 <div id="circmessages" class="circmessage attention">
697 [% IF ( has_modifications ) %]
698 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
699 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
700 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
705 [% IF ( warndeparture ) %]
707 <span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
708 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>
713 [% IF ( returnbeforeexpiry ) %]
715 <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
721 <span class="circ-hlt">Expiration:</span> Patron's card has expired.
723 Patron's card expired on [% expiry | $KohaDates %]
725 <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>
730 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
734 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
737 [% IF ( userdebarred ) %]
739 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
741 [% IF ( userdebarreddate ) %]
742 until [% userdebarreddate | $KohaDates %]
745 [% IF ( debarredcomment ) %]
746 with the explanation: <br/>
748 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
749 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
751 [% debarredcomment | $raw | html_line_break %]
756 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
758 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
759 <span class="override_debarment">
760 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
763 </li> <!-- /.blocker -->
764 [% END # /IF userdebarred %]
767 <li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
770 [% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %]
771 [% SET return_claims = patron.return_claims %]
772 [% IF return_claims.count > ClaimReturnedWarningThreshold %]
773 <li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span>
777 [% IF age_limitations %]
778 [% INCLUDE 'category-out-of-age-limit.inc' %]
782 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
784 [% IF ( charges_guarantors_guarantees ) %]
786 <span class="circ-hlt">Charges:</span> Patron's guarantors and their other guarantees collectively owe [% charges_guarantors_guarantees | $Price %].
788 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
792 [% IF ( charges_guarantees ) %]
794 <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
796 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
804 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
810 [% IF WaitingHolds.count %]
811 <div id="holdswaiting" class="circmessage">
812 <h4>Holds waiting:</h4>
813 [% FOREACH w IN WaitingHolds %]
816 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
817 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
818 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
819 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
820 Hold placed on [% w.reservedate | $KohaDates %].
823 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
824 [% SET expires_on = w.expirationdate %]
825 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
831 [% END # /IF WaitingHolds.count %]
834 <div id="circnotes" class="circmessage">
836 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
840 <div id="messages" class="circmessage">
843 [% FOREACH message IN messages %]
845 [% IF(message.message_type == "L") %]
846 <span class="circ-hlt">
850 [% message.message_date | $KohaDates %]
851 [% Branches.GetName( message.branchcode ) | html %]
852 [% IF message.manager_id %]
853 ( <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> )
855 <em>"[% message.message | html %]"</em>
857 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
858 <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>
863 <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>
864 </div> <!-- /.messages -->
865 </div> <!-- /#circmessages -->
866 </div> <!-- /div or div.col-sm-6 -->
867 </div> <!-- /.row -->
869 <div id="patronlists" class="toptabs">
872 [% IF ( issuecount ) %]
873 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
875 <a href="#checkouts">0 Checkouts</a>
879 [% IF relatives_issues_count %]
880 <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
884 [% IF ( holds_count ) %]
885 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
887 <a href="#reserves" id="holds-tab">0 Holds</a>
891 [% IF Koha.Preference('ArticleRequests') %]
893 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
897 [% IF Koha.Preference('ClaimReturnedLostValue') %]
899 [% IF ( patron.return_claims.count ) %]
900 <a href="#return-claims" id="return-claims-tab">
902 [% IF patron.return_claims.resolved.count == 0 %]
903 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
905 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
907 [% IF patron.return_claims.unresolved.count == 0 %]
908 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
910 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
914 <a href="#return-claims" id="return-claims-tab">
916 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
917 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
923 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
925 [% SET enrollments = patron.get_club_enrollments(1) %]
926 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
927 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
929 <a id="clubs-tab-link" href="#clubs-tab">
930 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
936 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
938 [% INCLUDE "checkouts-table.inc" %]
940 [% INCLUDE "relatives-issues-table.inc" %]
942 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
945 </div> <!-- /#clubs-tab -->
948 [% INCLUDE borrower_debarments.inc %]
951 [% IF ( holds_count ) %]
952 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
953 <input type="hidden" name="from" value="circ" />
954 <table id="holds-table" style="width: 100% !Important;">
971 <fieldset class="action">
972 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
974 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
975 [% IF hold_cancellation %]
976 <select name="cancellation-reason">
977 <option value="">No reason given</option>
978 [% FOREACH reason IN hold_cancellation %]
979 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
986 [% IF Koha.Preference('SuspendHoldsIntranet') %]
987 <fieldset class="action">
988 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
989 <input type="hidden" name="from" value="circ" />
990 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
991 <input type="submit" value="Suspend all holds" />
993 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
994 <label for="suspend_until">until</label>
995 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker futuredate"/>
996 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1001 <fieldset class="action">
1002 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1003 <input type="hidden" name="from" value="circ" />
1004 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
1005 <input type="hidden" name="suspend" value="0" />
1006 <input type="submit" value="Resume all suspended holds" />
1009 [% END # /IF SuspendHoldsIntranet %]
1011 [% ELSE # IF holds_count %]
1012 <p>Patron has nothing on hold.</p>
1013 [% END # /IF holds_count %]
1014 </div> <!-- /#reserves -->
1016 [% IF Koha.Preference('ClaimReturnedLostValue') %]
1017 [% INCLUDE 'patron-return-claims.inc' %]
1020 [% IF Koha.Preference('ArticleRequests') %]
1021 [% INCLUDE 'patron-article-requests.inc' %]
1024 </div> <!-- /#patronlists -->
1025 [% ELSIF borrowernumber # IF patron %]
1026 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
1027 [% END # /IF patron %]
1029 [% END #/IF borrowers %]
1031 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1033 [% IF Koha.Preference('CircSidebar') %]
1034 [% UNLESS ( borrowers ) %]
1035 [% IF not( borrowernumber and patron ) %]
1036 <div class="col-sm-2 col-sm-pull-10">
1038 [% INCLUDE 'circ-nav.inc' %]
1040 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1045 [% UNLESS ( borrowers ) %]
1046 [% IF borrowernumber and patron %]
1047 <div class="col-sm-2 col-sm-pull-10">
1049 [% INCLUDE 'circ-menu.inc' %]
1051 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
1055 </div> <!-- /.row -->
1059 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
1060 <div class="modal-dialog">
1061 <div class="modal-content">
1062 <div class="modal-header">
1063 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
1065 <div class="modal-body">
1066 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
1068 </div> <!-- /.modal-content -->
1069 </div> <!-- /.modal-dialog -->
1070 </div> <!-- /#barcodeSubmittedModal -->
1072 [% MACRO jsinclude BLOCK %]
1073 [% INCLUDE 'calendar.inc' %]
1074 [% INCLUDE 'datatables.inc' %]
1075 [% INCLUDE 'columns_settings.inc' %]
1076 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
1077 [% INCLUDE 'timepicker.inc' %]
1078 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
1080 /* Set some variable needed in circulation.js */
1081 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1082 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1083 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1084 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
1085 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
1086 var interface = "[% interface | html %]";
1087 var theme = "[% theme | html %]";
1088 var borrowernumber = "[% patron.borrowernumber | html %]";
1089 var branchcode = "[% branch | html %]";
1090 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1091 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1092 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1093 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1094 var script = "circulation";
1095 var relatives_borrowernumbers = new Array();
1096 [% FOREACH b IN relatives_borrowernumbers %]
1097 relatives_borrowernumbers.push("[% b | html %]");
1099 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1101 [% Asset.js("js/pages/circulation.js") | $raw %]
1102 [% Asset.js("js/checkouts.js") | $raw %]
1103 [% Asset.js("js/holds.js") | $raw %]
1104 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1106 columns_settings_issues_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1107 columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1109 [% IF borrowernumber and patron %]
1110 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1111 Cookies.remove("holdfor", { path: '/' });
1114 Cookies.remove("holdfor", { path: '/' });
1117 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1120 function toggle_onsite_checkout(){
1121 if ( $("#onsite_checkout").prop('checked') ) {
1122 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1123 [% IF !Koha.Preference('SpecifyDueDate') %]
1124 $("#duedatespec").datetimepicker('destroy');
1127 $("#duedatespec").datetimepicker({
1128 onClose: function(dateText, inst) {
1129 if (validate_date(dateText, inst) ) {
1130 $("#barcode").focus();
1135 }).on("change", function(e, value) {
1136 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1141 function Dopop(link) {
1142 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1144 $(document).ready(function() {
1145 $('#mainform').on('submit',function() {
1146 if ($("#barcode") && $("#barcode").val()) {
1147 $('#barcode').on('keypress',function(event) {
1148 $('#barcodeSubmittedModal').modal();
1149 event.preventDefault(); }
1154 if ( $('#clubs-tab').length ) {
1155 $('#clubs-tab-link').on('click', function() {
1156 $('#clubs-tab').text(_("Loading..."));
1157 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1161 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1162 // listen submit to trigger qslip on empty checkout
1163 $('#mainform').bind('submit',function() {
1164 if ($('#barcode').val() == '') {
1165 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1169 toggle_onsite_checkout();
1170 $("#onsite_checkout").click(function(){
1171 toggle_onsite_checkout();
1175 [% IF !override_high_holds %]
1176 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1177 if ('[% duedatespec | html %]' === '') {
1178 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1180 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1184 $("#override_high_holds_tmp").on( 'change', function() {
1185 if ( this.checked ) {
1186 $("input[name=duedatespec]:hidden").val('');
1192 [% INCLUDE 'str/members-menu.inc' %]
1193 [% Asset.js("js/members-menu.js") | $raw %]
1196 [% INCLUDE 'intranet-bottom.inc' %]