8 [% USE AuthorisedValues %]
9 [% USE ColumnsSettings %]
10 [% SET footerjs = 1 %]
11 [% BLOCK display_bormessagepref %]
12 [% IF ( bormessagepref ) %]
13 <li class="notification_method">Patron notification:
14 [% FOREACH mtt IN bormessagepref.keys %]
15 [%~ IF ( mtt == 'email' ) %] Email[% END ~%]
16 [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%]
17 [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%]
18 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
22 <li class="notification_method none">Patron is not notified.</li>
26 [% BLOCK display_holdpatron_address %]
27 [% IF Koha.Preference( 'AddressFormat' ) %]
28 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
30 [% INCLUDE 'member-display-address-style-us.inc' %]
34 [% INCLUDE 'doc-head-open.inc' %]
35 <title>Koha › Circulation › Check in [% title | html %]</title>
36 [% INCLUDE 'doc-head-close.inc' %]
39 <body id="circ_returns" class="circ">
40 <span class="audio-alert-success"></span>
42 [% INCLUDE 'header.inc' %]
43 [% INCLUDE 'checkin-search.inc' %]
45 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Check in</div>
47 <div class="main container-fluid">
49 <div class="col-sm-12">
53 [% IF Koha.Preference('CircSidebar') %]
54 <div class="col-sm-10 col-sm-push-2">
56 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
59 [% BLOCK all_checkin_messages %]
60 [% IF hold_auto_filled %]
61 <div class="dialog alert hold-auto-filled">
62 [% IF ( reservenotes ) %]
63 <h4>Notes: [% reservenotes | html %]</h4>
65 <h3>Hold filled for:</h3>
68 [% INCLUDE 'patron-title.inc' patron=patron %]
69 <span class="patron-category"> - [% patron.category.description | html %]</span>
72 [% INCLUDE display_holdpatron_address %]
74 [% IF ( patron.phone ) %]
75 <li>[% patron.phone | html %]</li>
78 [% IF ( patron.email ) %]
80 [% IF ( transfertodo ) %]
81 [% patron.email | html %]
83 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
88 [% UNLESS ( transfertodo) %]
89 [% INCLUDE display_bormessagepref %]
92 [% IF ( patron.debarred ) %]
93 <li class="error">Patron is RESTRICTED</li>
96 [% IF ( patron.gonenoaddress ) %]
97 <li class="error">Patron's address is in doubt</li>
101 [% IF ( transfertodo ) %]
102 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
104 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
107 <a href="#" class="btn btn-default print print-slip">
108 <i class="fa fa-print"></i> Print
110 </div> <!-- /.hold-auto-filled -->
111 [% END # /IF hold_auto_filled %]
113 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
114 <div class="dialog alert">
115 <strong>Error:</strong>
116 This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
118 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
119 <div class="dialog alert">
120 <strong>Error:</strong>
121 The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.
125 [% IF additional_materials %]
126 <div class="dialog message" id="materials">
127 Note about the accompanying materials: <br />
128 [% additional_materials | html %]
132 [% IF ( collectionItemNeedsTransferred ) %]
133 <div id="rotating-collection" class="dialog message">
134 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
135 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
136 <p>This item is part of a rotating collection.</p>
137 <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% collectionBranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
141 <!-- Patron has added an issue note -->
142 [% IF ( issue.note) %]
143 <div class="dialog message">
145 <p>[% issue.notedate | $KohaDates %]</p>
146 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
147 <p>[% issue.note | html %]</p>
151 <!-- Patron has fines -->
153 <div class="dialog alert">
154 <h3>Patron has outstanding fines of [% fines | html %].</h3>
155 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
159 <!-- Item has return claim(s) -->
160 [% IF ( ReturnClaims ) %]
161 <div class="dialog alert return-claim">
163 This item has been claimed as returned by:
165 [% FOREACH rc IN ReturnClaims %]
166 [% SET patron = rc.patron %]
168 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
169 [% patron.firstname | html %] [% patron.surname | html %]
178 <!-- Patron has waiting holds -->
179 [% IF ( waiting_holds ) %]
180 <div id="awaiting-pickup" class="dialog message">
181 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
182 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
186 <!-- Patron is restricted and checkin was backdated -->
187 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
188 <div id="restricted_backdated" class="dialog message">
190 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
191 [% patron.firstname | html %] [% patron.surname | html %]
193 is restricted. Please verify this patron should still be restricted.
199 [% IF ( errmsgloop ) %]
200 <div class="dialog alert audio-alert-warning">
201 <h3>Check in message</h3>
202 [% IF itembiblionumber %]
203 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
205 [% FOREACH errmsgloo IN errmsgloop %]
206 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
208 Not for loan status updated.
210 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
211 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
216 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
217 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
223 [% IF ( errmsgloo.ItemLocationUpdated ) %]
225 Item shelving location updated.
227 [% IF errmsgloo.ItemLocationUpdated.from %]
228 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
230 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %]
231 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
233 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %]
239 [% IF errmsgloo.ItemLocationUpdated.to %]
240 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
242 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %]
243 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
245 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %]
252 [% IF ( errmsgloo.badbarcode ) %]
253 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
255 [% IF ( errmsgloo.ispermanent ) %]
256 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
258 [% IF ( errmsgloo.notissued ) %]
259 <p class="problem">Not checked out.</p>
261 [% IF ( errmsgloo.localuse) %]
262 <p class="problem">Local use recorded</p>
264 [% IF ( errmsgloo.waslost ) %]
265 [% IF Koha.Preference('BlockReturnOfLostItems') %]
266 <p class="problem">Item is lost, cannot be checked in.</p>
268 <p class="problem">Item was lost, now found.</p>
270 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
271 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
272 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
273 <h5>Cannot check in</h5>
274 <p><strong>NOT CHECKED IN</strong></p>
276 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
279 [% IF ( errmsgloo.withdrawn ) %]
280 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
281 <h5>Cannot check in</h5>
282 <p><strong>NOT CHECKED IN</strong></p>
284 <p class="problem">Item is withdrawn.</p>
286 [% IF ( errmsgloo.debarred ) %]
287 <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
289 [% IF ( errmsgloo.prevdebarred ) %]
290 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
292 [% IF ( errmsgloo.foreverdebarred ) %]
293 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
296 [% IF errmsgloo.data_corrupted %]
297 <p class="problem">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and search for the "data problems" section</p>
299 [% END # /FOREACH errmsgloo %]
300 </div> <!-- /.dialog.dialog-alert -->
301 [% END #/IF errmsgloop %]
303 [% IF ( checkinmsg ) %]
304 [% IF ( checkinmsgtype == 'alert' ) %]
305 <div class="dialog alert">
307 <div class="dialog message">
309 <p class="problem">[% checkinmsg | html_line_break %]</p>
311 [% END # /IF checkinmsg %]
312 [% END # /BLOCK all_checkin_messages %]
315 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
316 <div class="modal-dialog">
317 <div class="modal-content">
318 <form method="post" action="returns.pl" name="mainform" id="mainform">
319 <div class="modal-header">
324 <div class="modal-body">
326 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
327 [% itembarcode | html %]: [% title | html %]
336 This item must be checked in at following library:
338 [% Branches.GetName( rightbranch ) | html %]
341 [% INCLUDE all_checkin_messages %]
342 </div> <!-- /.modal-body -->
343 <div class="modal-footer">
344 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
346 </form> <!-- /#mainform -->
347 </div> <!-- /.modal-content -->
348 </div> <!-- /.modal-dialog -->
349 </div> <!-- /#wrong-branch-modal -->
350 [% END # /IF wrongbranch %]
352 <!-- case of a mistake in transfer loop -->
353 [% UNLESS ( hold_auto_filled && diffbranch ) %]
354 [% IF WrongTransfer && !transfertodo %]
355 [% IF Koha.Preference('TransfersBlockCirc') %]
356 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
358 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
360 <div class="modal-dialog">
361 <div class="modal-content">
362 <div class="modal-header">
364 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
367 <div class="modal-body">
369 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
370 [% itembarcode | html %]: [% title | html %]
373 [% INCLUDE all_checkin_messages %]
375 <div class="modal-footer">
377 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
379 <button type="button" data-dismiss="modal" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
380 <!-- CANCEL TRANSFER -->
381 <form method="post" action="returns.pl" name="mainform">
382 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
383 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
384 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
385 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
386 <input type="hidden" name="canceltransfer" value="1" />
387 [% FOREACH inputloo IN inputloop %]
388 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
389 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
390 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
392 </form> <!-- /mainform -->
393 </div> <!-- /.modal-footer -->
394 </div> <!-- /.modal-content -->
395 </div> <!-- /.modal-dialog -->
396 </div> <!-- /#wrong-transfer-modal -->
397 [% END # /IF WrongTransfer && !transfertodo %]
398 [% END # /UNLESS hold_auto_filled && diffbranch %]
402 <div id="hold-found1" class="modal fade audio-alert-action block">
403 <div class="modal-dialog">
404 <div class="modal-content">
405 <form method="post" action="returns.pl" class="confirm">
406 <div class="modal-header">
408 Hold found (item is already waiting):
410 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
411 <div class="hold-found-barcode">
412 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
417 <div class="modal-body">
418 [% IF ( reservenotes ) %]
419 <h4>Notes: [% reservenotes | html %]</h4>
425 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
426 <span class="patron-category"> - [% patron.category.description | html %]</span>
428 [% INCLUDE display_holdpatron_address %]
429 [% IF ( patron.phone ) %]
430 <li> [% patron.phone | html %]</li>
433 [% IF ( patron.email ) %]
434 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
437 [% IF ( patron.debarred ) %]
438 <li class="error">Patron is RESTRICTED</li>
441 [% IF ( patron.gonenoaddress ) %]
442 <li class="error">Patron's address is in doubt</li>
446 [% IF ( transfertodo ) %]
447 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
449 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
452 [% FOREACH inputloo IN inputloop %]
453 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
454 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
455 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
458 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
459 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
460 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
461 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
462 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
463 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
464 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
465 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
467 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
468 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
469 [% INCLUDE all_checkin_messages %]
470 </div> <!-- /.modal-body -->
472 <div class="modal-footer">
473 <input type="hidden" name="cancel_reserve" value="0" />
475 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
476 <i class="fa fa-check"></i> Confirm hold
479 <input type="hidden" name="print_slip" value="0" />
480 <button type="submit" class="btn btn-default print">
481 <i class="fa fa-print"></i> Print slip and confirm
484 <button type="submit" class="btn btn-default deny cancel-hold">
485 <i class="fa fa-times"></i> Cancel hold
487 </div> <!-- /.modal-footer -->
488 </form> <!-- /.confirm -->
489 </div> <!-- /.modal-content -->
490 </div> <!-- /.modal-dialog -->
491 </div> <!-- /#hold-found1 -->
492 [% END # /IF waiting %]
494 [% IF transfer || needstransfer %]
495 [% IF Koha.Preference('TransfersBlockCirc') %]
496 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
498 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
500 <div class="modal-dialog">
501 <div class="modal-content">
502 <form method="post" action="returns.pl" name="mainform" id="mainform">
503 <div class="modal-header">
505 Please return this item to [% Branches.GetName( returnbranch ) | html %]
508 <div class="modal-body">
510 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
511 [% itembarcode | html %]: [% title | html %]
519 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
520 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
521 <input type="hidden" name="barcode" value="0" />
522 [% INCLUDE all_checkin_messages %]
524 <div class="modal-footer">
526 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
527 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
528 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
530 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
531 <button type="button" data-dismiss="modal" name="dotransfer" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button>
533 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
534 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
535 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
536 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
537 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
538 [% FOREACH inputloo IN inputloop %]
539 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
540 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
541 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
543 </div> <!-- /.modal-footer -->
544 </form> <!-- /#mainform -->
545 </div> <!-- /.modal-content -->
546 </div> <!-- /.modal-dialog -->
547 </div> <!-- /#item-transfer-modal -->
548 [% END # /IF transfer || needstransfer %]
550 <!-- case of simple return no issue or transfer but with a reservation -->
551 [% IF ( reserved ) %]
553 <div id="hold-found2" class="modal fade audio-alert-action block">
554 <div class="modal-dialog">
555 <div class="modal-content">
556 <form method="post" action="returns.pl" class="confirm">
557 <div class="modal-header">
561 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
562 <div class="hold-found-barcode">
563 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
568 <div class="modal-body">
569 [% IF ( reservenotes ) %]
571 <p>[% reservenotes | html %]</p>
577 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
578 <span class="patron-category"> - [% patron.category.description | html %]</span>
581 [% INCLUDE display_holdpatron_address %]
583 [% IF ( patron.phone ) %]
584 <li>[% patron.phone | html %]</li>
587 [% IF ( patron.email ) %]
589 [% IF ( transfertodo ) %]
590 [% patron.email | html %]
592 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
597 [% UNLESS ( transfertodo) %]
598 [% INCLUDE display_bormessagepref %]
601 [% IF ( patron.debarred ) %]
602 <li class="error">Patron is RESTRICTED</li>
605 [% IF ( patron.gonenoaddress ) %]
606 <li class="error">Patron's address is in doubt</li>
609 [% IF ( transfertodo ) %]
610 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
612 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
615 <input type="hidden" name="print_slip" value="0" />
618 [% FOREACH inputloo IN inputloop %]
619 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
620 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
621 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
624 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
625 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
626 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
627 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
628 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
629 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
630 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
631 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
632 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
633 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
634 [% INCLUDE all_checkin_messages %]
637 <div class="modal-footer">
638 [% IF ( transfertodo ) %]
639 <button type="submit" class="btn btn-default approve">
640 <i class="fa fa-check"></i> Confirm hold and transfer
642 <button type="submit" class="btn btn-default print">
643 <i class="fa fa-print"></i> Print slip, transfer, and confirm
646 <button type="submit" class="btn btn-default approve">
647 <i class="fa fa-check"></i> Confirm hold
649 <button type="submit" class="btn btn-default print">
650 <i class="fa fa-print"></i> Print slip and confirm
654 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
655 <i class="fa fa-times"></i> Ignore
657 </div> <!-- /.modal-footer -->
658 </form> <!-- /.confirm -->
659 </div> <!-- /.modal-content -->
660 </div> <!-- /.modal-dialog -->
661 </div> <!-- /#hold-found2 -->
662 [% END #/IF reserved %]
663 [% END # /IF found %]
665 <div class="static_checkin_messages">
666 [% INCLUDE all_checkin_messages %]
669 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
670 <fieldset id="circ_returns_checkin">
671 <div class="show_checkin_dialog" style="float:right;display:none"><button type="button" class="btn btn-default btn-sm" data-toggle="tooltip" title="Show the last checkin message"><i class="fa fa-info"></i></button></div>
674 <div class="col-sm-6">
675 <div class="hint">Enter item barcode:</div>
676 <div class="form-control-group">
677 [% IF ( exemptfine ) %]
678 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
679 [% ELSIF ( dropboxmode ) %]
680 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
682 <input name="barcode" id="barcode" size="14" class="barcode focus" />
684 <button type="submit" class="btn btn-default">Check in</button>
685 [% FOREACH inputloo IN inputloop %]
686 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
687 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
688 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
691 <div id="show-circ-settings">
692 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
695 <div class="col-sm-6">
696 [% IF ( exemptfine ) %]
697 <div id="exemptfines" class="checkin-active-setting">
699 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
701 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
704 [% IF ( forgivemanualholdsexpire ) %]
705 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
707 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
709 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
712 [% IF ( dropboxmode ) %]
713 <div id="dropboxmode" class="checkin-active-setting">
715 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
717 <p><i class="fa fa-check"></i> Book drop mode. <span class="single-line">( Effective checkin date is [% dropboxdate | $KohaDates with_hours => 1 %] )</span></p>
719 [% IF ( return_date_override_remember ) %]
720 <div id="return_date_remember" class="checkin-active-setting">
722 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
724 <p><i class="fa fa-check"></i> Saved check-in date: <span id="saved_return_date" class="single-line">[% return_date_override | html %]</span></p>
729 <div class="circ-settings">
730 [% IF Koha.Preference('SpecifyReturnDate') %]
731 <div class="date-select" id="return_date_override_fields">
732 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
734 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
738 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
739 <div class="circ-setting">
740 [% IF ( return_date_override_remember ) %]
741 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
743 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
745 <label for="return_date_override_remember"> Remember due date for next check in</label>
747 </div> <!-- /.date-select -->
750 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
751 <div id="forgive-overdue-fines" class="circ-setting">
752 [% IF ( exemptfine ) %]
753 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
755 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
757 <label for="exemptcheck">Forgive overdue charges</label>
759 [% END %] <!-- overduecharges -->
761 <div id="book-drop-mode" class="circ-setting">
762 [% IF ( dropboxmode ) %]
763 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
765 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
767 <label for="dropboxcheck">Book drop mode</label>
770 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
771 <div class="forgive-manual-hold-fees circ-setting">
772 [% IF ( forgivemanualholdsexpire ) %]
773 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
775 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
777 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
779 [% END %] <!-- overduecharges -->
781 </div> <!-- /.circ-settings -->
782 </fieldset> <!-- /#circ_returns_checkin -->
783 </form> <!-- /#checkin-form -->
786 <h2>Checked-in items</h2>
787 <table id="checkedintable">
790 <th class="ci-duedate">Due date</th>
791 <th class="ci-title">Title</th>
792 <th class="ci-author">Author</th>
793 <th class="ci-barcode">Barcode</th>
794 <th class="ci-homelibrary">Home library</th>
795 <th class="ci-holdinglibrary">Holding library</th>
796 <th class="ci-shelvinglocation">Shelving location</th>
797 <th class="ci-callnumber">Call number</th>
798 <th class="ci-dateaccessioned">Date acquired</th>
799 <th class="ci-type">Type</th>
800 <th class="ci-patron">Patron</th>
801 <th class="ci-note">Note</th>
805 [% FOREACH riloo IN riloop %]
807 <td class="ci-duedate">
808 [% IF ( riloo.duedate ) %]
809 [% IF ( riloo.return_overdue ) %]
810 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
812 [% riloo.duedate | html %]
818 <td class="ci-title">
819 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
820 [% riloo.itemtitle | html %]
821 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
822 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
823 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
825 [% IF ( riloo.enumchron ) %]
827 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
830 <td class="ci-author">[% riloo.itemauthor | html %]</td>
831 <td class="ci-barcode">
832 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
834 <td class="ci-homelibrary">
835 [% Branches.GetName( riloo.homebranch ) | html %]
837 <td class="ci-holdinglibrary">
838 [% Branches.GetName( riloo.holdingbranch ) | html %]
840 <td class="ci-shelvinglocation">
841 <span class="shelvingloc">[% riloo.location | html %]</span>
843 <td class="ci-callnumber">
844 [% riloo.itemcallnumber | html %]
846 <td class="ci-dateaccessioned">
847 [% riloo.dateaccessioned | $KohaDates %]
850 [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
852 <td class="ci-patron">
853 [% IF ( riloo.duedate ) %]
854 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
855 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
857 [% IF riloo.borissuescount %]
858 <span class="results_summary nowrap">
859 <span class="label">Checkouts:</span>
860 <span class="number_box">
861 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
870 [% IF ( riloo.patron.borrowernotes ) %]
871 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
873 [% IF ( riloo.itemnote ) %]
874 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
876 [% IF ( riloo.itemnotes_nonpublic ) %]
877 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
881 [% END # /FOREACH riloo %]
882 </table> <!-- /#checkedintable -->
883 [% END # /IF riloop %]
885 [% IF Koha.Preference('CircSidebar') %]
886 </div> <!-- /.col-sm-10.col-sm-push-2 -->
887 <div class="col-sm-2 col-sm-pull-10">
889 [% INCLUDE 'circ-nav.inc' %]
891 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
892 </div> <!-- /.row -->
894 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
895 </div> <!-- /.row -->
899 </div> <!-- /.col-sm-12 -->
900 </div> <!-- /.row -->
902 [% MACRO jsinclude BLOCK %]
903 [% INCLUDE 'datatables.inc' %]
904 [% INCLUDE 'columns_settings.inc' %]
905 [% INCLUDE 'calendar.inc' %]
906 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
907 [% Asset.js("js/pages/circulation.js") | $raw %]
908 [% INCLUDE 'timepicker.inc' %]
911 function Dopop(link) {
912 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
913 $("#barcode").focus();
915 $(document).ready(function () {
916 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
917 $("#barcode").prop("disabled", true);
918 $(".show_checkin_dialog").show();
919 }).on('hidden.bs.modal', function() {
920 $("#barcode").prop("disabled", false).focus();
922 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
923 $("#barcode").prop("disabled", false).focus();
924 }).on('hidden.bs.modal', function() {
925 $("#barcode").prop("disabled", false).focus();
928 $("body").on("click", ".show_checkin_dialog button", function(e){
930 $(".modal").modal("show");
933 $(".print-slip").on('click', function(e) {
935 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
939 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
942 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
943 var returns_table = KohaTable("checkedintable", {
948 "dom": 'B<"clearfix">t',
949 }, columns_settings);
951 $("#return_date_override").datetimepicker({
952 onClose: function(dateText, inst) {
953 if (validate_date(dateText, inst) ) {
954 $("#barcode").focus();
961 }).on("change", function(e, value) {
962 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
964 $("#return_date_override").on("blur", function() {
965 check_valid_return_date();
967 $("#checkin-form").submit(function( event ) {
968 if ( !check_valid_return_date() ) {
969 event.preventDefault();
973 function check_valid_return_date() {
974 if ( $("#return_date_override").val() ) {
975 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
976 var now = new Date();
977 if ( !datetime || datetime > now ) {
978 alert("Invalid return date/time!");
979 $("#return_date_override").val("")
983 // Add saved date information to onscreen message, which
984 // may or may not be hidden
985 $("#saved_return_date").text( $("#return_date_override").val() );
989 $("#exemptcheck").change(function () {
990 if (this.checked == true) {
991 $("#barcode").addClass("input-warning");
992 $("#exemptfines").show();
994 $("#barcode").removeClass("input-warning");
995 $("#exemptfines").hide();
997 $("#barcode").focus();
999 $("#dropboxcheck").change(function () {
1000 if (this.checked == true) {
1001 $("#barcode").addClass("input-warning");
1002 $("#dropboxmode").show();
1004 $("#return_date_override_fields :input").prop('disabled', true);
1005 $("#return_date_override").datetimepicker("disable");
1007 $("#barcode").removeClass("input-warning");
1008 $("#dropboxmode").hide();
1010 $("#return_date_override_fields :input").prop('disabled', false);
1011 $("#return_date_override").datetimepicker("enable");
1013 $("#barcode").focus();
1015 $("#forgivemanualholdsexpire").change(function () {
1016 if (this.checked == true) {
1017 $("#barcode").addClass("input-warning");
1018 $("#forgivemanualholdsexpire-alert").show();
1020 $("#barcode").removeClass("input-warning");
1021 $("#forgivemanualholdsexpire-alert").hide();
1023 $("#barcode").focus();
1026 [% IF(overduecharges) %]
1027 $("#barcode").focus(function () {
1028 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1029 $("#barcode").addClass("input-warning");
1031 $("#barcode").removeClass("input-warning");
1034 $("#barcode").blur(function () {
1035 $("#barcode").removeClass("input-warning");
1039 $('.openWin').on("click",function(e){
1040 Dopop( $(this).data("url") );
1043 $('.print').on("click",function(e){
1044 this.form.print_slip.value = 1;
1048 $('.cancel-hold').on("click",function(e){
1049 this.form.cancel_reserve.value = 1;
1053 $('.action').on("click",function(e){
1054 this.checked = false;
1055 this.form.return_date_override.value = '';
1056 this.form.return_date_override_remember.checked = false;
1057 this.form.barcode.focus();
1058 $("#return_date_remember").hide();
1062 $("#return_date_override_remember").on("change", function(){
1063 if( $(this).prop("checked" ) ){
1064 if( $("#return_date_override").val() == "" ){
1065 $("#saved_return_date").text( _("No date selected") );
1067 $("#saved_return_date").text( $("#return_date_override").val() );
1069 $("#return_date_remember").show();
1071 $("#return_date_remember").hide();
1074 $('[data-toggle="tooltip"]').tooltip();
1079 [% INCLUDE 'intranet-bottom.inc' %]