7 [% USE ColumnsSettings %]
10 [% USE AuthorisedValues %]
11 [% SET footerjs = 1 %]
12 [% INCLUDE 'doc-head-open.inc' %]
13 [% SET destination = "circ" %]
14 <title>Koha › Circulation
16 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %]
19 [% INCLUDE 'doc-head-close.inc' %]
22 <body id="circ_circulation" class="circ">
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'circ-search.inc' %]
27 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
29 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
31 <strong>Checkouts</strong>
34 [% IF ( $borrowers ) %]
35 <div id="doc" class="yui-t7">
41 <div id="doc3" class="yui-t2">
49 [% INCLUDE 'members-toolbar.inc' %]
52 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
53 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %]
56 <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>
59 [% IF additional_materials %]
60 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
61 [% additional_materials | html %]
65 [% IF ( alert.ITEM_LOST ) %]
66 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
69 [% IF ( alert.OTHER_CHARGES ) %]
70 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
73 [% IF alert.HIGHHOLDS %]
74 <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>
77 [% IF ( nopermission ) %]
78 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
81 [% 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 ) %]
93 <li>Age restriction [% AGE_RESTRICTION | html %].
94 [% IF CAN_user_circulate_force_checkout %]
101 <li>The patron has a debt of [% DEBT | $Price %].</li>
104 [% IF ( DEBT_GUARANTEES ) %]
105 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
108 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
109 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
112 [% IF ( RENEW_ISSUE ) %]
113 <li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
116 [% IF ( RESERVE_WAITING ) %]
117 <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>
120 [% IF ( RESERVED ) %]
121 <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>
124 [% IF ( ISSUED_TO_ANOTHER ) %]
125 <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 %]).
126 [% IF CAN_user_circulate_force_checkout %]
127 Check in and check out?
132 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
133 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
136 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
137 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
140 [% IF ( BORRNOTSAMEBRANCH ) %]
141 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
144 [% IF ( PATRON_CANT ) %]
145 <li>This patron can't check out this item per library circulation policy.</li>
148 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
149 <li>No circulation rule is defined for this patron and itemtype combination.</li>
152 [% IF ( NOT_FOR_LOAN_FORCING ) %]
154 [% IF ( itemtype_notforloan ) %]
155 Item type is normally not for loan.
156 [% ELSIF ( item_notforloan ) %]
157 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
158 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
160 [% IF CAN_user_circulate_force_checkout %]
166 [% IF ( USERBLOCKEDOVERDUE ) %]
167 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
168 [% IF CAN_user_circulate_force_checkout %]
174 [% IF ( ITEM_LOST ) %]
175 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
176 [% IF CAN_user_circulate_force_checkout %]
183 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
187 <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>
190 [% IF BIBLIO_ALREADY_ISSUED %]
192 Patron has already checked out another item from this record.
193 [% IF CAN_user_circulate_force_checkout %]
200 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
201 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
202 <input type="hidden" name="restoreduedatespec" />
204 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
207 <p class="circ-override-high-holds">
208 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
209 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
213 [% IF ( RESERVED ) %]
215 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
216 <label for="cancelreserve">Cancel hold</label>
220 [% IF ( RESERVE_WAITING ) %]
222 <label for="cancelreserve">Cancel hold</label>
223 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
224 <label for="revertreserve">Revert waiting status</label>
225 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
229 <input type="hidden" name="barcode" value="[% barcode | html %]" />
230 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
231 <input type="hidden" name="issueconfirmed" value="1" />
232 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
233 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
234 [% IF ( INVALID_DATE ) %]
236 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" />
237 <label for="duedatespec">Due date</label>
240 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
242 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
243 <input type="hidden" name="branch" value="[% branch | html %]" />
244 [% IF ( RENEW_ISSUE ) %]
245 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
247 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
249 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
250 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
254 [% IF ( RESERVED ) %]
255 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
256 <input type="hidden" name="restoreduedatespec" />
257 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
258 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
259 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
260 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
264 [% IF ( RESERVE_WAITING ) %]
265 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
266 <input type="hidden" name="restoreduedatespec" />
267 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
268 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
269 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
270 <button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
274 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
275 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
276 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
277 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
278 <input type="hidden" name="restoreduedatespec" />
279 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
280 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
281 [% IF ( RENEW_ISSUE ) %]
282 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
284 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
287 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
291 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
292 [% UNLESS noissues %]
293 <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>
297 [% END %] <!-- NEEDSCONFIRMATION -->
299 [% IF ( IMPOSSIBLE ) %]
302 <div id="circ_impossible" class="dialog alert audio-alert-warning">
303 [% IF ( UNKNOWN_BARCODE ) %]
304 <h3>Barcode not found</h3>
306 <!-- RESULT OF ISSUING REQUEST -->
309 <li>Local use recorded</li>
312 [% IF ( INVALID_DATE ) %]
313 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
316 [% IF ( UNKNOWN_BARCODE ) %]
317 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
320 [% IF ( FALLBACK ) %]
322 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
324 <div>No items were found by searching.</div>
328 [% IF ( fast_cataloging ) %]
329 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
330 <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>
338 [% IF ( NOT_FOR_LOAN ) %]
340 [% IF ( itemtype_notforloan ) %]
341 Item type not for loan.
342 [% ELSIF ( item_notforloan ) %]
343 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
344 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
349 [% IF ( WTHDRAWN ) %]
351 <span>Item has been withdrawn</span>
352 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
353 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
357 [% IF ( RESTRICTED ) %]
358 <li>Item is restricted</li>
362 <li>Patron's address is in doubt</li>
365 [% IF ( CARD_LOST ) %]
366 <li>Patron's card is lost</li>
369 [% IF ( DEBARRED ) %]
370 <li>Patron is restricted</li>
373 [% IF ( NO_MORE_RENEWALS ) %]
374 <li>No more renewals possible</li>
377 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
378 <li>This item can not be renewed, it's an on-site checkout</li>
381 [%IF ( AGE_RESTRICTION ) %]
382 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
386 <li>Patron's card is expired</li>
389 [% IF ( TOO_MANY ) %]
390 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
393 [% IF ( ITEMNOTSAMEBRANCH ) %]
394 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
397 [% IF RETURN_IMPOSSIBLE %]
398 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
401 [% IF ( USERBLOCKEDWITHENDDATE ) %]
402 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
405 [% IF ( USERBLOCKEDNOENDDATE ) %]
406 <li>Patron has an indefinite restriction.</li>
409 [% IF ( USERBLOCKEDOVERDUE ) %]
410 <li>Checkouts are BLOCKED because patron has overdue items.</li>
414 [% IF (forceallow) %]
415 <li>Restriction overridden temporarily.</li>
420 [% IF ( FALLBACK ) %]
424 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
425 <div class="modal-dialog modal-wide" role="document">
426 <div class="modal-content">
427 <div class="modal-header">
428 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
429 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
431 <div class="modal-body">
432 <table class="table_borrowers">
433 [% FOREACH book IN options %]
436 <a class="popup" target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% book.biblionumber | html %]">[% book.title | html %]</a>
437 [% book.barcode | html %]
440 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
441 [% IF (forceallow) %]
442 <input type="hidden" name="forceallow" value="1">
444 <input type="hidden" name="restoreduedatespec" />
445 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
446 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
447 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
448 <input type="hidden" name="branch" value="[% branch | html %]" />
449 <input type="hidden" name="barcode" value="[% book.barcode | html %]" />
450 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
457 <div class="modal-footer">
458 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
467 [% IF (forceallow) %]
468 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
470 [% END %] <!-- /impossible -->
472 <span class="audio-alert-success"></span>
475 <p>Item checked out</p>
479 [% INCLUDE 'patron-toolbar.inc' %]
481 No patron matched <span class="ex">[% message | html %]</span>
485 [% IF ( borrowers ) %]
486 [% INCLUDE 'patron-toolbar.inc' %]
488 <fieldset id="circ_circulation_selectborrower">
489 [% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %]
493 <!-- BARCODE ENTRY -->
498 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
499 <div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div>
502 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
503 <div class="yui-u first">
505 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
506 <input type="hidden" name="restoreduedatespec" />
508 <fieldset id="circ_circulation_issue" class="lastchecked">
510 <fieldset id="circ_circulation_issue">
512 [% IF ( DisplayClearScreenButton ) %]
513 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
514 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
517 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
519 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
521 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
522 <div class="hint">Enter item barcode or keyword:</div>
524 <div class="hint">Enter item barcode:</div>
527 [% IF NEEDSCONFIRMATION %]
528 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
530 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
532 <button type="submit" class="btn btn-default">Check out</button>
534 <div id="show-checkout-settings">
535 <a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
538 <div class="checkout-settings">
540 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
541 [% IF ( SpecifyDueDate ) %]
542 <div id="specify-due-date" class="checkout-setting">
543 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
544 [% IF ( duedatespec ) %]
545 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" />
547 <input type="text" size="13" id="duedatespec" name="duedatespec" value="" />
549 <label for="stickyduedate"> Remember for session:</label>
550 [% IF ( stickyduedate ) %]
551 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
553 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
555 <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>
560 [% UNLESS ( noissues ) %]
561 <div id="set-automatic-renewal" class="checkout-setting">
562 [% IF NEEDSCONFIRMATION %]
563 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
565 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
568 <label for="auto_renew">Automatic renewal</label>
570 [% IF Koha.Preference('decreaseLoanHighHolds') %]
571 <div id="set_high_holds_overrride" class="checkout-setting">
572 [% IF NEEDSCONFIRMATION %]
573 [% IF override_high_holds %]
574 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
576 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
579 [% IF override_high_holds %]
580 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
582 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
585 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
590 [% IF Koha.Preference('OnSiteCheckouts') %]
591 <div id="onsite_checkout-select" class="checkout-setting">
593 <div class="onsite-checkout-only">
594 <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>
595 <input type="text" name="duedatespec" id="duedatespec" />
596 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
599 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
604 </div> <!-- /.checkout-settings -->
606 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
607 <input type="hidden" name="branch" value="[% branch | html %]" />
608 <input type="hidden" name="print" value="maybe" />
609 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
611 <input type="hidden" name="charges" value="yes" />
615 <div class="lastchecked">
616 <p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates as_due_date => 1 %]</p>
621 [% END %]<!-- /unless noissues -->
623 [% IF ( noissues ) %]
624 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
633 [% IF ( noissues ) %]
634 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
635 <div id="circmessages" class="circmessage attention">
637 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
638 <div id="circmessages" class="circmessage warning">
642 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
643 <span class="circ-hlt">Only on-site checkouts are allowed</span>
647 <div id="circmessages" class="circmessage attention">
653 [% IF ( has_modifications ) %]
654 <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
655 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
656 <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
661 [% IF ( warndeparture ) %]
662 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
663 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 %]&categorycode=[% categorycode | html %]">Edit details</a>
668 [% IF ( returnbeforeexpiry ) %]
669 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
670 expiry date is before the date due, the date due will be set to the expiry date
675 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
676 [% IF ( expiry ) %]Patron's card expired on [% expiry | $KohaDates %][% END %] <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 %]&categorycode=[% categorycode | html %]">Edit details</a>
682 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
686 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
689 [% IF ( userdebarred ) %]
691 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
693 [% IF ( userdebarreddate ) %]
694 until [% userdebarreddate | $KohaDates %]
697 [% IF ( debarredcomment ) %]
698 with the explanation: <br/><i>
699 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
700 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
702 [% debarredcomment | $raw | html_line_break %]
707 <a class="btn btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
708 [% IF (noissues && patron && CAN_user_circulate_force_checkout) %]
709 <span class="override_debarment">
710 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default">Override restriction temporarily</a>
716 [% IF ( odues ) %]<li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li>
720 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
723 [% IF ( charges_guarantees ) %]
725 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
727 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
735 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %]
742 [% IF WaitingHolds.count %]
743 <div id="holdswaiting" class="circmessage">
744 <h4>Holds waiting:</h4>
745 [% FOREACH w IN WaitingHolds %]
748 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
749 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
750 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
751 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
752 Hold placed on [% w.reservedate | $KohaDates %].
755 [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]
756 [% SET expires_on = w.expirationdate %]
757 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
766 <div id="circnotes" class="circmessage">
768 <p><span class="circ-hlt">[% notesmsg | $raw %]</span></p>
772 <!-- /If notes -->[% END %]
774 <div id="messages" class="circmessage">
777 [% FOREACH message IN messages %]
779 [% IF(message.message_type == "L") %]
780 <span class="circ-hlt">
784 [% message.message_date | $KohaDates %]
785 [% Branches.GetName( message.branchcode ) | html %]
786 [% IF message.manager_id %]
787 ( <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> )
789 <i>"[% message.message | html %]"</i>
791 [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %]
792 <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(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a>
797 <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>
803 <div class="yui-g"><div id="patronlists" class="toptabs">
807 [% IF ( issuecount ) %]
808 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
810 <a href="#checkouts">0 Checkouts</a>
814 [% IF relatives_issues_count %]
815 <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
819 [% IF ( holds_count ) %]
820 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
822 <a href="#reserves" id="holds-tab">0 Holds</a>
826 [% IF Koha.Preference('ArticleRequests') %]
828 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a>
832 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
834 [% SET enrollments = patron.get_club_enrollments(1) %]
835 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
836 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
838 <a id="clubs-tab-link" href="#clubs-tab">
839 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
846 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
848 [% INCLUDE "checkouts-table.inc" %]
850 [% IF ( relatives_issues_count ) %]
851 <div id="relatives-issues">
852 <table id="relatives-issues-table">
855 <th scope="col">Due date (unformatted, hidden)</th>
856 <th scope="col">Due date</th>
857 <th scope="col">Title</th>
858 <th scope="col">Item type</th>
859 <th scope="col">Collection code</th>
860 <th scope="col">Location</th>
861 <th scope="col">Checked out on</th>
862 <th scope="col">Checked out from</th>
863 <th scope="col">Call no</th>
864 <th scope="col">Charge</th>
865 <th scope="col">Fine</th>
866 <th scope="col">Price</th>
867 <th scope="col">Patron</th>
874 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
880 [% INCLUDE borrower_debarments.inc %]
883 [% IF ( holds_count ) %]
884 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
885 <input type="hidden" name="from" value="circ" />
886 <table id="holds-table" style="width: 100% !Important;">
903 <fieldset class="action">
904 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
908 [% IF Koha.Preference('SuspendHoldsIntranet') %]
909 <fieldset class="action">
910 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
911 <input type="hidden" name="from" value="circ" />
912 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
913 <input type="submit" value="Suspend all holds" />
915 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
916 <label for="suspend_until">until</label>
917 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/>
918 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
923 <fieldset class="action">
924 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
925 <input type="hidden" name="from" value="circ" />
926 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
927 <input type="hidden" name="suspend" value="0" />
928 <input type="submit" value="Resume all suspended holds" />
931 [% END # IF SuspendHoldsIntranet %]
934 <p>Patron has nothing on hold.</p>
936 </div> <!-- reservesloop -->
938 [% IF Koha.Preference('ArticleRequests') %]
939 [% INCLUDE 'patron-article-requests.inc' %]
942 [% ELSIF borrowernumber %]
943 <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
947 [% IF Koha.Preference('CircSidebar') %]
948 [% UNLESS ( borrowers ) %]
949 [% IF not( borrowernumber and patron ) %]
950 <div class="yui-b noprint">
951 [% INCLUDE 'circ-nav.inc' %]
958 [% UNLESS ( borrowers ) %]
959 [% IF borrowernumber and patron %]
961 [% INCLUDE 'circ-menu.inc' %]
967 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
968 <div class="modal-dialog">
969 <div class="modal-content">
970 <div class="modal-header">
971 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
974 <div class="modal-body">
975 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
981 [% MACRO jsinclude BLOCK %]
982 [% INCLUDE 'strings.inc' %]
983 [% INCLUDE 'calendar.inc' %]
984 [% INCLUDE 'datatables.inc' %]
985 [% INCLUDE 'columns_settings.inc' %]
986 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
987 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
988 [% INCLUDE 'timepicker.inc' %]
989 [% Asset.js("lib/jquery/plugins/jquery.dataTables.rowGrouping.js") | $raw %]
990 [% Asset.js("js/pages/circulation.js") | $raw %]
991 [% Asset.js("js/checkouts.js") | $raw %]
992 [% Asset.js("js/holds.js") | $raw %]
993 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
994 <script type="text/javascript">
995 /* Set some variable needed in circulation.js */
996 var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
997 var interface = "[% interface | html %]";
998 var theme = "[% theme | html %]";
999 var borrowernumber = "[% patron.borrowernumber | html %]";
1000 var branchcode = "[% branch | html %]";
1001 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1002 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1003 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1004 var script = "circulation";
1005 var relatives_borrowernumbers = new Array();
1006 [% FOREACH b IN relatives_borrowernumbers %]
1007 relatives_borrowernumbers.push("[% b | html %]");
1010 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
1011 var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
1013 columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1014 columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1016 [% IF borrowernumber and patron %]
1017 if($.cookie("holdfor") != [% patron.borrowernumber | html %]){
1018 $.removeCookie("holdfor", { path: '/' });
1021 $.removeCookie("holdfor", { path: '/' });
1024 [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
1027 function toggle_onsite_checkout(){
1028 if ( $("#onsite_checkout").prop('checked') ) {
1029 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1030 [% IF !Koha.Preference('SpecifyDueDate') %]
1031 $("#duedatespec").datetimepicker('destroy');
1034 $("#duedatespec").datetimepicker({
1035 onClose: function(dateText, inst) {
1036 if (validate_date(dateText, inst) ) {
1037 $("#barcode").focus();
1042 }).on("change", function(e, value) {
1043 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1048 function Dopop(link) {
1049 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1051 $(document).ready(function() {
1052 $('#mainform').on('submit',function() {
1053 if ($("#barcode") && $("#barcode").val()) {
1054 $('#barcode').on('keypress',function(event) {
1055 $('#barcodeSubmittedModal').modal();
1056 event.preventDefault(); }
1061 if ( $('#clubs-tab').length ) {
1062 $('#clubs-tab-link').on('click', function() {
1063 $('#clubs-tab').text(_("Loading..."));
1064 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1068 [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
1069 // listen submit to trigger qslip on empty checkout
1070 $('#mainform').bind('submit',function() {
1071 if ($('#barcode').val() == '') {
1072 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1076 toggle_onsite_checkout();
1077 $("#onsite_checkout").click(function(){
1078 toggle_onsite_checkout();
1081 $("#suspend_until").datepicker({
1082 onClose: function(dateText, inst) {
1083 validate_date(dateText, inst);
1085 minDate: 1, // require that hold suspended until date is after today
1089 [% IF !override_high_holds %]
1090 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1091 if ('[% duedatespec | html %]' === '') {
1092 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1094 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1098 $("#override_high_holds_tmp").on( 'change', function() {
1099 if ( this.checked ) {
1100 $("input[name=duedatespec]:hidden").val('');
1106 [% INCLUDE 'str/members-menu.inc' %]
1107 [% Asset.js("js/members-menu.js") | $raw %]
1110 [% INCLUDE 'intranet-bottom.inc' %]