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 && !needs_confirm && !multiple_confirmed %]
122 <div class="dialog message">
123 Note about the accompanying materials: [% additional_materials | html %]
127 [% IF ( collectionItemNeedsTransferred ) %]
128 <div id="rotating-collection" class="dialog message">
129 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
130 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
131 <p>This item is part of a rotating collection.</p>
132 <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>
136 <!-- Patron has added an issue note -->
137 [% IF ( issue.note) %]
138 <div class="dialog message">
140 <p>[% issue.notedate | $KohaDates %]</p>
141 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
142 <p>[% issue.note | html %]</p>
146 <!-- Patron has fines -->
148 <div class="dialog alert">
149 <h3>Patron has outstanding fines of [% fines | html %].</h3>
150 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
154 <!-- Item has return claim(s) -->
155 [% IF ( ReturnClaims ) %]
156 <div class="dialog alert return-claim">
157 <h3>This item has been claimed as returned by:</h3>
159 [% FOREACH rc IN ReturnClaims %]
161 [% INCLUDE 'patron-title.inc' patron=rc.patron hide_patron_infos_if_needed=1 invert_name=1 %]
168 <!-- Patron has waiting holds -->
169 [% IF ( waiting_holds ) %]
170 <div id="awaiting-pickup" class="dialog message">
171 <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>
172 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
176 <!-- Patron is restricted and checkin was backdated -->
177 [% IF return_date_was_overriden && issue.patron.is_debarred %]
178 <div id="restricted_backdated" class="dialog message">
180 [% INCLUDE 'patron-title.inc' patron=issue.patron hide_patron_infos_if_needed=1 invert_name=1 %]
181 is restricted. Please verify this patron should still be restricted.
187 [% IF ( errmsgloop ) %]
188 <div class="dialog alert audio-alert-warning">
189 <h3>Check in message</h3>
190 [% IF itembiblionumber %]
191 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
193 [% FOREACH errmsgloo IN errmsgloop %]
194 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
195 <p class="problem ret_nflupdate">
196 Not for loan status updated.
198 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
199 <span class="ret_updatedfrom">
200 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.from ) | html %].
206 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
207 <span class="ret_updatedto">
208 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.to ) | html %].
215 [% IF ( errmsgloo.ItemLocationUpdated ) %]
216 <p class="problem ret_location_update">
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 ret_badbarcode">No item with barcode: [% errmsgloo.msg | html %]</p>
249 [% IF ( errmsgloo.ispermanent ) %]
250 <p class="problem ret_ispermenant">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
252 [% IF ( errmsgloo.notissued ) %]
253 <p class="problem ret_notissued">Not checked out.</p>
255 [% IF ( errmsgloo.localuse) %]
256 <p class="problem ret_localuse">Local use recorded</p>
258 [% IF ( errmsgloo.waslost ) %]
259 [% IF Koha.Preference('BlockReturnOfLostItems') %]
260 <p class="problem ret_blocked">Item is lost, cannot be checked in.</p>
262 <p class="problem ret_checkedin">Item was lost, now found.</p>
264 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
265 <p class="problem ret_refund">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 ret_feeremains">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 ret_withdrawn">Item is withdrawn.</p>
280 [% IF ( errmsgloo.debarred ) %]
281 <p class="problem ret_debarred"><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 ret_prevdebarred"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
286 [% IF ( errmsgloo.foreverdebarred ) %]
287 <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
289 [% IF errmsgloo.data_corrupted %]
290 <p class="problem ret_datacorrupt">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 ret_checkinmsg">[% 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: <strong>[% additional_materials | html %]</strong>
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 [% FOREACH inputloo IN inputloop %]
326 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
327 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
328 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
330 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, checkin (Y)</button>
332 <button type="button" data-dismiss="modal" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't checkin (N)</button>
340 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
341 <div class="modal-dialog">
342 <div class="modal-content">
343 <form method="post" action="returns.pl" name="mainform" id="mainform">
344 <div class="modal-header">
349 <div class="modal-body">
351 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
352 [% itembarcode | html %]: [% title | html %]
361 This item must be checked in at following library:
363 [% Branches.GetName( rightbranch ) | html %]
366 [% INCLUDE all_checkin_messages %]
367 </div> <!-- /.modal-body -->
368 <div class="modal-footer">
369 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
371 </form> <!-- /#mainform -->
372 </div> <!-- /.modal-content -->
373 </div> <!-- /.modal-dialog -->
374 </div> <!-- /#wrong-branch-modal -->
375 [% END # /IF wrongbranch %]
377 <!-- case of a mistake in transfer loop -->
378 [% UNLESS ( hold_auto_filled && diffbranch ) %]
379 [% IF WrongTransfer && !transfertodo %]
380 [% IF Koha.Preference('TransfersBlockCirc') %]
381 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
383 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
385 <div class="modal-dialog">
386 <div class="modal-content">
387 <div class="modal-header">
389 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
392 <div class="modal-body">
394 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
395 [% itembarcode | html %]: [% title | html %]
398 [% INCLUDE all_checkin_messages %]
400 <div class="modal-footer">
402 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
404 <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>
405 <!-- CANCEL TRANSFER -->
406 <form method="post" action="returns.pl" name="mainform">
407 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
408 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
409 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
410 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
411 <input type="hidden" name="canceltransfer" value="1" />
412 [% FOREACH inputloo IN inputloop %]
413 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
414 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
415 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
417 </form> <!-- /mainform -->
418 </div> <!-- /.modal-footer -->
419 </div> <!-- /.modal-content -->
420 </div> <!-- /.modal-dialog -->
421 </div> <!-- /#wrong-transfer-modal -->
422 [% END # /IF WrongTransfer && !transfertodo %]
423 [% END # /UNLESS hold_auto_filled && diffbranch %]
427 <div id="hold-found1" class="modal fade audio-alert-action block">
428 <div class="modal-dialog">
429 <div class="modal-content">
430 <form method="post" action="returns.pl" class="confirm">
431 <div class="modal-header">
433 Hold found (item is already waiting):
435 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
436 <div class="hold-found-barcode">
437 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
442 <div class="modal-body">
443 [% IF ( reservenotes ) %]
444 <h4>Notes: [% reservenotes | html %]</h4>
450 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
451 <span class="patron-category"> - [% patron.category.description | html %]</span>
453 [% INCLUDE display_holdpatron_address %]
454 [% IF ( patron.phone ) %]
455 <li> [% patron.phone | html %]</li>
458 [% IF ( patron.email ) %]
459 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
462 [% IF ( patron.is_debarred ) %]
463 <li class="error">Patron is RESTRICTED</li>
466 [% IF ( patron.gonenoaddress ) %]
467 <li class="error">Patron's address is in doubt</li>
471 [% IF ( transfertodo ) %]
472 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
474 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
477 [% FOREACH inputloo IN inputloop %]
478 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
479 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
480 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
483 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
484 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
485 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
486 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
487 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
488 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
489 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
490 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
492 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
493 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
494 [% INCLUDE all_checkin_messages %]
495 </div> <!-- /.modal-body -->
497 <div class="modal-footer">
498 <input type="hidden" name="cancel_reserve" value="0" />
499 <input type="hidden" name="barcode" value="[% barcode | html %]" />
501 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
502 <i class="fa fa-check"></i> Confirm hold
505 <input type="hidden" name="print_slip" value="0" />
506 <button type="button" class="btn btn-default print">
507 <i class="fa fa-print"></i> Print slip and confirm
510 <button type="button" class="btn btn-default deny cancel-hold">
511 <i class="fa fa-times"></i> Cancel hold
513 </div> <!-- /.modal-footer -->
514 </form> <!-- /.confirm -->
515 </div> <!-- /.modal-content -->
516 </div> <!-- /.modal-dialog -->
517 </div> <!-- /#hold-found1 -->
518 [% END # /IF waiting %]
520 [% IF transfer || needstransfer %]
521 [% IF Koha.Preference('TransfersBlockCirc') %]
522 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
524 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
526 <div class="modal-dialog">
527 <div class="modal-content">
528 <form method="post" action="returns.pl" name="mainform" id="mainform">
530 <input type="hidden" name="print_slip" value="0" />
532 <div class="modal-header">
534 Please return this item to [% Branches.GetName( returnbranch ) | html %]
537 <div class="modal-body">
539 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
540 [% itembarcode | html %]: [% title | html %]
548 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
549 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
550 <input type="hidden" name="barcode" value="0" />
551 <input type="hidden" name="trigger" value="[% trigger | html %]" />
552 [% INCLUDE all_checkin_messages %]
554 <div class="modal-footer">
556 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
557 <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>
558 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
560 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
561 <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>
563 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
564 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
565 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
566 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
567 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
568 [% FOREACH inputloo IN inputloop %]
569 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
570 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
571 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
573 </div> <!-- /.modal-footer -->
574 </form> <!-- /#mainform -->
575 </div> <!-- /.modal-content -->
576 </div> <!-- /.modal-dialog -->
577 </div> <!-- /#item-transfer-modal -->
578 [% END # /IF transfer || needstransfer %]
580 <!-- case of simple return no issue or transfer but with a reservation -->
581 [% IF ( reserved ) %]
583 <div id="hold-found2" class="modal fade audio-alert-action block">
584 <div class="modal-dialog">
585 <div class="modal-content">
586 <form method="post" action="returns.pl" class="confirm">
588 <input type="hidden" name="print_slip" value="0" />
590 <div class="modal-header">
594 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
595 <div class="hold-found-barcode">
596 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
601 <div class="modal-body">
602 [% IF ( reservenotes ) %]
604 <p>[% reservenotes | html %]</p>
610 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
611 <span class="patron-category"> - [% patron.category.description | html %]</span>
614 [% INCLUDE display_holdpatron_address %]
616 [% IF ( patron.phone ) %]
617 <li>[% patron.phone | html %]</li>
620 [% IF ( patron.email ) %]
622 [% IF ( transfertodo ) %]
623 [% patron.email | html %]
625 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
630 [% UNLESS ( transfertodo) %]
631 [% INCLUDE display_bormessagepref %]
634 [% IF ( patron.is_debarred ) %]
635 <li class="error">Patron is RESTRICTED</li>
638 [% IF ( patron.gonenoaddress ) %]
639 <li class="error">Patron's address is in doubt</li>
642 [% IF ( transfertodo ) %]
643 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
645 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
648 [% FOREACH inputloo IN inputloop %]
649 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
650 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
651 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
654 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
655 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
656 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
657 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
658 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
659 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
660 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
661 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
662 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
663 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
664 [% INCLUDE all_checkin_messages %]
667 <div class="modal-footer">
668 [% IF ( transfertodo ) %]
669 <button type="submit" class="btn btn-default approve">
670 <i class="fa fa-check"></i> Confirm hold and transfer
672 <button type="button" class="btn btn-default print">
673 <i class="fa fa-print"></i> Print slip, transfer, and confirm
676 <button type="submit" class="btn btn-default approve">
677 <i class="fa fa-check"></i> Confirm hold
679 <button type="button" class="btn btn-default print">
680 <i class="fa fa-print"></i> Print slip and confirm
684 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
685 <i class="fa fa-times"></i> Ignore
687 </div> <!-- /.modal-footer -->
688 </form> <!-- /.confirm -->
689 </div> <!-- /.modal-content -->
690 </div> <!-- /.modal-dialog -->
691 </div> <!-- /#hold-found2 -->
692 [% END #/IF reserved %]
693 [% END # /IF found %]
695 <div class="static_checkin_messages">
696 [% INCLUDE all_checkin_messages %]
699 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
700 <fieldset id="circ_returns_checkin">
701 <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>
704 <div class="col-sm-6">
705 <div class="hint">Enter item barcode:</div>
706 <div class="form-control-group">
707 [% IF ( exemptfine ) %]
708 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
709 [% ELSIF ( dropboxmode ) %]
710 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
712 <input name="barcode" id="barcode" size="14" class="barcode focus" />
714 <button type="submit" class="btn btn-default">Check in</button>
715 [% FOREACH inputloo IN inputloop %]
716 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
717 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
718 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
721 <div id="show-circ-settings">
722 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
725 <div class="col-sm-6">
726 [% IF ( exemptfine ) %]
727 <div id="exemptfines" class="checkin-active-setting">
729 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
731 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
734 [% IF ( forgivemanualholdsexpire ) %]
735 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
737 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
739 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
742 [% IF ( dropboxmode ) %]
743 <div id="dropboxmode" class="checkin-active-setting">
745 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
747 <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>
749 [% IF ( return_date_override_remember ) %]
750 <div id="return_date_remember" class="checkin-active-setting">
752 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
754 <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>
759 <div class="circ-settings">
760 [% IF Koha.Preference('SpecifyReturnDate') %]
761 <div class="date-select" id="return_date_override_fields">
762 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
764 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
768 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
769 <div class="circ-setting">
770 [% IF ( return_date_override_remember ) %]
771 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
773 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
775 <label for="return_date_override_remember"> Remember due date for next check in</label>
777 </div> <!-- /.date-select -->
780 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
781 <div id="forgive-overdue-fines" class="circ-setting">
782 [% IF ( exemptfine ) %]
783 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
785 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
787 <label for="exemptcheck">Forgive overdue charges</label>
789 [% END %] <!-- overduecharges -->
791 <div id="book-drop-mode" class="circ-setting">
792 [% IF ( dropboxmode ) %]
793 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
795 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
797 <label for="dropboxcheck">Book drop mode</label>
800 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
801 <div class="forgive-manual-hold-fees circ-setting">
802 [% IF ( forgivemanualholdsexpire ) %]
803 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
805 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
807 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
809 [% END %] <!-- overduecharges -->
811 </div> <!-- /.circ-settings -->
812 </fieldset> <!-- /#circ_returns_checkin -->
813 </form> <!-- /#checkin-form -->
816 <h2>Checked-in items</h2>
817 <table id="checkedintable">
820 <th class="ci-duedate">Due date</th>
821 <th class="ci-title">Title</th>
822 <th class="ci-author">Author</th>
823 <th class="ci-barcode">Barcode</th>
824 <th class="ci-homelibrary">Home library</th>
825 <th class="ci-holdinglibrary">Holding library</th>
826 <th class="ci-shelvinglocation">Shelving location</th>
827 <th class="ci-callnumber">Call number</th>
828 <th class="ci-dateaccessioned">Date acquired</th>
829 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
830 <th class="ci-itemtype">Item type</th>
831 <th class="ci-collection">Collection</th>
832 <th class="ci-patron">Patron</th>
833 <th class="ci-note">Note</th>
837 [% FOREACH riloo IN riloop %]
839 <td class="ci-duedate">
840 [% IF ( riloo.duedate ) %]
841 [% IF ( riloo.return_overdue ) %]
842 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
844 [% riloo.duedate | html %]
850 <td class="ci-title">
851 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
852 [% riloo.itemtitle | html %]
853 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
854 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
855 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
857 [% IF ( riloo.enumchron ) %]
859 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
862 <td class="ci-author">[% riloo.itemauthor | html %]</td>
863 <td class="ci-barcode">
864 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
866 <td class="ci-homelibrary">
867 [% Branches.GetName( riloo.homebranch ) | html %]
869 <td class="ci-holdinglibrary">
870 [% Branches.GetName( riloo.holdingbranch ) | html %]
872 <td class="ci-shelvinglocation">
873 <span class="shelvingloc">[% riloo.location | html %]</span>
875 <td class="ci-callnumber">
876 [% riloo.itemcallnumber | html %]
878 <td class="ci-dateaccessioned">
879 [% riloo.dateaccessioned | $KohaDates %]
881 <td class="ci-recordlevelitemtype">
882 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
884 <td class="ci-itemtype">
885 [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
887 <td class="ci-collection">
888 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
890 <td class="ci-patron">
891 [% IF ( riloo.duedate ) %]
892 [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
893 [% IF riloo.borissuescount %]
894 <span class="results_summary nowrap">
895 <span class="label">Checkouts:</span>
896 <span class="number_box">
897 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
906 [% IF ( riloo.patron.borrowernotes ) %]
907 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
909 [% IF ( riloo.itemnote ) %]
910 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
912 [% IF ( riloo.itemnotes_nonpublic ) %]
913 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
917 [% END # /FOREACH riloo %]
918 </table> <!-- /#checkedintable -->
919 [% END # /IF riloop %]
921 [% IF Koha.Preference('CircSidebar') %]
922 </div> <!-- /.col-sm-10.col-sm-push-2 -->
923 <div class="col-sm-2 col-sm-pull-10">
925 [% INCLUDE 'circ-nav.inc' %]
927 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
928 </div> <!-- /.row -->
930 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
931 </div> <!-- /.row -->
935 </div> <!-- /.col-sm-12 -->
936 </div> <!-- /.row -->
938 [% MACRO jsinclude BLOCK %]
939 [% INCLUDE 'datatables.inc' %]
940 [% INCLUDE 'columns_settings.inc' %]
941 [% INCLUDE 'calendar.inc' %]
942 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
943 [% Asset.js("js/pages/circulation.js") | $raw %]
944 [% INCLUDE 'timepicker.inc' %]
947 function Dopop(link) {
948 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
949 $("#barcode").focus();
951 $(document).ready(function () {
952 $("#checkin-form").preventDoubleFormSubmit();
953 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
954 $("#barcode").prop("disabled", true);
955 $(".show_checkin_dialog").show();
956 }).on('hidden.bs.modal', function() {
957 $("#barcode").prop("disabled", false).focus();
959 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
960 $("#barcode").prop("disabled", false).focus();
961 }).on('hidden.bs.modal', function() {
962 $("#barcode").prop("disabled", false).focus();
965 $("body").on("click", ".show_checkin_dialog button", function(e){
967 $(".modal").modal("show");
970 $(".print-slip").on('click', function(e) {
972 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
975 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
978 var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
979 var returns_table = KohaTable("checkedintable", {
984 "dom": 'B<"clearfix">t',
985 }, columns_settings);
987 $("#return_date_override").datetimepicker({
988 onClose: function(dateText, inst) {
989 if (validate_date(dateText, inst) ) {
990 $("#barcode").focus();
997 }).on("change", function(e, value) {
998 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1000 $("#return_date_override").on("blur", function() {
1001 check_valid_return_date();
1003 $("#checkin-form").submit(function( event ) {
1004 if ( !check_valid_return_date() ) {
1005 event.preventDefault();
1009 function check_valid_return_date() {
1010 if ( $("#return_date_override").val() ) {
1011 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
1012 var now = new Date();
1013 if ( !datetime || datetime > now ) {
1014 alert("Invalid return date/time!");
1015 $("#return_date_override").val("")
1019 // Add saved date information to onscreen message, which
1020 // may or may not be hidden
1021 $("#saved_return_date").text( $("#return_date_override").val() );
1025 $("#exemptcheck").change(function () {
1026 if (this.checked == true) {
1027 $("#barcode").addClass("input-warning");
1028 $("#exemptfines").show();
1030 $("#barcode").removeClass("input-warning");
1031 $("#exemptfines").hide();
1033 $("#barcode").focus();
1035 $("#dropboxcheck").change(function () {
1036 if (this.checked == true) {
1037 $("#barcode").addClass("input-warning");
1038 $("#dropboxmode").show();
1040 $("#return_date_override_fields :input").prop('disabled', true);
1041 $("#return_date_override").datetimepicker("disable");
1043 $("#barcode").removeClass("input-warning");
1044 $("#dropboxmode").hide();
1046 $("#return_date_override_fields :input").prop('disabled', false);
1047 $("#return_date_override").datetimepicker("enable");
1049 $("#barcode").focus();
1051 $("#forgivemanualholdsexpire").change(function () {
1052 if (this.checked == true) {
1053 $("#barcode").addClass("input-warning");
1054 $("#forgivemanualholdsexpire-alert").show();
1056 $("#barcode").removeClass("input-warning");
1057 $("#forgivemanualholdsexpire-alert").hide();
1059 $("#barcode").focus();
1062 [% IF(overduecharges) %]
1063 $("#barcode").focus(function () {
1064 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1065 $("#barcode").addClass("input-warning");
1067 $("#barcode").removeClass("input-warning");
1070 $("#barcode").blur(function () {
1071 $("#barcode").removeClass("input-warning");
1075 $('.openWin').on("click",function(e){
1076 Dopop( $(this).data("url") );
1079 $('.print').on("click",function(e){
1080 this.form.print_slip.value = 1;
1084 $('.cancel-hold').on("click",function(e){
1085 this.form.cancel_reserve.value = 1;
1089 $('.action').on("click",function(e){
1090 this.checked = false;
1091 this.form.return_date_override.value = '';
1092 this.form.return_date_override_remember.checked = false;
1093 this.form.barcode.focus();
1094 $("#return_date_remember").hide();
1098 $("#return_date_override_remember").on("change", function(){
1099 if( $(this).prop("checked" ) ){
1100 if( $("#return_date_override").val() == "" ){
1101 $("#saved_return_date").text( _("No date selected") );
1103 $("#saved_return_date").text( $("#return_date_override").val() );
1105 $("#return_date_remember").show();
1107 $("#return_date_remember").hide();
1110 $('[data-toggle="tooltip"]').tooltip();
1115 [% INCLUDE 'intranet-bottom.inc' %]