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-type">Type</th>
798 <th class="ci-patron">Patron</th>
799 <th class="ci-note">Note</th>
803 [% FOREACH riloo IN riloop %]
805 <td class="ci-duedate">
806 [% IF ( riloo.duedate ) %]
807 [% IF ( riloo.return_overdue ) %]
808 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
810 [% riloo.duedate | html %]
816 <td class="ci-title">
817 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
818 [% riloo.itemtitle | html %]
819 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
820 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
821 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
823 [% IF ( riloo.enumchron ) %]
825 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
828 <td class="ci-author">[% riloo.itemauthor | html %]</td>
829 <td class="ci-barcode">
830 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
832 <td class="ci-homelibrary">
833 [% Branches.GetName( riloo.homebranch ) | html %]
835 <td class="ci-holdinglibrary">
836 [% Branches.GetName( riloo.holdingbranch ) | html %]
838 <td class="ci-shelvinglocation">
839 <span class="shelvingloc">[% riloo.location | html %]</span>
841 <td class="ci-callnumber">
842 [% riloo.itemcallnumber | html %]
844 <td class="ci-dateaccessioned">
845 [% riloo.dateaccessioned | $KohaDates %]
848 [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
850 <td class="ci-patron">
851 [% IF ( riloo.duedate ) %]
852 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
853 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
855 [% IF riloo.borissuescount %]
856 <span class="results_summary nowrap">
857 <span class="label">Checkouts:</span>
858 <span class="number_box">
859 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
868 [% IF ( riloo.patron.borrowernotes ) %]
869 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
871 [% IF ( riloo.itemnote ) %]
872 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
874 [% IF ( riloo.itemnotes_nonpublic ) %]
875 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
879 [% END # /FOREACH riloo %]
880 </table> <!-- /#checkedintable -->
881 [% END # /IF riloop %]
883 [% IF Koha.Preference('CircSidebar') %]
884 </div> <!-- /.col-sm-10.col-sm-push-2 -->
885 <div class="col-sm-2 col-sm-pull-10">
887 [% INCLUDE 'circ-nav.inc' %]
889 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
890 </div> <!-- /.row -->
892 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
893 </div> <!-- /.row -->
897 </div> <!-- /.col-sm-12 -->
898 </div> <!-- /.row -->
900 [% MACRO jsinclude BLOCK %]
901 [% INCLUDE 'datatables.inc' %]
902 [% INCLUDE 'columns_settings.inc' %]
903 [% INCLUDE 'calendar.inc' %]
904 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
905 [% Asset.js("js/pages/circulation.js") | $raw %]
906 [% INCLUDE 'timepicker.inc' %]
909 function Dopop(link) {
910 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
911 $("#barcode").focus();
913 $(document).ready(function () {
914 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
915 $("#barcode").prop("disabled", true);
916 $(".show_checkin_dialog").show();
917 }).on('hidden.bs.modal', function() {
918 $("#barcode").prop("disabled", false).focus();
920 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
921 $("#barcode").prop("disabled", false).focus();
922 }).on('hidden.bs.modal', function() {
923 $("#barcode").prop("disabled", false).focus();
926 $("body").on("click", ".show_checkin_dialog button", function(e){
928 $(".modal").modal("show");
931 $(".print-slip").on('click', function(e) {
933 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
937 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
940 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
941 var returns_table = KohaTable("checkedintable", {
946 "dom": 'B<"clearfix">t',
947 }, columns_settings);
949 $("#return_date_override").datetimepicker({
950 onClose: function(dateText, inst) {
951 if (validate_date(dateText, inst) ) {
952 $("#barcode").focus();
959 }).on("change", function(e, value) {
960 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
962 $("#return_date_override").on("blur", function() {
963 check_valid_return_date();
965 $("#checkin-form").submit(function( event ) {
966 if ( !check_valid_return_date() ) {
967 event.preventDefault();
971 function check_valid_return_date() {
972 if ( $("#return_date_override").val() ) {
973 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
974 var now = new Date();
975 if ( !datetime || datetime > now ) {
976 alert("Invalid return date/time!");
977 $("#return_date_override").val("")
981 // Add saved date information to onscreen message, which
982 // may or may not be hidden
983 $("#saved_return_date").text( $("#return_date_override").val() );
987 $("#exemptcheck").change(function () {
988 if (this.checked == true) {
989 $("#barcode").addClass("input-warning");
990 $("#exemptfines").show();
992 $("#barcode").removeClass("input-warning");
993 $("#exemptfines").hide();
995 $("#barcode").focus();
997 $("#dropboxcheck").change(function () {
998 if (this.checked == true) {
999 $("#barcode").addClass("input-warning");
1000 $("#dropboxmode").show();
1002 $("#return_date_override_fields :input").prop('disabled', true);
1003 $("#return_date_override").datetimepicker("disable");
1005 $("#barcode").removeClass("input-warning");
1006 $("#dropboxmode").hide();
1008 $("#return_date_override_fields :input").prop('disabled', false);
1009 $("#return_date_override").datetimepicker("enable");
1011 $("#barcode").focus();
1013 $("#forgivemanualholdsexpire").change(function () {
1014 if (this.checked == true) {
1015 $("#barcode").addClass("input-warning");
1016 $("#forgivemanualholdsexpire-alert").show();
1018 $("#barcode").removeClass("input-warning");
1019 $("#forgivemanualholdsexpire-alert").hide();
1021 $("#barcode").focus();
1024 [% IF(overduecharges) %]
1025 $("#barcode").focus(function () {
1026 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1027 $("#barcode").addClass("input-warning");
1029 $("#barcode").removeClass("input-warning");
1032 $("#barcode").blur(function () {
1033 $("#barcode").removeClass("input-warning");
1037 $('.openWin').on("click",function(e){
1038 Dopop( $(this).data("url") );
1041 $('.print').on("click",function(e){
1042 this.form.print_slip.value = 1;
1046 $('.cancel-hold').on("click",function(e){
1047 this.form.cancel_reserve.value = 1;
1051 $('.action').on("click",function(e){
1052 this.checked = false;
1053 this.form.return_date_override.value = '';
1054 this.form.return_date_override_remember.checked = false;
1055 this.form.barcode.focus();
1056 $("#return_date_remember").hide();
1060 $("#return_date_override_remember").on("change", function(){
1061 if( $(this).prop("checked" ) ){
1062 if( $("#return_date_override").val() == "" ){
1063 $("#saved_return_date").text( _("No date selected") );
1065 $("#saved_return_date").text( $("#return_date_override").val() );
1067 $("#return_date_remember").show();
1069 $("#return_date_remember").hide();
1072 $('[data-toggle="tooltip"]').tooltip();
1077 [% INCLUDE 'intranet-bottom.inc' %]