8 [% USE TablesSettings %]
11 [% USE AuthorisedValues %]
12 [% SET footerjs = 1 %]
13 [% INCLUDE 'doc-head-open.inc' %]
14 [% Asset.css("lib/jquery/plugins/rowGroup/stylesheets/rowGroup.dataTables.min.css") | $raw %]
15 [% SET destination = "circ" %]
18 Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] › [% END %]
20 Circulation › Koha
22 [% INCLUDE 'doc-head-close.inc' %]
25 <body id="circ_circulation" class="circ">
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'circ-search.inc' %]
30 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
33 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
36 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
41 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a>
44 <a href="#" aria-current="page">
45 [% INCLUDE 'patron-title.inc' %]
50 <a href="#" aria-current="page">
58 <div class="main container-fluid">
61 <div class="col-sm-10 col-sm-push-2">
64 [% INCLUDE 'members-toolbar.inc' %]
67 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
68 [% IF ( was_renewed ) %]
69 <div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>
73 <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>
76 [% IF ADDITIONAL_MATERIALS && !NEEDSCONFIRMATION %]
77 <div id="materials" class="dialog message">Note about the accompanying materials: [% ADDITIONAL_MATERIALS | html %]
81 [% IF ( alert.ITEM_LOST ) %]
82 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div>
85 [% IF ( alert.OTHER_CHARGES ) %]
86 <div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | $Price %]</div>
89 [% IF alert.HIGHHOLDS %]
90 <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>
93 [% IF alert.RETURNED_FROM_ANOTHER %]
94 <div class="dialog alert">Item was checked out to [% INCLUDE 'patron-title.inc' patron = alert.RETURNED_FROM_ANOTHER.patron %] and was returned automatically.</div>
97 [% IF ( nopermission ) %]
98 <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div>
101 [% IF ( NEEDSCONFIRMATION ) %]
102 <div id="circ_needsconfirmation" class="dialog alert audio-alert-action focus" tabindex="-1">
103 [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %]
104 <h3>Please confirm checkout</h3>
106 <h3>Cannot check out</h3>
110 [%IF ( AGE_RESTRICTION ) %]
112 Age restriction [% AGE_RESTRICTION | html %].
113 [% IF CAN_user_circulate_force_checkout %]
121 <li>The patron has a debt of [% DEBT | $Price %].</li>
124 [% IF ( DEBT_GUARANTEES ) %]
125 <li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li>
128 [% IF ( DEBT_GUARANTORS ) %]
129 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
132 [% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
133 <li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li>
136 [% IF ( RENEW_ISSUE ) %]
137 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li>
140 [% IF ( RESERVE_WAITING ) %]
141 <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>
144 [% IF ( TRANSFERRED ) %]
145 <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>
148 [% IF ( PROCESSING ) %]
149 <li>Item <em>[% getTitleMessageIteminfo | html %]</em> ([% getBarcodeMessageIteminfo | html %]) is being processed for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %]</li>
152 [% IF ( RESERVED ) %]
153 <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>
156 [% IF ( ISSUED_TO_ANOTHER ) %]
157 <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 %]).
158 [% IF CAN_user_circulate_force_checkout %]
159 Check in and check out?
164 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %]
165 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
168 [% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %]
169 <li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li>
172 [% IF ( BORRNOTSAMEBRANCH ) %]
173 <li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li>
176 [% IF ( PATRON_CANT ) %]
177 <li>This patron can't check out this item per library circulation policy.</li>
180 [% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %]
181 <li>No circulation rule is defined for this patron and itemtype combination.</li>
184 [% IF ( NOT_FOR_LOAN_FORCING ) %]
186 [% IF ( itemtype_notforloan ) %]
187 Item type is normally not for loan.
188 [% ELSIF ( item_notforloan ) %]
189 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
190 Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
192 [% IF CAN_user_circulate_force_checkout %]
198 [% IF ( USERBLOCKEDOVERDUE ) %]
199 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
200 [% IF CAN_user_circulate_force_checkout %]
206 [% IF ( ITEM_LOST ) %]
207 <li>This item has been lost with a status of "[% ITEM_LOST | html %]".
208 [% IF CAN_user_circulate_force_checkout %]
215 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li>
219 <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>
222 [% IF BIBLIO_ALREADY_ISSUED %]
224 Patron has already checked out another item from this record.
225 [% IF CAN_user_circulate_force_checkout %]
231 [% IF ADDITIONAL_MATERIALS %]
233 Please confirm that the accompanying materials are present: [% ADDITIONAL_MATERIALS | html %]
238 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
239 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
240 <input type="hidden" name="restoreduedatespec" />
242 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
245 <p class="circ-override-high-holds">
246 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
247 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
251 [% IF ( RESERVED ) %]
253 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
254 <label for="cancelreserve">Cancel hold</label>
258 [% IF ( RESERVE_WAITING ) %]
260 <label for="cancelreserve">Cancel hold</label>
261 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
262 <label for="revertreserve">Revert waiting status</label>
263 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
267 [% IF ( TRANSFERRED ) %]
269 <label for="cancelreserve">Cancel hold</label>
270 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
271 <label for="revertreserve">Revert hold transfer status</label>
272 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
276 [% IF ( PROCESSING ) %]
278 <label for="cancelreserve">Cancel hold</label>
279 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
280 <label for="revertreserve">Revert In Processing status</label>
281 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
285 <input type="hidden" name="barcode" value="[% barcode | html %]" />
286 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
287 <input type="hidden" name="issueconfirmed" value="1" />
288 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
290 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
292 [% IF ( INVALID_DATE ) %]
294 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
295 <label for="duedatespec">Due date</label>
298 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
301 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
302 <input type="hidden" name="branch" value="[% branch | html %]" />
304 [% IF ( RENEW_ISSUE ) %]
305 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
307 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
310 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
311 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
313 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
315 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
316 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
317 <input type="hidden" name="restoreduedatespec" />
318 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
319 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
320 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
321 <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>
325 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
326 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
327 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
328 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
329 <input type="hidden" name="restoreduedatespec" />
330 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
331 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
332 [% IF ( RENEW_ISSUE ) %]
333 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
335 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
338 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
342 [% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %]
343 [% UNLESS noissues %]
344 <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>
347 </div> <!-- /#circ_needsconfirmation -->
348 [% END # /NEEDSCONFIRMATION %]
350 [% IF ( IMPOSSIBLE ) %]
351 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
352 [% IF ( UNKNOWN_BARCODE ) %]
353 <h3>Barcode not found</h3>
356 <!-- RESULT OF ISSUING REQUEST -->
358 [% IF ( DEBT_GUARANTORS ) %]
359 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
363 <li>Local use recorded</li>
366 [% IF ( INVALID_DATE ) %]
367 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
370 [% IF ( UNKNOWN_BARCODE ) %]
371 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
373 [% IF ( FALLBACK ) %]
375 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
377 <div>No items were found by searching.</div>
381 [% IF ( fast_cataloging ) %]
382 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
383 <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>
390 [% IF ( NOT_FOR_LOAN ) %]
392 [% IF ( itemtype_notforloan ) %]
393 Item type not for loan.
394 [% ELSIF ( item_notforloan ) %]
395 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
396 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
401 [% IF ( WTHDRAWN ) %]
403 <span>Item has been withdrawn</span>
404 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
405 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
409 [% IF ( RESTRICTED ) %]
410 <li>Item is restricted</li>
414 <li>Patron's address is in doubt</li>
417 [% IF ( CARD_LOST ) %]
418 <li>Patron's card is lost</li>
421 [% IF ( DEBARRED ) %]
422 <li>Patron is restricted</li>
425 [% IF ( NO_MORE_RENEWALS ) %]
426 <li>No more renewals possible</li>
429 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
430 <li>This item can not be renewed, it's an on-site checkout</li>
433 [%IF ( AGE_RESTRICTION ) %]
434 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
438 <li>Patron's card is expired</li>
441 [% IF ( TOO_MANY ) %]
442 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
445 [% IF ( ITEMNOTSAMEBRANCH ) %]
446 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
449 [% IF RETURN_IMPOSSIBLE %]
450 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
453 [% IF ( USERBLOCKEDWITHENDDATE ) %]
454 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
457 [% IF ( USERBLOCKEDNOENDDATE ) %]
458 <li>Patron has an indefinite restriction.</li>
461 [% IF ( USERBLOCKEDOVERDUE ) %]
462 <li>Checkouts are BLOCKED because patron has overdue items.</li>
466 [% IF (forceallow) %]
467 <li>Restriction overridden temporarily.</li>
470 </div> <!-- /#circ_impossible -->
472 [% IF ( FALLBACK ) %]
475 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
476 <div class="modal-dialog modal-wide" role="document">
477 <div class="modal-content">
478 <div class="modal-header">
479 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
480 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
482 <div class="modal-body">
483 <table class="table_borrowers">
490 <th>Inventory number</th>
491 <th>Serial enumeration</th>
493 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
498 [% FOREACH item IN options %]
501 <a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | html %]">[% item.biblio.title | html %] <i class="fa fa-window-restore"></i></a>
504 [% item.barcode | html %]
506 <td>[% item.itemcallnumber | html %]</th>
507 <td>[% item.copynumber | html %]</th>
508 <td>[% item.stocknumber| html %]</th>
509 <td>[% item.enumchron| html %]</th>
511 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
513 [% IF ( item_level_itypes ) %]
515 [% ItemTypes.GetDescription( item.itype ) | html %]
519 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
520 [% IF (forceallow) %]
521 <input type="hidden" name="forceallow" value="1">
523 <input type="hidden" name="restoreduedatespec" />
524 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
525 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
526 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
527 <input type="hidden" name="branch" value="[% branch | html %]" />
528 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
529 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
530 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
531 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
538 </div> <!-- /.modal-body -->
539 <div class="modal-footer">
540 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
542 </div> <!-- /.modal-content -->
543 </div> <!-- /.modal-dialog.modal-wide -->
544 </div> <!-- /#itemSearchFallback -->
545 [% END # /IF options %]
546 [% END # /IF FALLBACK %]
548 [% ELSE # IF IMPOSSIBLE %]
549 [% IF (forceallow) %]
550 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
552 [% END # /IF IMPOSSIBLE %]
554 <span class="audio-alert-success"></span>
557 <p>Item checked out</p>
561 [% INCLUDE 'patron-toolbar.inc' %]
562 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
565 <!-- BARCODE ENTRY -->
569 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
570 <div class="dialog alert">
571 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
576 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
577 <div class="col-sm-6">
578 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
579 <input type="hidden" name="restoreduedatespec" />
581 <fieldset id="circ_circulation_issue" class="lastchecked">
583 <fieldset id="circ_circulation_issue">
586 [% IF ( DisplayClearScreenButton ) %]
587 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
588 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
591 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
593 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
595 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
596 <div class="hint">Enter item barcode or keyword:</div>
598 <div class="hint">Enter item barcode:</div>
601 [% IF NEEDSCONFIRMATION %]
602 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
604 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
607 <button type="submit" class="btn btn-default">Check out</button>
609 <div id="show-circ-settings">
610 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
613 <div class="circ-settings">
615 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
616 [% IF ( SpecifyDueDate ) %]
617 <div id="specify-due-date" class="circ-setting">
618 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
619 [% IF ( duedatespec ) %]
620 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
622 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" />
624 <label for="stickyduedate"> Remember for session:</label>
625 [% IF ( stickyduedate ) %]
626 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
628 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
634 [% UNLESS ( noissues ) %]
635 <div id="set-automatic-renewal" class="circ-setting">
636 [% IF NEEDSCONFIRMATION %]
638 [% IF patron.autorenew_checkouts %]
639 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
640 title="Patron has opted out of auto-renewal"/>
642 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
645 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
648 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
649 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
650 [% ELSIF patron.autorenew_checkouts %]
651 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
653 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
654 title="Patron has opted out of auto-renewal"/>
658 <label for="auto_renew">Automatic renewal</label>
660 [% IF Koha.Preference('decreaseLoanHighHolds') %]
661 <div id="set_high_holds_overrride" class="circ-setting">
662 [% IF NEEDSCONFIRMATION %]
663 [% IF override_high_holds %]
664 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
666 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
669 [% IF override_high_holds %]
670 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
672 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
675 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
680 [% IF Koha.Preference('OnSiteCheckouts') %]
681 <div id="onsite_checkout-select" class="circ-setting">
683 <div class="onsite-checkout-only">
684 <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>
685 <input type="text" name="duedatespec" id="duedatespec" />
686 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
689 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
690 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
692 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
698 </div> <!-- /.circ-settings -->
700 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
701 <input type="hidden" name="branch" value="[% branch | html %]" />
702 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
704 <input type="hidden" name="charges" value="yes" />
706 </fieldset> <!-- /#circ_circulation_issue -->
709 <div class="lastchecked">
710 <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>
713 </form> <!-- /#mainform -->
714 </div> <!-- /.col-sm-6 -->
716 [% END #/IF !noissues %]
718 [% IF ( noissues ) %]
719 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
720 <div class="col-sm-6">
725 <div class="col-sm-6">
728 [% IF ( noissues ) %]
729 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
730 <div id="circmessages" class="circmessage attention">
732 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
733 <div id="circmessages" class="circmessage warning">
737 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
738 <span class="circ-hlt">Only on-site checkouts are allowed</span>
742 <div id="circmessages" class="circmessage attention">
745 [% INCLUDE 'patron_messages.inc' %]
747 </div> <!-- /#circmessages -->
748 </div> <!-- /div or div.col-sm-6 -->
749 </div> <!-- /.row -->
751 <div id="patronlists" class="toptabs">
754 [% IF ( issuecount ) %]
755 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
757 <a href="#checkouts">0 Checkouts</a>
761 [% IF relatives_issues_count %]
762 <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
766 [% IF ( holds_count ) %]
767 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
769 <a href="#reserves" id="holds-tab">0 Holds</a>
773 [% IF Koha.Preference('ArticleRequests') %]
774 [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
776 <a href="#article-requests" id="article-requests-tab"> [% current_article_requests.count | html %] Article requests</a>
780 [% IF Koha.Preference('ClaimReturnedLostValue') %]
782 [% IF ( patron.return_claims.count ) %]
783 <a href="#return-claims" id="return-claims-tab">
785 [% IF patron.return_claims.resolved.count == 0 %]
786 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
788 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
790 [% IF patron.return_claims.unresolved.count == 0 %]
791 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
793 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
797 <a href="#return-claims" id="return-claims-tab">
799 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
800 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
806 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
808 [% SET enrollments = patron.get_club_enrollments(1) %]
809 [% SET enrollable = patron.get_enrollable_clubs(0,1) %]
810 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
812 <a id="clubs-tab-link" href="#clubs-tab">
813 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
819 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
821 [% INCLUDE "checkouts-table.inc" %]
823 [% INCLUDE "relatives-issues-table.inc" %]
825 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
828 </div> <!-- /#clubs-tab -->
831 [% INCLUDE borrower_debarments.inc %]
834 [% IF ( holds_count ) %]
835 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
836 <input type="hidden" name="from" value="circ" />
837 <table id="holds-table" style="width: 100% !Important;">
854 <fieldset class="action">
855 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
857 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
858 [% IF hold_cancellation %]
859 <select name="cancellation-reason">
860 <option value="">No reason given</option>
861 [% FOREACH reason IN hold_cancellation %]
862 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
869 [% IF Koha.Preference('SuspendHoldsIntranet') %]
870 <fieldset class="action">
871 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
872 <input type="hidden" name="from" value="circ" />
873 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
874 <input type="submit" value="Suspend all holds" />
876 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
877 <label for="suspend_until">until</label>
878 <input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true" />
879 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
884 <fieldset class="action">
885 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
886 <input type="hidden" name="from" value="circ" />
887 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
888 <input type="hidden" name="suspend" value="0" />
889 <input type="submit" value="Resume all suspended holds" />
892 [% END # /IF SuspendHoldsIntranet %]
894 [% ELSE # IF holds_count %]
895 <p>Patron has nothing on hold.</p>
896 [% END # /IF holds_count %]
897 </div> <!-- /#reserves -->
899 [% IF Koha.Preference('ClaimReturnedLostValue') %]
900 [% INCLUDE 'patron-return-claims.inc' %]
903 [% IF Koha.Preference('ArticleRequests') %]
904 [% INCLUDE 'patron-article-requests.inc' %]
907 </div> <!-- /#patronlists -->
908 [% ELSIF borrowernumber # IF patron %]
909 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
910 [% END # /IF patron %]
912 </div> <!-- /.col-sm-10.col-sm-push-2 -->
914 [% IF Koha.Preference('CircSidebar') %]
915 [% IF not( borrowernumber and patron ) %]
916 <div class="col-sm-2 col-sm-pull-10">
918 [% INCLUDE 'circ-nav.inc' %]
920 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
924 [% IF borrowernumber and patron %]
925 <div class="col-sm-2 col-sm-pull-10">
927 [% INCLUDE 'circ-menu.inc' %]
929 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
932 </div> <!-- /.row -->
936 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
937 <div class="modal-dialog">
938 <div class="modal-content">
939 <div class="modal-header">
940 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
942 <div class="modal-body">
943 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
945 </div> <!-- /.modal-content -->
946 </div> <!-- /.modal-dialog -->
947 </div> <!-- /#barcodeSubmittedModal -->
949 [% MACRO jsinclude BLOCK %]
950 [% INCLUDE 'calendar.inc' %]
951 [% INCLUDE 'datatables.inc' %]
952 [% INCLUDE 'columns_settings.inc' %]
953 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
954 [% INCLUDE 'timepicker.inc' %]
955 [% INCLUDE 'select2.inc' %]
956 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
958 /* Set some variable needed in circulation.js */
959 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
960 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
961 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
962 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
963 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
964 var interface = "[% interface | html %]";
965 var theme = "[% theme | html %]";
966 var borrowernumber = "[% patron.borrowernumber | html %]";
967 var branchcode = "[% branch | html %]";
968 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
969 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
970 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
971 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
972 var script = "circulation";
973 var relatives_borrowernumbers = new Array();
974 [% FOREACH b IN relatives_borrowernumbers %]
975 relatives_borrowernumbers.push("[% b | html %]");
977 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
979 [% Asset.js("js/pages/circulation.js") | $raw %]
980 [% Asset.js("js/checkouts.js") | $raw %]
981 [% Asset.js("js/holds.js") | $raw %]
983 columns_settings_issues_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
984 columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
986 [% IF borrowernumber and patron %]
987 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
988 Cookies.remove("holdfor", { path: '/' });
991 Cookies.remove("holdfor", { path: '/' });
994 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
997 function toggle_onsite_checkout(){
998 if ( $("#onsite_checkout").prop('checked') ) {
999 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1003 function Dopop(link) {
1004 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1006 $(document).ready(function() {
1007 $('#mainform').on('submit',function() {
1008 if ($("#barcode") && $("#barcode").val()) {
1009 $('#barcode').on('keypress',function(event) {
1010 $('#barcodeSubmittedModal').modal();
1011 event.preventDefault(); }
1016 if ( $('#clubs-tab').length ) {
1017 $('#clubs-tab-link').on('click', function() {
1018 $('#clubs-tab').text(_("Loading..."));
1019 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1023 // listen submit to trigger qslip on empty checkout
1024 $('#mainform').bind('submit',function() {
1025 if ($('#barcode').val() == '') {
1026 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
1027 window.location='/cgi-bin/koha/circ/circulation.pl';
1030 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1034 toggle_onsite_checkout();
1035 $("#onsite_checkout").click(function(){
1036 toggle_onsite_checkout();
1040 [% IF !override_high_holds %]
1041 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1042 if ('[% duedatespec | html %]' === '') {
1043 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1045 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1049 $("#override_high_holds_tmp").on( 'change', function() {
1050 if ( this.checked ) {
1051 $("input[name=duedatespec]:hidden").val('');
1057 [% INCLUDE 'str/members-menu.inc' %]
1058 [% Asset.js("js/members-menu.js") | $raw %]
1061 [% INCLUDE 'intranet-bottom.inc' %]