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">
162 <h3>This item has been claimed as returned by:</h3>
164 [% FOREACH rc IN ReturnClaims %]
165 [% SET patron = rc.patron %]
167 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
168 [% patron.firstname | html %] [% patron.surname | html %]
176 <!-- Patron has waiting holds -->
177 [% IF ( waiting_holds ) %]
178 <div id="awaiting-pickup" class="dialog message">
179 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
180 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
184 <!-- Patron is restricted and checkin was backdated -->
185 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
186 <div id="restricted_backdated" class="dialog message">
188 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
189 [% patron.firstname | html %] [% patron.surname | html %]
191 is restricted. Please verify this patron should still be restricted.
197 [% IF ( errmsgloop ) %]
198 <div class="dialog alert audio-alert-warning">
199 <h3>Check in message</h3>
200 [% IF itembiblionumber %]
201 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
203 [% FOREACH errmsgloo IN errmsgloop %]
204 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
206 Not for loan status updated.
208 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
209 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
214 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
215 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
221 [% IF ( errmsgloo.ItemLocationUpdated ) %]
223 Item shelving location updated.
225 [% IF errmsgloo.ItemLocationUpdated.from %]
226 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
228 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %]
229 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
231 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %]
237 [% IF errmsgloo.ItemLocationUpdated.to %]
238 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
240 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %]
241 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
243 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %]
250 [% IF ( errmsgloo.badbarcode ) %]
251 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
253 [% IF ( errmsgloo.ispermanent ) %]
254 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
256 [% IF ( errmsgloo.notissued ) %]
257 <p class="problem">Not checked out.</p>
259 [% IF ( errmsgloo.localuse) %]
260 <p class="problem">Local use recorded</p>
262 [% IF ( errmsgloo.waslost ) %]
263 [% IF Koha.Preference('BlockReturnOfLostItems') %]
264 <p class="problem">Item is lost, cannot be checked in.</p>
266 <p class="problem">Item was lost, now found.</p>
268 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
269 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
270 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
271 <h5>Cannot check in</h5>
272 <p><strong>NOT CHECKED IN</strong></p>
274 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
277 [% IF ( errmsgloo.withdrawn ) %]
278 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
279 <h5>Cannot check in</h5>
280 <p><strong>NOT CHECKED IN</strong></p>
282 <p class="problem">Item is withdrawn.</p>
284 [% IF ( errmsgloo.debarred ) %]
285 <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>
287 [% IF ( errmsgloo.prevdebarred ) %]
288 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
290 [% IF ( errmsgloo.foreverdebarred ) %]
291 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
294 [% IF errmsgloo.data_corrupted %]
295 <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>
297 [% END # /FOREACH errmsgloo %]
298 </div> <!-- /.dialog.dialog-alert -->
299 [% END #/IF errmsgloop %]
301 [% IF ( checkinmsg ) %]
302 [% IF ( checkinmsgtype == 'alert' ) %]
303 <div class="dialog alert">
305 <div class="dialog message">
307 <p class="problem">[% checkinmsg | html_line_break %]</p>
309 [% END # /IF checkinmsg %]
310 [% END # /BLOCK all_checkin_messages %]
313 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
314 <div class="modal-dialog">
315 <div class="modal-content">
316 <form method="post" action="returns.pl" name="mainform" id="mainform">
317 <div class="modal-header">
322 <div class="modal-body">
324 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
325 [% itembarcode | html %]: [% title | html %]
334 This item must be checked in at following library:
336 [% Branches.GetName( rightbranch ) | html %]
339 [% INCLUDE all_checkin_messages %]
340 </div> <!-- /.modal-body -->
341 <div class="modal-footer">
342 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
344 </form> <!-- /#mainform -->
345 </div> <!-- /.modal-content -->
346 </div> <!-- /.modal-dialog -->
347 </div> <!-- /#wrong-branch-modal -->
348 [% END # /IF wrongbranch %]
350 <!-- case of a mistake in transfer loop -->
351 [% UNLESS ( hold_auto_filled && diffbranch ) %]
352 [% IF WrongTransfer && !transfertodo %]
353 [% IF Koha.Preference('TransfersBlockCirc') %]
354 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
356 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
358 <div class="modal-dialog">
359 <div class="modal-content">
360 <div class="modal-header">
362 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
365 <div class="modal-body">
367 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
368 [% itembarcode | html %]: [% title | html %]
371 [% INCLUDE all_checkin_messages %]
373 <div class="modal-footer">
375 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
377 <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>
378 <!-- CANCEL TRANSFER -->
379 <form method="post" action="returns.pl" name="mainform">
380 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
381 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
382 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
383 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
384 <input type="hidden" name="canceltransfer" value="1" />
385 [% FOREACH inputloo IN inputloop %]
386 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
387 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
388 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
390 </form> <!-- /mainform -->
391 </div> <!-- /.modal-footer -->
392 </div> <!-- /.modal-content -->
393 </div> <!-- /.modal-dialog -->
394 </div> <!-- /#wrong-transfer-modal -->
395 [% END # /IF WrongTransfer && !transfertodo %]
396 [% END # /UNLESS hold_auto_filled && diffbranch %]
400 <div id="hold-found1" class="modal fade audio-alert-action block">
401 <div class="modal-dialog">
402 <div class="modal-content">
403 <form method="post" action="returns.pl" class="confirm">
404 <div class="modal-header">
406 Hold found (item is already waiting):
408 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
409 <div class="hold-found-barcode">
410 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
415 <div class="modal-body">
416 [% IF ( reservenotes ) %]
417 <h4>Notes: [% reservenotes | html %]</h4>
423 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
424 <span class="patron-category"> - [% patron.category.description | html %]</span>
426 [% INCLUDE display_holdpatron_address %]
427 [% IF ( patron.phone ) %]
428 <li> [% patron.phone | html %]</li>
431 [% IF ( patron.email ) %]
432 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
435 [% IF ( patron.debarred ) %]
436 <li class="error">Patron is RESTRICTED</li>
439 [% IF ( patron.gonenoaddress ) %]
440 <li class="error">Patron's address is in doubt</li>
444 [% IF ( transfertodo ) %]
445 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
447 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
450 [% FOREACH inputloo IN inputloop %]
451 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
452 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
453 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
456 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
457 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
458 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
459 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
460 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
461 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
462 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
463 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
465 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
466 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
467 [% INCLUDE all_checkin_messages %]
468 </div> <!-- /.modal-body -->
470 <div class="modal-footer">
471 <input type="hidden" name="cancel_reserve" value="0" />
473 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
474 <i class="fa fa-check"></i> Confirm hold
477 <input type="hidden" name="print_slip" value="0" />
478 <button type="submit" class="btn btn-default print">
479 <i class="fa fa-print"></i> Print slip and confirm
482 <button type="submit" class="btn btn-default deny cancel-hold">
483 <i class="fa fa-times"></i> Cancel hold
485 </div> <!-- /.modal-footer -->
486 </form> <!-- /.confirm -->
487 </div> <!-- /.modal-content -->
488 </div> <!-- /.modal-dialog -->
489 </div> <!-- /#hold-found1 -->
490 [% END # /IF waiting %]
492 [% IF transfer || needstransfer %]
493 [% IF Koha.Preference('TransfersBlockCirc') %]
494 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
496 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
498 <div class="modal-dialog">
499 <div class="modal-content">
500 <form method="post" action="returns.pl" name="mainform" id="mainform">
501 <div class="modal-header">
503 Please return this item to [% Branches.GetName( returnbranch ) | html %]
506 <div class="modal-body">
508 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
509 [% itembarcode | html %]: [% title | html %]
517 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
518 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
519 <input type="hidden" name="barcode" value="0" />
520 [% INCLUDE all_checkin_messages %]
522 <div class="modal-footer">
524 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
525 <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>
526 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
528 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
529 <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>
531 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
532 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
533 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
534 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
535 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
536 [% FOREACH inputloo IN inputloop %]
537 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
538 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
539 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
541 </div> <!-- /.modal-footer -->
542 </form> <!-- /#mainform -->
543 </div> <!-- /.modal-content -->
544 </div> <!-- /.modal-dialog -->
545 </div> <!-- /#item-transfer-modal -->
546 [% END # /IF transfer || needstransfer %]
548 <!-- case of simple return no issue or transfer but with a reservation -->
549 [% IF ( reserved ) %]
551 <div id="hold-found2" class="modal fade audio-alert-action block">
552 <div class="modal-dialog">
553 <div class="modal-content">
554 <form method="post" action="returns.pl" class="confirm">
555 <div class="modal-header">
559 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
560 <div class="hold-found-barcode">
561 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
566 <div class="modal-body">
567 [% IF ( reservenotes ) %]
569 <p>[% reservenotes | html %]</p>
575 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
576 <span class="patron-category"> - [% patron.category.description | html %]</span>
579 [% INCLUDE display_holdpatron_address %]
581 [% IF ( patron.phone ) %]
582 <li>[% patron.phone | html %]</li>
585 [% IF ( patron.email ) %]
587 [% IF ( transfertodo ) %]
588 [% patron.email | html %]
590 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
595 [% UNLESS ( transfertodo) %]
596 [% INCLUDE display_bormessagepref %]
599 [% IF ( patron.debarred ) %]
600 <li class="error">Patron is RESTRICTED</li>
603 [% IF ( patron.gonenoaddress ) %]
604 <li class="error">Patron's address is in doubt</li>
607 [% IF ( transfertodo ) %]
608 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
610 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
613 <input type="hidden" name="print_slip" value="0" />
616 [% FOREACH inputloo IN inputloop %]
617 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
618 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
619 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
622 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
623 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
624 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
625 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
626 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
627 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
628 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
629 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
630 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
631 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
632 [% INCLUDE all_checkin_messages %]
635 <div class="modal-footer">
636 [% IF ( transfertodo ) %]
637 <button type="submit" class="btn btn-default approve">
638 <i class="fa fa-check"></i> Confirm hold and transfer
640 <button type="submit" class="btn btn-default print">
641 <i class="fa fa-print"></i> Print slip, transfer, and confirm
644 <button type="submit" class="btn btn-default approve">
645 <i class="fa fa-check"></i> Confirm hold
647 <button type="submit" class="btn btn-default print">
648 <i class="fa fa-print"></i> Print slip and confirm
652 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
653 <i class="fa fa-times"></i> Ignore
655 </div> <!-- /.modal-footer -->
656 </form> <!-- /.confirm -->
657 </div> <!-- /.modal-content -->
658 </div> <!-- /.modal-dialog -->
659 </div> <!-- /#hold-found2 -->
660 [% END #/IF reserved %]
661 [% END # /IF found %]
663 <div class="static_checkin_messages">
664 [% INCLUDE all_checkin_messages %]
667 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
668 <fieldset id="circ_returns_checkin">
669 <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>
672 <div class="col-sm-6">
673 <div class="hint">Enter item barcode:</div>
674 <div class="form-control-group">
675 [% IF ( exemptfine ) %]
676 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
677 [% ELSIF ( dropboxmode ) %]
678 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
680 <input name="barcode" id="barcode" size="14" class="barcode focus" />
682 <button type="submit" class="btn btn-default">Check in</button>
683 [% FOREACH inputloo IN inputloop %]
684 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
685 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
686 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
689 <div id="show-circ-settings">
690 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
693 <div class="col-sm-6">
694 [% IF ( exemptfine ) %]
695 <div id="exemptfines" class="checkin-active-setting">
697 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
699 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
702 [% IF ( forgivemanualholdsexpire ) %]
703 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
705 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
707 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
710 [% IF ( dropboxmode ) %]
711 <div id="dropboxmode" class="checkin-active-setting">
713 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
715 <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>
717 [% IF ( return_date_override_remember ) %]
718 <div id="return_date_remember" class="checkin-active-setting">
720 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
722 <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>
727 <div class="circ-settings">
728 [% IF Koha.Preference('SpecifyReturnDate') %]
729 <div class="date-select" id="return_date_override_fields">
730 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
732 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
736 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
737 <div class="circ-setting">
738 [% IF ( return_date_override_remember ) %]
739 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
741 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
743 <label for="return_date_override_remember"> Remember due date for next check in</label>
745 </div> <!-- /.date-select -->
748 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
749 <div id="forgive-overdue-fines" class="circ-setting">
750 [% IF ( exemptfine ) %]
751 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
753 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
755 <label for="exemptcheck">Forgive overdue charges</label>
757 [% END %] <!-- overduecharges -->
759 <div id="book-drop-mode" class="circ-setting">
760 [% IF ( dropboxmode ) %]
761 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
763 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
765 <label for="dropboxcheck">Book drop mode</label>
768 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
769 <div class="forgive-manual-hold-fees circ-setting">
770 [% IF ( forgivemanualholdsexpire ) %]
771 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
773 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
775 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
777 [% END %] <!-- overduecharges -->
779 </div> <!-- /.circ-settings -->
780 </fieldset> <!-- /#circ_returns_checkin -->
781 </form> <!-- /#checkin-form -->
784 <h2>Checked-in items</h2>
785 <table id="checkedintable">
788 <th class="ci-duedate">Due date</th>
789 <th class="ci-title">Title</th>
790 <th class="ci-author">Author</th>
791 <th class="ci-barcode">Barcode</th>
792 <th class="ci-homelibrary">Home library</th>
793 <th class="ci-holdinglibrary">Holding library</th>
794 <th class="ci-shelvinglocation">Shelving location</th>
795 <th class="ci-callnumber">Call number</th>
796 <th class="ci-dateaccessioned">Date acquired</th>
797 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
798 <th class="ci-itemtype">Item type</th>
799 <th class="ci-patron">Patron</th>
800 <th class="ci-note">Note</th>
804 [% FOREACH riloo IN riloop %]
806 <td class="ci-duedate">
807 [% IF ( riloo.duedate ) %]
808 [% IF ( riloo.return_overdue ) %]
809 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
811 [% riloo.duedate | html %]
817 <td class="ci-title">
818 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
819 [% riloo.itemtitle | html %]
820 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
821 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
822 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
824 [% IF ( riloo.enumchron ) %]
826 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
829 <td class="ci-author">[% riloo.itemauthor | html %]</td>
830 <td class="ci-barcode">
831 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
833 <td class="ci-homelibrary">
834 [% Branches.GetName( riloo.homebranch ) | html %]
836 <td class="ci-holdinglibrary">
837 [% Branches.GetName( riloo.holdingbranch ) | html %]
839 <td class="ci-shelvinglocation">
840 <span class="shelvingloc">[% riloo.location | html %]</span>
842 <td class="ci-callnumber">
843 [% riloo.itemcallnumber | html %]
845 <td class="ci-dateaccessioned">
846 [% riloo.dateaccessioned | $KohaDates %]
848 <td class="ci-recordlevelitemtype">
849 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
851 <td class="ci-itemtype">
852 [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
854 <td class="ci-patron">
855 [% IF ( riloo.duedate ) %]
856 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
857 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
859 [% IF riloo.borissuescount %]
860 <span class="results_summary nowrap">
861 <span class="label">Checkouts:</span>
862 <span class="number_box">
863 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
872 [% IF ( riloo.patron.borrowernotes ) %]
873 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
875 [% IF ( riloo.itemnote ) %]
876 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
878 [% IF ( riloo.itemnotes_nonpublic ) %]
879 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
883 [% END # /FOREACH riloo %]
884 </table> <!-- /#checkedintable -->
885 [% END # /IF riloop %]
887 [% IF Koha.Preference('CircSidebar') %]
888 </div> <!-- /.col-sm-10.col-sm-push-2 -->
889 <div class="col-sm-2 col-sm-pull-10">
891 [% INCLUDE 'circ-nav.inc' %]
893 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
894 </div> <!-- /.row -->
896 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
897 </div> <!-- /.row -->
901 </div> <!-- /.col-sm-12 -->
902 </div> <!-- /.row -->
904 [% MACRO jsinclude BLOCK %]
905 [% INCLUDE 'datatables.inc' %]
906 [% INCLUDE 'columns_settings.inc' %]
907 [% INCLUDE 'calendar.inc' %]
908 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
909 [% Asset.js("js/pages/circulation.js") | $raw %]
910 [% INCLUDE 'timepicker.inc' %]
913 function Dopop(link) {
914 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
915 $("#barcode").focus();
917 $(document).ready(function () {
918 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
919 $("#barcode").prop("disabled", true);
920 $(".show_checkin_dialog").show();
921 }).on('hidden.bs.modal', function() {
922 $("#barcode").prop("disabled", false).focus();
924 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
925 $("#barcode").prop("disabled", false).focus();
926 }).on('hidden.bs.modal', function() {
927 $("#barcode").prop("disabled", false).focus();
930 $("body").on("click", ".show_checkin_dialog button", function(e){
932 $(".modal").modal("show");
935 $(".print-slip").on('click', function(e) {
937 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
941 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
944 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
945 var returns_table = KohaTable("checkedintable", {
950 "dom": 'B<"clearfix">t',
951 }, columns_settings);
953 $("#return_date_override").datetimepicker({
954 onClose: function(dateText, inst) {
955 if (validate_date(dateText, inst) ) {
956 $("#barcode").focus();
963 }).on("change", function(e, value) {
964 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
966 $("#return_date_override").on("blur", function() {
967 check_valid_return_date();
969 $("#checkin-form").submit(function( event ) {
970 if ( !check_valid_return_date() ) {
971 event.preventDefault();
975 function check_valid_return_date() {
976 if ( $("#return_date_override").val() ) {
977 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
978 var now = new Date();
979 if ( !datetime || datetime > now ) {
980 alert("Invalid return date/time!");
981 $("#return_date_override").val("")
985 // Add saved date information to onscreen message, which
986 // may or may not be hidden
987 $("#saved_return_date").text( $("#return_date_override").val() );
991 $("#exemptcheck").change(function () {
992 if (this.checked == true) {
993 $("#barcode").addClass("input-warning");
994 $("#exemptfines").show();
996 $("#barcode").removeClass("input-warning");
997 $("#exemptfines").hide();
999 $("#barcode").focus();
1001 $("#dropboxcheck").change(function () {
1002 if (this.checked == true) {
1003 $("#barcode").addClass("input-warning");
1004 $("#dropboxmode").show();
1006 $("#return_date_override_fields :input").prop('disabled', true);
1007 $("#return_date_override").datetimepicker("disable");
1009 $("#barcode").removeClass("input-warning");
1010 $("#dropboxmode").hide();
1012 $("#return_date_override_fields :input").prop('disabled', false);
1013 $("#return_date_override").datetimepicker("enable");
1015 $("#barcode").focus();
1017 $("#forgivemanualholdsexpire").change(function () {
1018 if (this.checked == true) {
1019 $("#barcode").addClass("input-warning");
1020 $("#forgivemanualholdsexpire-alert").show();
1022 $("#barcode").removeClass("input-warning");
1023 $("#forgivemanualholdsexpire-alert").hide();
1025 $("#barcode").focus();
1028 [% IF(overduecharges) %]
1029 $("#barcode").focus(function () {
1030 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1031 $("#barcode").addClass("input-warning");
1033 $("#barcode").removeClass("input-warning");
1036 $("#barcode").blur(function () {
1037 $("#barcode").removeClass("input-warning");
1041 $('.openWin').on("click",function(e){
1042 Dopop( $(this).data("url") );
1045 $('.print').on("click",function(e){
1046 this.form.print_slip.value = 1;
1050 $('.cancel-hold').on("click",function(e){
1051 this.form.cancel_reserve.value = 1;
1055 $('.action').on("click",function(e){
1056 this.checked = false;
1057 this.form.return_date_override.value = '';
1058 this.form.return_date_override_remember.checked = false;
1059 this.form.barcode.focus();
1060 $("#return_date_remember").hide();
1064 $("#return_date_override_remember").on("change", function(){
1065 if( $(this).prop("checked" ) ){
1066 if( $("#return_date_override").val() == "" ){
1067 $("#saved_return_date").text( _("No date selected") );
1069 $("#saved_return_date").text( $("#return_date_override").val() );
1071 $("#return_date_remember").show();
1073 $("#return_date_remember").hide();
1076 $('[data-toggle="tooltip"]').tooltip();
1081 [% INCLUDE 'intranet-bottom.inc' %]