7 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
9 [% PROCESS 'member-display-address-style.inc' %]
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 [% PROCESS 'display-address-style' %]
30 [% INCLUDE 'doc-head-open.inc' %]
31 <title>Koha › Circulation › Check in [% title | html %]</title>
32 [% INCLUDE 'doc-head-close.inc' %]
35 <body id="circ_returns" class="circ">
36 <span class="audio-alert-success"></span>
38 [% INCLUDE 'header.inc' %]
39 [% INCLUDE 'checkin-search.inc' %]
41 <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>
43 <div class="main container-fluid">
45 <div class="col-sm-12">
49 [% IF Koha.Preference('CircSidebar') %]
50 <div class="col-sm-10 col-sm-push-2">
52 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
55 [% BLOCK all_checkin_messages %]
56 [% IF hold_auto_filled %]
57 <div class="dialog message hold-auto-filled">
58 [% IF ( reservenotes ) %]
59 <h4>Notes: [% reservenotes | html %]</h4>
61 <h3>Hold filled for:</h3>
64 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 %]
65 <span class="patron-category"> - [% patron.category.description | html %]</span>
68 [% INCLUDE display_holdpatron_address %]
70 [% IF ( patron.phone ) %]
71 <li>[% patron.phone | html %]</li>
74 [% IF ( patron.email ) %]
76 [% IF ( transfertodo ) %]
77 [% patron.email | html %]
79 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
84 [% UNLESS ( transfertodo) %]
85 [% INCLUDE display_bormessagepref %]
88 [% IF ( patron.is_debarred ) %]
89 <li class="error">Patron is RESTRICTED</li>
92 [% IF ( patron.gonenoaddress ) %]
93 <li class="error">Patron's address is in doubt</li>
97 [% IF ( transfertodo ) %]
98 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
100 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
103 <a href="#" class="btn btn-default print print-slip">
104 <i class="fa fa-print"></i> Print
106 </div> <!-- /.hold-auto-filled -->
107 [% END # /IF hold_auto_filled %]
109 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
110 <div class="dialog alert">
111 <strong>Error:</strong>
112 This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
114 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
115 <div class="dialog alert">
116 <strong>Error:</strong>
117 The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.
121 [% IF additional_materials && !multiple_confirmed %]
122 <div class="dialog alert">
125 Note about the accompanying materials: [% additional_materials | html %]
131 [% IF ( collectionItemNeedsTransferred ) %]
132 <div id="rotating-collection" class="dialog message">
133 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
134 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
135 <p>This item is part of a rotating collection.</p>
136 <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&branchcode=[% collectionBranch | uri %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
140 <!-- Patron has added an issue note -->
141 [% IF ( issue.note) %]
142 <div class="dialog message">
144 <p>[% issue.notedate | $KohaDates %]</p>
145 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
146 <p>[% issue.note | html %]</p>
150 <!-- Patron has fines -->
152 <div class="dialog alert">
153 <h3>Patron has outstanding fines of [% fines | html %].</h3>
154 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
158 <!-- Item has return claim(s) -->
159 [% IF ( ReturnClaims ) %]
160 <div class="dialog alert return-claim">
161 <h3>This item has been claimed as returned by:</h3>
163 [% FOREACH rc IN ReturnClaims %]
165 [% INCLUDE 'patron-title.inc' patron=rc.patron hide_patron_infos_if_needed=1 invert_name=1 %]
172 <!-- Patron has waiting holds -->
173 [% IF ( waiting_holds ) %]
174 <div id="awaiting-pickup" class="dialog message">
175 <h3>[% INCLUDE 'patron-title.inc' patron=issue.patron hide_patron_infos_if_needed=1 invert_name=1 %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
176 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
180 <!-- Patron is restricted and checkin was backdated -->
181 [% IF return_date_was_overriden && issue.patron.is_debarred %]
182 <div id="restricted_backdated" class="dialog message">
184 [% INCLUDE 'patron-title.inc' patron=issue.patron hide_patron_infos_if_needed=1 invert_name=1 %]
185 is restricted. Please verify this patron should still be restricted.
191 [% IF ( errmsgloop ) %]
192 <div class="dialog alert audio-alert-warning">
193 <h3>Check in message</h3>
194 [% IF itembiblionumber %]
195 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
197 [% FOREACH errmsgloo IN errmsgloop %]
198 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
200 Not for loan status updated.
202 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
203 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.from ) | html %].
208 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
209 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.to ) | html %].
215 [% IF ( errmsgloo.ItemLocationUpdated ) %]
217 Item shelving location updated.
219 [% IF errmsgloo.ItemLocationUpdated.from %]
220 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.from ) %]
221 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
223 [% ELSIF av_description == '' %]
224 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
226 [% av_description | html %]
232 [% IF errmsgloo.ItemLocationUpdated.to %]
233 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.to ) %]
234 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
236 [% ELSIF av_description == '' %]
237 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
239 [% av_description | html %]
246 [% IF ( errmsgloo.badbarcode ) %]
247 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
249 [% IF ( errmsgloo.ispermanent ) %]
250 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
252 [% IF ( errmsgloo.notissued ) %]
253 <p class="problem">Not checked out.</p>
255 [% IF ( errmsgloo.localuse) %]
256 <p class="problem">Local use recorded</p>
258 [% IF ( errmsgloo.waslost ) %]
259 [% IF Koha.Preference('BlockReturnOfLostItems') %]
260 <p class="problem">Item is lost, cannot be checked in.</p>
262 <p class="problem">Item was lost, now found.</p>
264 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
265 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
266 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
267 <h5>Cannot check in</h5>
268 <p><strong>NOT CHECKED IN</strong></p>
270 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
273 [% IF ( errmsgloo.withdrawn ) %]
274 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
275 <h5>Cannot check in</h5>
276 <p><strong>NOT CHECKED IN</strong></p>
278 <p class="problem">Item is withdrawn.</p>
280 [% IF ( errmsgloo.debarred ) %]
281 <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>
283 [% IF ( errmsgloo.prevdebarred ) %]
284 <p class="problem"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
286 [% IF ( errmsgloo.foreverdebarred ) %]
287 <p class="problem"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
289 [% IF errmsgloo.data_corrupted %]
290 <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>
292 [% END # /FOREACH errmsgloo %]
293 </div> <!-- /.dialog.dialog-alert -->
294 [% END #/IF errmsgloop %]
296 [% IF ( checkinmsg ) %]
297 [% IF ( checkinmsgtype == 'alert' ) %]
298 <div class="dialog alert">
300 <div class="dialog message">
302 <p class="problem">[% checkinmsg | html_line_break %]</p>
304 [% END # /IF checkinmsg %]
305 [% END # /BLOCK all_checkin_messages %]
307 [% IF needs_confirm %]
308 <div id="circ-needsconfirmation-modal" class="modal fade audio-alert-action block">
309 <div class="modal-dialog">
310 <div class="modal-content">
311 <div class="modal-header">
312 <h3>Please confirm checkin</h3>
314 <div class="modal-body">
317 Please confirm that the accompanying materials are present: [% additional_materials | html %]
321 <div class="modal-footer">
322 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
323 <input type="hidden" name="barcode" value="[% itembarcode | html %]" />
324 <input type="hidden" name="multiple_confirm" value="1" />
325 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, checkin (Y)</button>
327 <button type="button" data-dismiss="modal" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't checkin (N)</button>
335 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
336 <div class="modal-dialog">
337 <div class="modal-content">
338 <form method="post" action="returns.pl" name="mainform" id="mainform">
339 <div class="modal-header">
344 <div class="modal-body">
346 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
347 [% itembarcode | html %]: [% title | html %]
356 This item must be checked in at following library:
358 [% Branches.GetName( rightbranch ) | html %]
361 [% INCLUDE all_checkin_messages %]
362 </div> <!-- /.modal-body -->
363 <div class="modal-footer">
364 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
366 </form> <!-- /#mainform -->
367 </div> <!-- /.modal-content -->
368 </div> <!-- /.modal-dialog -->
369 </div> <!-- /#wrong-branch-modal -->
370 [% END # /IF wrongbranch %]
372 <!-- case of a mistake in transfer loop -->
373 [% UNLESS ( hold_auto_filled && diffbranch ) %]
374 [% IF WrongTransfer && !transfertodo %]
375 [% IF Koha.Preference('TransfersBlockCirc') %]
376 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
378 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
380 <div class="modal-dialog">
381 <div class="modal-content">
382 <div class="modal-header">
384 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
387 <div class="modal-body">
389 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
390 [% itembarcode | html %]: [% title | html %]
393 [% INCLUDE all_checkin_messages %]
395 <div class="modal-footer">
397 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
399 <button type="button" data-dismiss="modal" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&&branchcode=[% TransferWaitingAt | uri %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
400 <!-- CANCEL TRANSFER -->
401 <form method="post" action="returns.pl" name="mainform">
402 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
403 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
404 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
405 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
406 <input type="hidden" name="canceltransfer" value="1" />
407 [% FOREACH inputloo IN inputloop %]
408 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
409 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
410 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
412 </form> <!-- /mainform -->
413 </div> <!-- /.modal-footer -->
414 </div> <!-- /.modal-content -->
415 </div> <!-- /.modal-dialog -->
416 </div> <!-- /#wrong-transfer-modal -->
417 [% END # /IF WrongTransfer && !transfertodo %]
418 [% END # /UNLESS hold_auto_filled && diffbranch %]
422 <div id="hold-found1" class="modal fade audio-alert-action block">
423 <div class="modal-dialog">
424 <div class="modal-content">
425 <form method="post" action="returns.pl" class="confirm">
426 <div class="modal-header">
428 Hold found (item is already waiting):
430 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
431 <div class="hold-found-barcode">
432 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
437 <div class="modal-body">
438 [% IF ( reservenotes ) %]
439 <h4>Notes: [% reservenotes | html %]</h4>
445 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
446 <span class="patron-category"> - [% patron.category.description | html %]</span>
448 [% INCLUDE display_holdpatron_address %]
449 [% IF ( patron.phone ) %]
450 <li> [% patron.phone | html %]</li>
453 [% IF ( patron.email ) %]
454 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
457 [% IF ( patron.is_debarred ) %]
458 <li class="error">Patron is RESTRICTED</li>
461 [% IF ( patron.gonenoaddress ) %]
462 <li class="error">Patron's address is in doubt</li>
466 [% IF ( transfertodo ) %]
467 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
469 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
472 [% FOREACH inputloo IN inputloop %]
473 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
474 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
475 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
478 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
479 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
480 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
481 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
482 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
483 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
484 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
485 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
487 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
488 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
489 [% INCLUDE all_checkin_messages %]
490 </div> <!-- /.modal-body -->
492 <div class="modal-footer">
493 <input type="hidden" name="cancel_reserve" value="0" />
494 <input type="hidden" name="barcode" value="[% barcode | html %]" />
496 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
497 <i class="fa fa-check"></i> Confirm hold
500 <input type="hidden" name="print_slip" value="0" />
501 <button type="button" class="btn btn-default print">
502 <i class="fa fa-print"></i> Print slip and confirm
505 <button type="button" class="btn btn-default deny cancel-hold">
506 <i class="fa fa-times"></i> Cancel hold
508 </div> <!-- /.modal-footer -->
509 </form> <!-- /.confirm -->
510 </div> <!-- /.modal-content -->
511 </div> <!-- /.modal-dialog -->
512 </div> <!-- /#hold-found1 -->
513 [% END # /IF waiting %]
515 [% IF transfer || needstransfer %]
516 [% IF Koha.Preference('TransfersBlockCirc') %]
517 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
519 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
521 <div class="modal-dialog">
522 <div class="modal-content">
523 <form method="post" action="returns.pl" name="mainform" id="mainform">
525 <input type="hidden" name="print_slip" value="0" />
527 <div class="modal-header">
529 Please return this item to [% Branches.GetName( returnbranch ) | html %]
532 <div class="modal-body">
534 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
535 [% itembarcode | html %]: [% title | html %]
543 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
544 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
545 <input type="hidden" name="barcode" value="0" />
546 <input type="hidden" name="trigger" value="[% trigger | html %]" />
547 [% INCLUDE all_checkin_messages %]
549 <div class="modal-footer">
551 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
552 <button type="button" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&&branchcode=[% returnbranch | uri %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
553 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
555 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
556 <button type="button" data-dismiss="modal" name="dotransfer" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&branchcode=[% returnbranch | uri %]&op=slip"><i class="fa fa-print"></i> Print slip</button>
558 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
559 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
560 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
561 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
562 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
563 [% FOREACH inputloo IN inputloop %]
564 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
565 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
566 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
568 </div> <!-- /.modal-footer -->
569 </form> <!-- /#mainform -->
570 </div> <!-- /.modal-content -->
571 </div> <!-- /.modal-dialog -->
572 </div> <!-- /#item-transfer-modal -->
573 [% END # /IF transfer || needstransfer %]
575 <!-- case of simple return no issue or transfer but with a reservation -->
576 [% IF ( reserved ) %]
578 <div id="hold-found2" class="modal fade audio-alert-action block">
579 <div class="modal-dialog">
580 <div class="modal-content">
581 <form method="post" action="returns.pl" class="confirm">
583 <input type="hidden" name="print_slip" value="0" />
585 <div class="modal-header">
589 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
590 <div class="hold-found-barcode">
591 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
596 <div class="modal-body">
597 [% IF ( reservenotes ) %]
599 <p>[% reservenotes | html %]</p>
605 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
606 <span class="patron-category"> - [% patron.category.description | html %]</span>
609 [% INCLUDE display_holdpatron_address %]
611 [% IF ( patron.phone ) %]
612 <li>[% patron.phone | html %]</li>
615 [% IF ( patron.email ) %]
617 [% IF ( transfertodo ) %]
618 [% patron.email | html %]
620 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
625 [% UNLESS ( transfertodo) %]
626 [% INCLUDE display_bormessagepref %]
629 [% IF ( patron.is_debarred ) %]
630 <li class="error">Patron is RESTRICTED</li>
633 [% IF ( patron.gonenoaddress ) %]
634 <li class="error">Patron's address is in doubt</li>
637 [% IF ( transfertodo ) %]
638 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
640 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
643 [% FOREACH inputloo IN inputloop %]
644 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
645 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
646 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
649 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
650 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
651 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
652 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
653 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
654 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
655 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
656 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
657 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
658 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
659 [% INCLUDE all_checkin_messages %]
662 <div class="modal-footer">
663 [% IF ( transfertodo ) %]
664 <button type="submit" class="btn btn-default approve">
665 <i class="fa fa-check"></i> Confirm hold and transfer
667 <button type="button" class="btn btn-default print">
668 <i class="fa fa-print"></i> Print slip, transfer, and confirm
671 <button type="submit" class="btn btn-default approve">
672 <i class="fa fa-check"></i> Confirm hold
674 <button type="button" class="btn btn-default print">
675 <i class="fa fa-print"></i> Print slip and confirm
679 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
680 <i class="fa fa-times"></i> Ignore
682 </div> <!-- /.modal-footer -->
683 </form> <!-- /.confirm -->
684 </div> <!-- /.modal-content -->
685 </div> <!-- /.modal-dialog -->
686 </div> <!-- /#hold-found2 -->
687 [% END #/IF reserved %]
688 [% END # /IF found %]
690 <div class="static_checkin_messages">
691 [% INCLUDE all_checkin_messages %]
694 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
695 <fieldset id="circ_returns_checkin">
696 <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>
699 <div class="col-sm-6">
700 <div class="hint">Enter item barcode:</div>
701 <div class="form-control-group">
702 [% IF ( exemptfine ) %]
703 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
704 [% ELSIF ( dropboxmode ) %]
705 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
707 <input name="barcode" id="barcode" size="14" class="barcode focus" />
709 <button type="submit" class="btn btn-default">Check in</button>
710 [% FOREACH inputloo IN inputloop %]
711 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
712 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
713 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
716 <div id="show-circ-settings">
717 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
720 <div class="col-sm-6">
721 [% IF ( exemptfine ) %]
722 <div id="exemptfines" class="checkin-active-setting">
724 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
726 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
729 [% IF ( forgivemanualholdsexpire ) %]
730 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
732 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
734 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
737 [% IF ( dropboxmode ) %]
738 <div id="dropboxmode" class="checkin-active-setting">
740 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
742 <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>
744 [% IF ( return_date_override_remember ) %]
745 <div id="return_date_remember" class="checkin-active-setting">
747 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
749 <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>
754 <div class="circ-settings">
755 [% IF Koha.Preference('SpecifyReturnDate') %]
756 <div class="date-select" id="return_date_override_fields">
757 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
759 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
763 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
764 <div class="circ-setting">
765 [% IF ( return_date_override_remember ) %]
766 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
768 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
770 <label for="return_date_override_remember"> Remember due date for next check in</label>
772 </div> <!-- /.date-select -->
775 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
776 <div id="forgive-overdue-fines" class="circ-setting">
777 [% IF ( exemptfine ) %]
778 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
780 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
782 <label for="exemptcheck">Forgive overdue charges</label>
784 [% END %] <!-- overduecharges -->
786 <div id="book-drop-mode" class="circ-setting">
787 [% IF ( dropboxmode ) %]
788 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
790 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
792 <label for="dropboxcheck">Book drop mode</label>
795 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
796 <div class="forgive-manual-hold-fees circ-setting">
797 [% IF ( forgivemanualholdsexpire ) %]
798 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
800 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
802 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
804 [% END %] <!-- overduecharges -->
806 </div> <!-- /.circ-settings -->
807 </fieldset> <!-- /#circ_returns_checkin -->
808 </form> <!-- /#checkin-form -->
811 <h2>Checked-in items</h2>
812 <table id="checkedintable">
815 <th class="ci-duedate">Due date</th>
816 <th class="ci-title">Title</th>
817 <th class="ci-author">Author</th>
818 <th class="ci-barcode">Barcode</th>
819 <th class="ci-homelibrary">Home library</th>
820 <th class="ci-holdinglibrary">Holding library</th>
821 <th class="ci-shelvinglocation">Shelving location</th>
822 <th class="ci-callnumber">Call number</th>
823 <th class="ci-dateaccessioned">Date acquired</th>
824 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
825 <th class="ci-itemtype">Item type</th>
826 <th class="ci-collection">Collection</th>
827 <th class="ci-patron">Patron</th>
828 <th class="ci-note">Note</th>
832 [% FOREACH riloo IN riloop %]
834 <td class="ci-duedate">
835 [% IF ( riloo.duedate ) %]
836 [% IF ( riloo.return_overdue ) %]
837 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
839 [% riloo.duedate | html %]
845 <td class="ci-title">
846 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
847 [% riloo.itemtitle | html %]
848 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
849 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
850 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
852 [% IF ( riloo.enumchron ) %]
854 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
857 <td class="ci-author">[% riloo.itemauthor | html %]</td>
858 <td class="ci-barcode">
859 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
861 <td class="ci-homelibrary">
862 [% Branches.GetName( riloo.homebranch ) | html %]
864 <td class="ci-holdinglibrary">
865 [% Branches.GetName( riloo.holdingbranch ) | html %]
867 <td class="ci-shelvinglocation">
868 <span class="shelvingloc">[% riloo.location | html %]</span>
870 <td class="ci-callnumber">
871 [% riloo.itemcallnumber | html %]
873 <td class="ci-dateaccessioned">
874 [% riloo.dateaccessioned | $KohaDates %]
876 <td class="ci-recordlevelitemtype">
877 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
879 <td class="ci-itemtype">
880 [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
882 <td class="ci-collection">
883 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
885 <td class="ci-patron">
886 [% IF ( riloo.duedate ) %]
887 [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
888 [% IF riloo.borissuescount %]
889 <span class="results_summary nowrap">
890 <span class="label">Checkouts:</span>
891 <span class="number_box">
892 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
901 [% IF ( riloo.patron.borrowernotes ) %]
902 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
904 [% IF ( riloo.itemnote ) %]
905 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
907 [% IF ( riloo.itemnotes_nonpublic ) %]
908 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
912 [% END # /FOREACH riloo %]
913 </table> <!-- /#checkedintable -->
914 [% END # /IF riloop %]
916 [% IF Koha.Preference('CircSidebar') %]
917 </div> <!-- /.col-sm-10.col-sm-push-2 -->
918 <div class="col-sm-2 col-sm-pull-10">
920 [% INCLUDE 'circ-nav.inc' %]
922 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
923 </div> <!-- /.row -->
925 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
926 </div> <!-- /.row -->
930 </div> <!-- /.col-sm-12 -->
931 </div> <!-- /.row -->
933 [% MACRO jsinclude BLOCK %]
934 [% INCLUDE 'datatables.inc' %]
935 [% INCLUDE 'columns_settings.inc' %]
936 [% INCLUDE 'calendar.inc' %]
937 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
938 [% Asset.js("js/pages/circulation.js") | $raw %]
939 [% INCLUDE 'timepicker.inc' %]
942 function Dopop(link) {
943 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
944 $("#barcode").focus();
946 $(document).ready(function () {
947 $("#checkin-form").preventDoubleFormSubmit();
948 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
949 $("#barcode").prop("disabled", true);
950 $(".show_checkin_dialog").show();
951 }).on('hidden.bs.modal', function() {
952 $("#barcode").prop("disabled", false).focus();
954 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
955 $("#barcode").prop("disabled", false).focus();
956 }).on('hidden.bs.modal', function() {
957 $("#barcode").prop("disabled", false).focus();
960 $("body").on("click", ".show_checkin_dialog button", function(e){
962 $(".modal").modal("show");
965 $(".print-slip").on('click', function(e) {
967 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
970 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
973 var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
974 var returns_table = KohaTable("checkedintable", {
979 "dom": 'B<"clearfix">t',
980 }, columns_settings);
982 $("#return_date_override").datetimepicker({
983 onClose: function(dateText, inst) {
984 if (validate_date(dateText, inst) ) {
985 $("#barcode").focus();
992 }).on("change", function(e, value) {
993 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
995 $("#return_date_override").on("blur", function() {
996 check_valid_return_date();
998 $("#checkin-form").submit(function( event ) {
999 if ( !check_valid_return_date() ) {
1000 event.preventDefault();
1004 function check_valid_return_date() {
1005 if ( $("#return_date_override").val() ) {
1006 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
1007 var now = new Date();
1008 if ( !datetime || datetime > now ) {
1009 alert("Invalid return date/time!");
1010 $("#return_date_override").val("")
1014 // Add saved date information to onscreen message, which
1015 // may or may not be hidden
1016 $("#saved_return_date").text( $("#return_date_override").val() );
1020 $("#exemptcheck").change(function () {
1021 if (this.checked == true) {
1022 $("#barcode").addClass("input-warning");
1023 $("#exemptfines").show();
1025 $("#barcode").removeClass("input-warning");
1026 $("#exemptfines").hide();
1028 $("#barcode").focus();
1030 $("#dropboxcheck").change(function () {
1031 if (this.checked == true) {
1032 $("#barcode").addClass("input-warning");
1033 $("#dropboxmode").show();
1035 $("#return_date_override_fields :input").prop('disabled', true);
1036 $("#return_date_override").datetimepicker("disable");
1038 $("#barcode").removeClass("input-warning");
1039 $("#dropboxmode").hide();
1041 $("#return_date_override_fields :input").prop('disabled', false);
1042 $("#return_date_override").datetimepicker("enable");
1044 $("#barcode").focus();
1046 $("#forgivemanualholdsexpire").change(function () {
1047 if (this.checked == true) {
1048 $("#barcode").addClass("input-warning");
1049 $("#forgivemanualholdsexpire-alert").show();
1051 $("#barcode").removeClass("input-warning");
1052 $("#forgivemanualholdsexpire-alert").hide();
1054 $("#barcode").focus();
1057 [% IF(overduecharges) %]
1058 $("#barcode").focus(function () {
1059 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1060 $("#barcode").addClass("input-warning");
1062 $("#barcode").removeClass("input-warning");
1065 $("#barcode").blur(function () {
1066 $("#barcode").removeClass("input-warning");
1070 $('.openWin').on("click",function(e){
1071 Dopop( $(this).data("url") );
1074 $('.print').on("click",function(e){
1075 this.form.print_slip.value = 1;
1079 $('.cancel-hold').on("click",function(e){
1080 this.form.cancel_reserve.value = 1;
1084 $('.action').on("click",function(e){
1085 this.checked = false;
1086 this.form.return_date_override.value = '';
1087 this.form.return_date_override_remember.checked = false;
1088 this.form.barcode.focus();
1089 $("#return_date_remember").hide();
1093 $("#return_date_override_remember").on("change", function(){
1094 if( $(this).prop("checked" ) ){
1095 if( $("#return_date_override").val() == "" ){
1096 $("#saved_return_date").text( _("No date selected") );
1098 $("#saved_return_date").text( $("#return_date_override").val() );
1100 $("#return_date_remember").show();
1102 $("#return_date_remember").hide();
1105 $('[data-toggle="tooltip"]').tooltip();
1110 [% INCLUDE 'intranet-bottom.inc' %]