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 | uri %]&branchcode=[% collectionBranch | uri %]&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>
293 [% IF errmsgloo.data_corrupted %]
294 <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>
296 [% END # /FOREACH errmsgloo %]
297 </div> <!-- /.dialog.dialog-alert -->
298 [% END #/IF errmsgloop %]
300 [% IF ( checkinmsg ) %]
301 [% IF ( checkinmsgtype == 'alert' ) %]
302 <div class="dialog alert">
304 <div class="dialog message">
306 <p class="problem">[% checkinmsg | html_line_break %]</p>
308 [% END # /IF checkinmsg %]
309 [% END # /BLOCK all_checkin_messages %]
312 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
313 <div class="modal-dialog">
314 <div class="modal-content">
315 <form method="post" action="returns.pl" name="mainform" id="mainform">
316 <div class="modal-header">
321 <div class="modal-body">
323 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
324 [% itembarcode | html %]: [% title | html %]
333 This item must be checked in at following library:
335 [% Branches.GetName( rightbranch ) | html %]
338 [% INCLUDE all_checkin_messages %]
339 </div> <!-- /.modal-body -->
340 <div class="modal-footer">
341 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
343 </form> <!-- /#mainform -->
344 </div> <!-- /.modal-content -->
345 </div> <!-- /.modal-dialog -->
346 </div> <!-- /#wrong-branch-modal -->
347 [% END # /IF wrongbranch %]
349 <!-- case of a mistake in transfer loop -->
350 [% UNLESS ( hold_auto_filled && diffbranch ) %]
351 [% IF WrongTransfer && !transfertodo %]
352 [% IF Koha.Preference('TransfersBlockCirc') %]
353 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
355 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
357 <div class="modal-dialog">
358 <div class="modal-content">
359 <div class="modal-header">
361 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
364 <div class="modal-body">
366 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
367 [% itembarcode | html %]: [% title | html %]
370 [% INCLUDE all_checkin_messages %]
372 <div class="modal-footer">
374 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
376 <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>
377 <!-- CANCEL TRANSFER -->
378 <form method="post" action="returns.pl" name="mainform">
379 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
380 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
381 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
382 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
383 <input type="hidden" name="canceltransfer" value="1" />
384 [% FOREACH inputloo IN inputloop %]
385 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
386 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
387 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
389 </form> <!-- /mainform -->
390 </div> <!-- /.modal-footer -->
391 </div> <!-- /.modal-content -->
392 </div> <!-- /.modal-dialog -->
393 </div> <!-- /#wrong-transfer-modal -->
394 [% END # /IF WrongTransfer && !transfertodo %]
395 [% END # /UNLESS hold_auto_filled && diffbranch %]
399 <div id="hold-found1" class="modal fade audio-alert-action block">
400 <div class="modal-dialog">
401 <div class="modal-content">
402 <form method="post" action="returns.pl" class="confirm">
403 <div class="modal-header">
405 Hold found (item is already waiting):
407 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
408 <div class="hold-found-barcode">
409 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
414 <div class="modal-body">
415 [% IF ( reservenotes ) %]
416 <h4>Notes: [% reservenotes | html %]</h4>
422 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
423 <span class="patron-category"> - [% patron.category.description | html %]</span>
425 [% INCLUDE display_holdpatron_address %]
426 [% IF ( patron.phone ) %]
427 <li> [% patron.phone | html %]</li>
430 [% IF ( patron.email ) %]
431 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
434 [% IF ( patron.debarred ) %]
435 <li class="error">Patron is RESTRICTED</li>
438 [% IF ( patron.gonenoaddress ) %]
439 <li class="error">Patron's address is in doubt</li>
443 [% IF ( transfertodo ) %]
444 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
446 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
449 [% FOREACH inputloo IN inputloop %]
450 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
451 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
452 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
455 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
456 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
457 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
458 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
459 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
460 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
461 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
462 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
464 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
465 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
466 [% INCLUDE all_checkin_messages %]
467 </div> <!-- /.modal-body -->
469 <div class="modal-footer">
470 <input type="hidden" name="cancel_reserve" value="0" />
472 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
473 <i class="fa fa-check"></i> Confirm hold
476 <input type="hidden" name="print_slip" value="0" />
477 <button type="submit" class="btn btn-default print">
478 <i class="fa fa-print"></i> Print slip and confirm
481 <button type="submit" class="btn btn-default deny cancel-hold">
482 <i class="fa fa-times"></i> Cancel hold
484 </div> <!-- /.modal-footer -->
485 </form> <!-- /.confirm -->
486 </div> <!-- /.modal-content -->
487 </div> <!-- /.modal-dialog -->
488 </div> <!-- /#hold-found1 -->
489 [% END # /IF waiting %]
491 [% IF transfer || needstransfer %]
492 [% IF Koha.Preference('TransfersBlockCirc') %]
493 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
495 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
497 <div class="modal-dialog">
498 <div class="modal-content">
499 <form method="post" action="returns.pl" name="mainform" id="mainform">
500 <div class="modal-header">
502 Please return this item to [% Branches.GetName( returnbranch ) | html %]
505 <div class="modal-body">
507 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
508 [% itembarcode | html %]: [% title | html %]
516 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
517 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
518 <input type="hidden" name="barcode" value="0" />
519 [% INCLUDE all_checkin_messages %]
521 <div class="modal-footer">
523 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
524 <button type="submit" 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>
525 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
527 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
528 <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>
530 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
531 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
532 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
533 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
534 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
535 [% FOREACH inputloo IN inputloop %]
536 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
537 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
538 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
540 </div> <!-- /.modal-footer -->
541 </form> <!-- /#mainform -->
542 </div> <!-- /.modal-content -->
543 </div> <!-- /.modal-dialog -->
544 </div> <!-- /#item-transfer-modal -->
545 [% END # /IF transfer || needstransfer %]
547 <!-- case of simple return no issue or transfer but with a reservation -->
548 [% IF ( reserved ) %]
550 <div id="hold-found2" class="modal fade audio-alert-action block">
551 <div class="modal-dialog">
552 <div class="modal-content">
553 <form method="post" action="returns.pl" class="confirm">
554 <div class="modal-header">
558 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
559 <div class="hold-found-barcode">
560 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
565 <div class="modal-body">
566 [% IF ( reservenotes ) %]
568 <p>[% reservenotes | html %]</p>
574 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
575 <span class="patron-category"> - [% patron.category.description | html %]</span>
578 [% INCLUDE display_holdpatron_address %]
580 [% IF ( patron.phone ) %]
581 <li>[% patron.phone | html %]</li>
584 [% IF ( patron.email ) %]
586 [% IF ( transfertodo ) %]
587 [% patron.email | html %]
589 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
594 [% UNLESS ( transfertodo) %]
595 [% INCLUDE display_bormessagepref %]
598 [% IF ( patron.debarred ) %]
599 <li class="error">Patron is RESTRICTED</li>
602 [% IF ( patron.gonenoaddress ) %]
603 <li class="error">Patron's address is in doubt</li>
606 [% IF ( transfertodo ) %]
607 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
609 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
612 <input type="hidden" name="print_slip" value="0" />
615 [% FOREACH inputloo IN inputloop %]
616 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
617 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
618 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
621 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
622 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
623 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
624 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
625 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
626 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
627 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
628 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
629 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
630 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
631 [% INCLUDE all_checkin_messages %]
634 <div class="modal-footer">
635 [% IF ( transfertodo ) %]
636 <button type="submit" class="btn btn-default approve">
637 <i class="fa fa-check"></i> Confirm hold and transfer
639 <button type="submit" class="btn btn-default print">
640 <i class="fa fa-print"></i> Print slip, transfer, and confirm
643 <button type="submit" class="btn btn-default approve">
644 <i class="fa fa-check"></i> Confirm hold
646 <button type="submit" class="btn btn-default print">
647 <i class="fa fa-print"></i> Print slip and confirm
651 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
652 <i class="fa fa-times"></i> Ignore
654 </div> <!-- /.modal-footer -->
655 </form> <!-- /.confirm -->
656 </div> <!-- /.modal-content -->
657 </div> <!-- /.modal-dialog -->
658 </div> <!-- /#hold-found2 -->
659 [% END #/IF reserved %]
660 [% END # /IF found %]
662 <div class="static_checkin_messages">
663 [% INCLUDE all_checkin_messages %]
666 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
667 <fieldset id="circ_returns_checkin">
668 <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>
671 <div class="col-sm-6">
672 <div class="hint">Enter item barcode:</div>
673 <div class="form-control-group">
674 [% IF ( exemptfine ) %]
675 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
676 [% ELSIF ( dropboxmode ) %]
677 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
679 <input name="barcode" id="barcode" size="14" class="barcode focus" />
681 <button type="submit" class="btn btn-default">Check in</button>
682 [% FOREACH inputloo IN inputloop %]
683 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
684 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
685 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
688 <div id="show-circ-settings">
689 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
692 <div class="col-sm-6">
693 [% IF ( exemptfine ) %]
694 <div id="exemptfines" class="checkin-active-setting">
696 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
698 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
701 [% IF ( forgivemanualholdsexpire ) %]
702 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
704 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
706 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
709 [% IF ( dropboxmode ) %]
710 <div id="dropboxmode" class="checkin-active-setting">
712 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
714 <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>
716 [% IF ( return_date_override_remember ) %]
717 <div id="return_date_remember" class="checkin-active-setting">
719 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
721 <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>
726 <div class="circ-settings">
727 [% IF Koha.Preference('SpecifyReturnDate') %]
728 <div class="date-select" id="return_date_override_fields">
729 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
731 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
735 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
736 <div class="circ-setting">
737 [% IF ( return_date_override_remember ) %]
738 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
740 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
742 <label for="return_date_override_remember"> Remember due date for next check in</label>
744 </div> <!-- /.date-select -->
747 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
748 <div id="forgive-overdue-fines" class="circ-setting">
749 [% IF ( exemptfine ) %]
750 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
752 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
754 <label for="exemptcheck">Forgive overdue charges</label>
756 [% END %] <!-- overduecharges -->
758 <div id="book-drop-mode" class="circ-setting">
759 [% IF ( dropboxmode ) %]
760 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
762 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
764 <label for="dropboxcheck">Book drop mode</label>
767 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
768 <div class="forgive-manual-hold-fees circ-setting">
769 [% IF ( forgivemanualholdsexpire ) %]
770 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
772 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
774 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
776 [% END %] <!-- overduecharges -->
778 </div> <!-- /.circ-settings -->
779 </fieldset> <!-- /#circ_returns_checkin -->
780 </form> <!-- /#checkin-form -->
783 <h2>Checked-in items</h2>
784 <table id="checkedintable">
787 <th class="ci-duedate">Due date</th>
788 <th class="ci-title">Title</th>
789 <th class="ci-author">Author</th>
790 <th class="ci-barcode">Barcode</th>
791 <th class="ci-homelibrary">Home library</th>
792 <th class="ci-holdinglibrary">Holding library</th>
793 <th class="ci-shelvinglocation">Shelving location</th>
794 <th class="ci-callnumber">Call number</th>
795 <th class="ci-dateaccessioned">Date acquired</th>
796 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
797 <th class="ci-itemtype">Item 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 %]
847 <td class="ci-recordlevelitemtype">
848 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
850 <td class="ci-itemtype">
851 [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
853 <td class="ci-patron">
854 [% IF ( riloo.duedate ) %]
855 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
856 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
858 [% IF riloo.borissuescount %]
859 <span class="results_summary nowrap">
860 <span class="label">Checkouts:</span>
861 <span class="number_box">
862 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
871 [% IF ( riloo.patron.borrowernotes ) %]
872 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
874 [% IF ( riloo.itemnote ) %]
875 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
877 [% IF ( riloo.itemnotes_nonpublic ) %]
878 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
882 [% END # /FOREACH riloo %]
883 </table> <!-- /#checkedintable -->
884 [% END # /IF riloop %]
886 [% IF Koha.Preference('CircSidebar') %]
887 </div> <!-- /.col-sm-10.col-sm-push-2 -->
888 <div class="col-sm-2 col-sm-pull-10">
890 [% INCLUDE 'circ-nav.inc' %]
892 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
893 </div> <!-- /.row -->
895 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
896 </div> <!-- /.row -->
900 </div> <!-- /.col-sm-12 -->
901 </div> <!-- /.row -->
903 [% MACRO jsinclude BLOCK %]
904 [% INCLUDE 'datatables.inc' %]
905 [% INCLUDE 'columns_settings.inc' %]
906 [% INCLUDE 'calendar.inc' %]
907 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
908 [% Asset.js("js/pages/circulation.js") | $raw %]
909 [% INCLUDE 'timepicker.inc' %]
912 function Dopop(link) {
913 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
914 $("#barcode").focus();
916 $(document).ready(function () {
917 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
918 $("#barcode").prop("disabled", true);
919 $(".show_checkin_dialog").show();
920 }).on('hidden.bs.modal', function() {
921 $("#barcode").prop("disabled", false).focus();
923 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
924 $("#barcode").prop("disabled", false).focus();
925 }).on('hidden.bs.modal', function() {
926 $("#barcode").prop("disabled", false).focus();
929 $("body").on("click", ".show_checkin_dialog button", function(e){
931 $(".modal").modal("show");
934 $(".print-slip").on('click', function(e) {
936 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | uri %]&biblionumber=[% biblionumber | uri %]');
940 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | uri %]&biblionumber=[% biblionumber | uri %]&itemnumber=[% itemnumber | uri %]');
943 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
944 var returns_table = KohaTable("checkedintable", {
949 "dom": 'B<"clearfix">t',
950 }, columns_settings);
952 $("#return_date_override").datetimepicker({
953 onClose: function(dateText, inst) {
954 if (validate_date(dateText, inst) ) {
955 $("#barcode").focus();
962 }).on("change", function(e, value) {
963 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
965 $("#return_date_override").on("blur", function() {
966 check_valid_return_date();
968 $("#checkin-form").submit(function( event ) {
969 if ( !check_valid_return_date() ) {
970 event.preventDefault();
974 function check_valid_return_date() {
975 if ( $("#return_date_override").val() ) {
976 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
977 var now = new Date();
978 if ( !datetime || datetime > now ) {
979 alert("Invalid return date/time!");
980 $("#return_date_override").val("")
984 // Add saved date information to onscreen message, which
985 // may or may not be hidden
986 $("#saved_return_date").text( $("#return_date_override").val() );
990 $("#exemptcheck").change(function () {
991 if (this.checked == true) {
992 $("#barcode").addClass("input-warning");
993 $("#exemptfines").show();
995 $("#barcode").removeClass("input-warning");
996 $("#exemptfines").hide();
998 $("#barcode").focus();
1000 $("#dropboxcheck").change(function () {
1001 if (this.checked == true) {
1002 $("#barcode").addClass("input-warning");
1003 $("#dropboxmode").show();
1005 $("#return_date_override_fields :input").prop('disabled', true);
1006 $("#return_date_override").datetimepicker("disable");
1008 $("#barcode").removeClass("input-warning");
1009 $("#dropboxmode").hide();
1011 $("#return_date_override_fields :input").prop('disabled', false);
1012 $("#return_date_override").datetimepicker("enable");
1014 $("#barcode").focus();
1016 $("#forgivemanualholdsexpire").change(function () {
1017 if (this.checked == true) {
1018 $("#barcode").addClass("input-warning");
1019 $("#forgivemanualholdsexpire-alert").show();
1021 $("#barcode").removeClass("input-warning");
1022 $("#forgivemanualholdsexpire-alert").hide();
1024 $("#barcode").focus();
1027 [% IF(overduecharges) %]
1028 $("#barcode").focus(function () {
1029 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1030 $("#barcode").addClass("input-warning");
1032 $("#barcode").removeClass("input-warning");
1035 $("#barcode").blur(function () {
1036 $("#barcode").removeClass("input-warning");
1040 $('.openWin').on("click",function(e){
1041 Dopop( $(this).data("url") );
1044 $('.print').on("click",function(e){
1045 this.form.print_slip.value = 1;
1049 $('.cancel-hold').on("click",function(e){
1050 this.form.cancel_reserve.value = 1;
1054 $('.action').on("click",function(e){
1055 this.checked = false;
1056 this.form.return_date_override.value = '';
1057 this.form.return_date_override_remember.checked = false;
1058 this.form.barcode.focus();
1059 $("#return_date_remember").hide();
1063 $("#return_date_override_remember").on("change", function(){
1064 if( $(this).prop("checked" ) ){
1065 if( $("#return_date_override").val() == "" ){
1066 $("#saved_return_date").text( _("No date selected") );
1068 $("#saved_return_date").text( $("#return_date_override").val() );
1070 $("#return_date_remember").show();
1072 $("#return_date_remember").hide();
1075 $('[data-toggle="tooltip"]').tooltip();
1080 [% INCLUDE 'intranet-bottom.inc' %]