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 RECALLED.waiting %]
239 <li>Item <i>[% RECALLED.biblio.title | html %]</i> ([% RECALLED.item.barcode | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.borrowernumber | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.branchcode ) | html %] since [% RECALLED.waitingdate | $KohaDates %]</li>
240 [% ELSIF RECALLED.requested or RECALLED.overdue %]
241 <li>Item <i>[% RECALLED.biblio.title | html %]</i> [% IF RECALLED.item %]([% RECALLED.item.barcode | html %])[% END %] has been recalled by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% RECALLED.borrowernumber | uri %]">[% RECALLED.patron.firstname | html %] [% RECALLED.patron.surname | html %]</a> ([% RECALLED.patron.cardnumber | html %]) at [% Branches.GetName( RECALLED.branchcode ) | html %] since [% RECALLED.recalldate | $KohaDates %]</li>
247 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
248 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
249 <input type="hidden" name="restoreduedatespec" />
251 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
254 <p class="circ-override-high-holds">
255 <input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" />
256 <label for="override_high_holds_tmp">Don't decrease loan length based on holds</label>
260 [% IF ( RESERVED ) %]
262 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
263 <label for="cancelreserve">Cancel hold</label>
267 [% IF ( RESERVE_WAITING ) %]
269 <label for="cancelreserve">Cancel hold</label>
270 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
271 <label for="revertreserve">Revert waiting status</label>
272 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
276 [% IF ( TRANSFERRED ) %]
278 <label for="cancelreserve">Cancel hold</label>
279 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
280 <label for="revertreserve">Revert hold transfer status</label>
281 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
285 [% IF ( PROCESSING ) %]
287 <label for="cancelreserve">Cancel hold</label>
288 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
289 <label for="revertreserve">Revert In Processing status</label>
290 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
294 [% IF ( RECALLED ) %]
296 <label for="cancelrecall">Cancel recall</label>
297 <input type="radio" value="cancel" name="cancel_recall" id="cancelrecall" />
298 <input type="hidden" value="[% RECALLED.recall_id | html %]" name="recall_id" />
300 [% IF RECALLED.waiting %]
302 <label for="revertrecall">Revert waiting status</label>
303 <input type="radio" value="revert" name="cancel_recall" id="revertrecall" checked="checked"/>
304 <input type="hidden" value="[% RECALLED.recall_id | html %]" name="recall_id" />
309 <input type="hidden" name="barcode" value="[% barcode | html %]" />
310 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
311 <input type="hidden" name="issueconfirmed" value="1" />
312 <input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/>
314 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
316 [% IF ( INVALID_DATE ) %]
318 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
319 <label for="duedatespec">Due date</label>
322 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
325 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
326 <input type="hidden" name="branch" value="[% branch | html %]" />
328 [% IF ( RENEW_ISSUE ) %]
329 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button>
331 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button>
334 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
335 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
337 [% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
339 [% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
340 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
341 <input type="hidden" name="restoreduedatespec" />
342 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
343 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
344 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
345 <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>
349 [% IF ( RECALLED ) %]
350 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
351 <button class="print" type="submit" onclick="Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% RECALLED.recall_id | html %]');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button>
355 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
356 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
357 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
358 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
359 <input type="hidden" name="restoreduedatespec" />
360 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
361 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
362 [% IF ( RENEW_ISSUE ) %]
363 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button>
365 <button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button>
368 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button>
372 [% IF ( RESERVED || ISSUED_TO_ANOTHER || RECALLED ) && (CAN_user_reserveforothers_place_holds ) %]
373 [% UNLESS noissues %]
374 <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>
377 </div> <!-- /#circ_needsconfirmation -->
378 [% END # /NEEDSCONFIRMATION %]
380 [% IF ( IMPOSSIBLE ) %]
381 <div id="circ_impossible" class="dialog alert audio-alert-warning focus" tabindex="-1">
382 [% IF ( UNKNOWN_BARCODE ) %]
383 <h3>Barcode not found</h3>
386 <!-- RESULT OF ISSUING REQUEST -->
388 [% IF ( DEBT_GUARANTORS ) %]
389 <li>The patron's guarantors and their other guarantees collectively have a debt of [% DEBT_GUARANTORS | $Price %].</li>
393 <li>Local use recorded</li>
396 [% IF ( INVALID_DATE ) %]
397 <li>The due date "[% INVALID_DATE | html %]" is invalid</li>
400 [% IF ( UNKNOWN_BARCODE ) %]
401 <li>The barcode was not found: <span class="ex">[% barcode | html %]</span>
403 [% IF ( FALLBACK ) %]
405 <button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button>
407 <div>No items were found by searching.</div>
411 [% IF ( fast_cataloging ) %]
412 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
413 <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>
420 [% IF ( NOT_FOR_LOAN ) %]
422 [% IF ( itemtype_notforloan ) %]
423 Item type not for loan.
424 [% ELSIF ( item_notforloan ) %]
425 [% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
426 Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %].
431 [% IF ( WTHDRAWN ) %]
433 <span>Item has been withdrawn</span>
434 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
435 [% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
439 [% IF ( RESTRICTED ) %]
440 <li>Item is restricted</li>
444 <li>Patron's address is in doubt</li>
447 [% IF ( CARD_LOST ) %]
448 <li>Patron's card is lost</li>
451 [% IF ( DEBARRED ) %]
452 <li>Patron is restricted</li>
455 [% IF ( NO_MORE_RENEWALS ) %]
456 <li>No more renewals possible</li>
459 [% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %]
460 <li>This item can not be renewed, it's an on-site checkout</li>
463 [%IF ( AGE_RESTRICTION ) %]
464 <li>Age restriction [% AGE_RESTRICTION | html %].</li>
468 <li>Patron's card is expired</li>
471 [% IF ( TOO_MANY ) %]
472 <li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li>
475 [% IF ( ITEMNOTSAMEBRANCH ) %]
476 <li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li>
479 [% IF RETURN_IMPOSSIBLE %]
480 <li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li>
483 [% IF ( USERBLOCKEDWITHENDDATE ) %]
484 <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
487 [% IF ( USERBLOCKEDNOENDDATE ) %]
488 <li>Patron has an indefinite restriction.</li>
491 [% IF ( USERBLOCKEDOVERDUE ) %]
492 <li>Checkouts are BLOCKED because patron has overdue items.</li>
495 [% IF ( RECALLED_INTRANSIT ) %]
496 <li>Item has been recalled and is in transit for pickup at [% Branches.GetName( RECALLED_INTRANSIT ) | html %].</li>
500 [% IF (forceallow) %]
501 <li>Restriction overridden temporarily.</li>
504 </div> <!-- /#circ_impossible -->
506 [% IF ( FALLBACK ) %]
509 <div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel">
510 <div class="modal-dialog modal-wide" role="document">
511 <div class="modal-content">
512 <div class="modal-header">
513 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
514 <h3 id="itemSearchFallbackLabel"><h3>Barcode not found. The following items were found by searching:</h3>
516 <div class="modal-body">
517 <table class="table_borrowers">
524 <th>Inventory number</th>
525 <th>Serial enumeration</th>
527 [% IF ( item_level_itypes ) %]<th>Item type</th>[% END %]
532 [% FOREACH item IN options %]
535 <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>
538 [% item.barcode | html %]
540 <td>[% item.itemcallnumber | html %]</th>
541 <td>[% item.copynumber | html %]</th>
542 <td>[% item.stocknumber| html %]</th>
543 <td>[% item.enumchron| html %]</th>
545 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]
547 [% IF ( item_level_itypes ) %]
549 [% ItemTypes.GetDescription( item.itype ) | html %]
553 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
554 [% IF (forceallow) %]
555 <input type="hidden" name="forceallow" value="1">
557 <input type="hidden" name="restoreduedatespec" />
558 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
559 <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
560 <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
561 <input type="hidden" name="branch" value="[% branch | html %]" />
562 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
563 <input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" />
564 <input type="hidden" name="auto_renew" value="[% auto_renew | html %]" />
565 <button class="btn btn-default btn-xs" type="submit" name="x"><i class="fa fa-check"></i> Check out</button>
572 </div> <!-- /.modal-body -->
573 <div class="modal-footer">
574 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
576 </div> <!-- /.modal-content -->
577 </div> <!-- /.modal-dialog.modal-wide -->
578 </div> <!-- /#itemSearchFallback -->
579 [% END # /IF options %]
580 [% END # /IF FALLBACK %]
582 [% ELSE # IF IMPOSSIBLE %]
583 [% IF (forceallow) %]
584 <div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div>
586 [% END # /IF IMPOSSIBLE %]
588 <span class="audio-alert-success"></span>
591 <p>Item checked out</p>
595 [% INCLUDE 'patron-toolbar.inc' %]
596 <h4>No patron matched <span class="ex">[% message | html %]</span></h4>
599 <!-- BARCODE ENTRY -->
603 [% IF patron.privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
604 <div class="dialog alert">
605 <strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
610 [% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
611 <div class="col-sm-6">
612 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
613 <input type="hidden" name="restoreduedatespec" />
615 <fieldset id="circ_circulation_issue" class="lastchecked">
617 <fieldset id="circ_circulation_issue">
620 [% IF ( DisplayClearScreenButton ) %]
621 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
622 <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span>
625 [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
627 <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
629 [% IF Koha.Preference('itemBarcodeFallbackSearch') %]
630 <div class="hint">Enter item barcode or keyword:</div>
632 <div class="hint">Enter item barcode:</div>
635 [% IF NEEDSCONFIRMATION %]
636 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
638 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
641 <button type="submit" class="btn btn-default">Check out</button>
643 <div id="show-circ-settings">
644 <a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a>
647 <div class="circ-settings">
649 [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
650 [% IF ( SpecifyDueDate ) %]
651 <div id="specify-due-date" class="circ-setting">
652 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
653 [% IF ( duedatespec ) %]
654 <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | $KohaDates with_hours => 1 %]" />
656 <input type="text" size="20" id="duedatespec" name="duedatespec" value="" />
658 <label for="stickyduedate"> Remember for session:</label>
659 [% IF ( stickyduedate ) %]
660 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
662 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
668 [% UNLESS ( noissues ) %]
669 <div id="set-automatic-renewal" class="circ-setting">
670 [% IF NEEDSCONFIRMATION %]
672 [% IF patron.autorenew_checkouts %]
673 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
674 title="Patron has opted out of auto-renewal"/>
676 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" checked="checked" />
679 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
682 [% IF ( auto_renew && patron.autorenew_checkouts ) %]
683 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" checked="checked" />
684 [% ELSIF patron.autorenew_checkouts %]
685 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" />
687 <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled"
688 title="Patron has opted out of auto-renewal"/>
692 <label for="auto_renew">Automatic renewal</label>
694 [% IF Koha.Preference('decreaseLoanHighHolds') %]
695 <div id="set_high_holds_overrride" class="circ-setting">
696 [% IF NEEDSCONFIRMATION %]
697 [% IF override_high_holds %]
698 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
700 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
703 [% IF override_high_holds %]
704 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" />
706 <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" />
709 <label for="override_high_holds">Don't decrease checkout length based on holds</label>
714 [% IF Koha.Preference('OnSiteCheckouts') %]
715 <div id="onsite_checkout-select" class="circ-setting">
717 <div class="onsite-checkout-only">
718 <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>
719 <input type="text" name="duedatespec" id="duedatespec" />
720 <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
723 [% IF Koha.Preference('OnSiteCheckoutAutoCheck') && onsite_checkout == "on" %]
724 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" checked="checked" /> <label for="onsite_checkout">On-site checkout</label>
726 <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label>
732 </div> <!-- /.circ-settings -->
734 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
735 <input type="hidden" name="branch" value="[% branch | html %]" />
736 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" />
738 <input type="hidden" name="charges" value="yes" />
740 </fieldset> <!-- /#circ_circulation_issue -->
743 <div class="lastchecked">
744 <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>
747 </form> <!-- /#mainform -->
748 </div> <!-- /.col-sm-6 -->
750 [% END #/IF !noissues %]
752 [% IF ( noissues ) %]
753 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
754 <div class="col-sm-6">
759 <div class="col-sm-6">
762 [% IF ( noissues ) %]
763 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
764 <div id="circmessages" class="circmessage attention">
766 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
767 <div id="circmessages" class="circmessage warning">
771 [% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
772 <span class="circ-hlt">Only on-site checkouts are allowed</span>
776 <div id="circmessages" class="circmessage attention">
779 [% INCLUDE 'patron_messages.inc' %]
781 </div> <!-- /#circmessages -->
782 </div> <!-- /div or div.col-sm-6 -->
783 </div> <!-- /.row -->
785 <div id="patronlists" class="toptabs">
788 [% IF ( issuecount ) %]
789 <a href="#checkouts">[% issuecount | html %] Checkout(s)</a>
791 <a href="#checkouts">0 Checkouts</a>
795 [% IF relatives_issues_count %]
796 <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li>
800 [% IF ( holds_count ) %]
801 <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a>
803 <a href="#reserves" id="holds-tab">0 Holds</a>
807 [% IF Koha.Preference('UseRecalls') %]
809 <a href="#recalls" id="recalls-tab">
810 [% recalls.count | html %] Recalls
815 [% IF Koha.Preference('ArticleRequests') %]
816 [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
818 <a href="#article-requests" id="article-requests-tab"> [% current_article_requests.count | html %] Article requests</a>
822 [% IF Koha.Preference('ClaimReturnedLostValue') %]
824 [% IF ( patron.return_claims.count ) %]
825 <a href="#return-claims" id="return-claims-tab">
827 [% IF patron.return_claims.resolved.count == 0 %]
828 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
830 <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
832 [% IF patron.return_claims.unresolved.count == 0 %]
833 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
835 <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
839 <a href="#return-claims" id="return-claims-tab">
841 <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
842 <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
848 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li>
850 [% SET enrollments = patron.get_club_enrollments %]
851 [% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC -->
852 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
854 <a id="clubs-tab-link" href="#clubs-tab">
855 Clubs ([% enrollments.count | html %]/[% enrollable.count | html %])
861 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
863 [% INCLUDE "checkouts-table.inc" %]
865 [% INCLUDE "relatives-issues-table.inc" %]
867 [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
870 </div> <!-- /#clubs-tab -->
873 [% INCLUDE borrower_debarments.inc %]
876 [% IF ( holds_count ) %]
877 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
878 <input type="hidden" name="from" value="circ" />
879 <table id="holds-table" style="width: 100% !Important;">
897 <fieldset class="action">
898 <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
900 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
901 [% IF hold_cancellation %]
902 <select name="cancellation-reason">
903 <option value="">No reason given</option>
904 [% FOREACH reason IN hold_cancellation %]
905 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
912 [% IF Koha.Preference('SuspendHoldsIntranet') %]
913 <fieldset class="action">
914 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
915 <input type="hidden" name="from" value="circ" />
916 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
917 <input type="submit" value="Suspend all holds" />
919 [% IF Koha.Preference('AutoResumeSuspendedHolds') %]
920 <label for="suspend_until">until</label>
921 <input type="text" size="10" id="suspend_until" name="suspend_until" class="flatpickr" data-flatpickr-futuredate="true" />
922 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
927 <fieldset class="action">
928 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
929 <input type="hidden" name="from" value="circ" />
930 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
931 <input type="hidden" name="suspend" value="0" />
932 <input type="submit" value="Resume all suspended holds" />
935 [% END # /IF SuspendHoldsIntranet %]
937 [% ELSE # IF holds_count %]
938 <p>Patron has nothing on hold.</p>
939 [% END # /IF holds_count %]
940 </div> <!-- /#reserves -->
942 [% IF Koha.Preference('UseRecalls') %]
944 [% INCLUDE 'recalls.inc' %]
948 [% IF Koha.Preference('ClaimReturnedLostValue') %]
949 [% INCLUDE 'patron-return-claims.inc' %]
952 [% IF Koha.Preference('ArticleRequests') %]
953 [% INCLUDE 'patron-article-requests.inc' %]
956 </div> <!-- /#patronlists -->
957 [% ELSIF borrowernumber # IF patron %]
958 <div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div>
959 [% END # /IF patron %]
961 </div> <!-- /.col-sm-10.col-sm-push-2 -->
963 [% IF Koha.Preference('CircSidebar') %]
964 [% IF not( borrowernumber and patron ) %]
965 <div class="col-sm-2 col-sm-pull-10">
967 [% INCLUDE 'circ-nav.inc' %]
969 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
973 [% IF borrowernumber and patron %]
974 <div class="col-sm-2 col-sm-pull-10">
976 [% INCLUDE 'circ-menu.inc' %]
978 </div> <!-- /.col-sm-2 col-sm-pull-10 -->
981 </div> <!-- /.row -->
984 [% IF Koha.Preference('ClaimReturnedLostValue') %]
985 [% INCLUDE 'modals/resolve_return_claim.inc' %]
989 <div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true">
990 <div class="modal-dialog">
991 <div class="modal-content">
992 <div class="modal-header">
993 <h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3>
995 <div class="modal-body">
996 <p>You have already submitted a barcode, please wait for the checkout to process...</p>
998 </div> <!-- /.modal-content -->
999 </div> <!-- /.modal-dialog -->
1000 </div> <!-- /#barcodeSubmittedModal -->
1002 [% MACRO jsinclude BLOCK %]
1003 [% INCLUDE 'datatables.inc' %]
1004 [% INCLUDE 'columns_settings.inc' %]
1005 [% INCLUDE 'select2.inc' %]
1006 [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %]
1007 [% INCLUDE 'js-date-format.inc' %]
1009 /* Set some variable needed in circulation.js */
1010 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1011 var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]";
1012 var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]";
1013 var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]";
1014 var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]";
1015 var interface = "[% interface | html %]";
1016 var theme = "[% theme | html %]";
1017 var borrowernumber = "[% patron.borrowernumber | html %]";
1018 var branchcode = "[% branch | html %]";
1019 var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]";
1020 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %];
1021 var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %];
1022 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %];
1023 var script = "circulation";
1024 var relatives_borrowernumbers = new Array();
1025 [% FOREACH b IN relatives_borrowernumbers %]
1026 relatives_borrowernumbers.push("[% b | html %]");
1028 var SuspendHoldsIntranet = [% ( Koha.Preference('SuspendHoldsIntranet') ) ? 1 : 0 | html %];
1030 [% Asset.js("js/pages/circulation.js") | $raw %]
1031 [% Asset.js("js/checkouts.js") | $raw %]
1032 [% IF Koha.Preference('ClaimReturnedLostValue') %]
1033 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1035 [% Asset.js("js/holds.js") | $raw %]
1036 [% INCLUDE 'calendar.inc' %]
1038 columns_settings_issues_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
1039 columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
1041 [% IF borrowernumber and patron %]
1042 if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
1043 Cookies.remove("holdfor", { path: '/' });
1046 Cookies.remove("holdfor", { path: '/' });
1049 [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
1052 function toggle_onsite_checkout(){
1053 if ( $("#onsite_checkout").prop('checked') ) {
1054 $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]")
1058 function Dopop(link) {
1059 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1061 $(document).ready(function() {
1062 $('#mainform').on('submit',function() {
1063 if ($("#barcode") && $("#barcode").val()) {
1064 $('#barcode').on('keypress',function(event) {
1065 $('#barcodeSubmittedModal').modal();
1066 event.preventDefault(); }
1071 if ( $('#clubs-tab').length ) {
1072 $('#clubs-tab-link').on('click', function() {
1073 $('#clubs-tab').text(_("Loading..."));
1074 $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]');
1078 // listen submit to trigger qslip on empty checkout
1079 $('#mainform').bind('submit',function() {
1080 if ($('#barcode').val() == '') {
1081 [% IF ( CircAutoPrintQuickSlip == 'clear' ) %]
1082 window.location='/cgi-bin/koha/circ/circulation.pl';
1085 return printx_window( '[% CircAutoPrintQuickSlip | html %]' );
1089 toggle_onsite_checkout();
1090 $("#onsite_checkout").click(function(){
1091 toggle_onsite_checkout();
1095 [% IF !override_high_holds %]
1096 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate | html %]');
1097 if ('[% duedatespec | html %]' === '') {
1098 $("input[name=restoreduedatespec]:hidden").val('highholds_empty');
1100 $("input[name=restoreduedatespec]:hidden").val('[% duedatespec | html %]');
1104 $("#override_high_holds_tmp").on( 'change', function() {
1105 if ( this.checked ) {
1106 $("input[name=duedatespec]:hidden").val('');
1112 [% INCLUDE 'str/members-menu.inc' %]
1113 [% Asset.js("js/members-menu.js") | $raw %]
1114 [% Asset.js("js/recalls.js") | $raw %]
1117 [% INCLUDE 'intranet-bottom.inc' %]