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.is_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.is_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="button" class="btn btn-default print">
478 <i class="fa fa-print"></i> Print slip and confirm
481 <button type="button" 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">
501 <input type="hidden" name="print_slip" value="0" />
503 <div class="modal-header">
505 Please return this item to [% Branches.GetName( returnbranch ) | html %]
508 <div class="modal-body">
510 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
511 [% itembarcode | html %]: [% title | html %]
519 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
520 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
521 <input type="hidden" name="barcode" value="0" />
522 [% INCLUDE all_checkin_messages %]
524 <div class="modal-footer">
526 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
527 <button type="button" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&&branchcode=[% returnbranch | uri %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
528 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
530 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
531 <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>
533 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
534 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
535 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
536 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
537 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
538 [% FOREACH inputloo IN inputloop %]
539 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
540 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
541 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
543 </div> <!-- /.modal-footer -->
544 </form> <!-- /#mainform -->
545 </div> <!-- /.modal-content -->
546 </div> <!-- /.modal-dialog -->
547 </div> <!-- /#item-transfer-modal -->
548 [% END # /IF transfer || needstransfer %]
550 <!-- case of simple return no issue or transfer but with a reservation -->
551 [% IF ( reserved ) %]
553 <div id="hold-found2" class="modal fade audio-alert-action block">
554 <div class="modal-dialog">
555 <div class="modal-content">
556 <form method="post" action="returns.pl" class="confirm">
558 <input type="hidden" name="print_slip" value="0" />
560 <div class="modal-header">
564 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
565 <div class="hold-found-barcode">
566 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
571 <div class="modal-body">
572 [% IF ( reservenotes ) %]
574 <p>[% reservenotes | html %]</p>
580 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
581 <span class="patron-category"> - [% patron.category.description | html %]</span>
584 [% INCLUDE display_holdpatron_address %]
586 [% IF ( patron.phone ) %]
587 <li>[% patron.phone | html %]</li>
590 [% IF ( patron.email ) %]
592 [% IF ( transfertodo ) %]
593 [% patron.email | html %]
595 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
600 [% UNLESS ( transfertodo) %]
601 [% INCLUDE display_bormessagepref %]
604 [% IF ( patron.is_debarred ) %]
605 <li class="error">Patron is RESTRICTED</li>
608 [% IF ( patron.gonenoaddress ) %]
609 <li class="error">Patron's address is in doubt</li>
612 [% IF ( transfertodo ) %]
613 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
615 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
618 [% FOREACH inputloo IN inputloop %]
619 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
620 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
621 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
624 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
625 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
626 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
627 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
628 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
629 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
630 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
631 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
632 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
633 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
634 [% INCLUDE all_checkin_messages %]
637 <div class="modal-footer">
638 [% IF ( transfertodo ) %]
639 <button type="submit" class="btn btn-default approve">
640 <i class="fa fa-check"></i> Confirm hold and transfer
642 <button type="button" class="btn btn-default print">
643 <i class="fa fa-print"></i> Print slip, transfer, and confirm
646 <button type="submit" class="btn btn-default approve">
647 <i class="fa fa-check"></i> Confirm hold
649 <button type="button" class="btn btn-default print">
650 <i class="fa fa-print"></i> Print slip and confirm
654 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
655 <i class="fa fa-times"></i> Ignore
657 </div> <!-- /.modal-footer -->
658 </form> <!-- /.confirm -->
659 </div> <!-- /.modal-content -->
660 </div> <!-- /.modal-dialog -->
661 </div> <!-- /#hold-found2 -->
662 [% END #/IF reserved %]
663 [% END # /IF found %]
665 <div class="static_checkin_messages">
666 [% INCLUDE all_checkin_messages %]
669 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
670 <fieldset id="circ_returns_checkin">
671 <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>
674 <div class="col-sm-6">
675 <div class="hint">Enter item barcode:</div>
676 <div class="form-control-group">
677 [% IF ( exemptfine ) %]
678 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
679 [% ELSIF ( dropboxmode ) %]
680 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
682 <input name="barcode" id="barcode" size="14" class="barcode focus" />
684 <button type="submit" class="btn btn-default">Check in</button>
685 [% FOREACH inputloo IN inputloop %]
686 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
687 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
688 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
691 <div id="show-circ-settings">
692 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
695 <div class="col-sm-6">
696 [% IF ( exemptfine ) %]
697 <div id="exemptfines" class="checkin-active-setting">
699 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
701 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
704 [% IF ( forgivemanualholdsexpire ) %]
705 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
707 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
709 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
712 [% IF ( dropboxmode ) %]
713 <div id="dropboxmode" class="checkin-active-setting">
715 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
717 <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>
719 [% IF ( return_date_override_remember ) %]
720 <div id="return_date_remember" class="checkin-active-setting">
722 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
724 <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>
729 <div class="circ-settings">
730 [% IF Koha.Preference('SpecifyReturnDate') %]
731 <div class="date-select" id="return_date_override_fields">
732 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
734 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
738 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
739 <div class="circ-setting">
740 [% IF ( return_date_override_remember ) %]
741 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
743 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
745 <label for="return_date_override_remember"> Remember due date for next check in</label>
747 </div> <!-- /.date-select -->
750 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
751 <div id="forgive-overdue-fines" class="circ-setting">
752 [% IF ( exemptfine ) %]
753 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
755 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
757 <label for="exemptcheck">Forgive overdue charges</label>
759 [% END %] <!-- overduecharges -->
761 <div id="book-drop-mode" class="circ-setting">
762 [% IF ( dropboxmode ) %]
763 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
765 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
767 <label for="dropboxcheck">Book drop mode</label>
770 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
771 <div class="forgive-manual-hold-fees circ-setting">
772 [% IF ( forgivemanualholdsexpire ) %]
773 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
775 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
777 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
779 [% END %] <!-- overduecharges -->
781 </div> <!-- /.circ-settings -->
782 </fieldset> <!-- /#circ_returns_checkin -->
783 </form> <!-- /#checkin-form -->
786 <h2>Checked-in items</h2>
787 <table id="checkedintable">
790 <th class="ci-duedate">Due date</th>
791 <th class="ci-title">Title</th>
792 <th class="ci-author">Author</th>
793 <th class="ci-barcode">Barcode</th>
794 <th class="ci-homelibrary">Home library</th>
795 <th class="ci-holdinglibrary">Holding library</th>
796 <th class="ci-shelvinglocation">Shelving location</th>
797 <th class="ci-callnumber">Call number</th>
798 <th class="ci-dateaccessioned">Date acquired</th>
799 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
800 <th class="ci-itemtype">Item type</th>
801 <th class="ci-patron">Patron</th>
802 <th class="ci-note">Note</th>
806 [% FOREACH riloo IN riloop %]
808 <td class="ci-duedate">
809 [% IF ( riloo.duedate ) %]
810 [% IF ( riloo.return_overdue ) %]
811 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
813 [% riloo.duedate | html %]
819 <td class="ci-title">
820 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
821 [% riloo.itemtitle | html %]
822 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
823 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
824 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
826 [% IF ( riloo.enumchron ) %]
828 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
831 <td class="ci-author">[% riloo.itemauthor | html %]</td>
832 <td class="ci-barcode">
833 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
835 <td class="ci-homelibrary">
836 [% Branches.GetName( riloo.homebranch ) | html %]
838 <td class="ci-holdinglibrary">
839 [% Branches.GetName( riloo.holdingbranch ) | html %]
841 <td class="ci-shelvinglocation">
842 <span class="shelvingloc">[% riloo.location | html %]</span>
844 <td class="ci-callnumber">
845 [% riloo.itemcallnumber | html %]
847 <td class="ci-dateaccessioned">
848 [% riloo.dateaccessioned | $KohaDates %]
850 <td class="ci-recordlevelitemtype">
851 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
853 <td class="ci-itemtype">
854 [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
856 <td class="ci-patron">
857 [% IF ( riloo.duedate ) %]
858 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
859 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
861 [% IF riloo.borissuescount %]
862 <span class="results_summary nowrap">
863 <span class="label">Checkouts:</span>
864 <span class="number_box">
865 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
874 [% IF ( riloo.patron.borrowernotes ) %]
875 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
877 [% IF ( riloo.itemnote ) %]
878 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
880 [% IF ( riloo.itemnotes_nonpublic ) %]
881 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
885 [% END # /FOREACH riloo %]
886 </table> <!-- /#checkedintable -->
887 [% END # /IF riloop %]
889 [% IF Koha.Preference('CircSidebar') %]
890 </div> <!-- /.col-sm-10.col-sm-push-2 -->
891 <div class="col-sm-2 col-sm-pull-10">
893 [% INCLUDE 'circ-nav.inc' %]
895 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
896 </div> <!-- /.row -->
898 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
899 </div> <!-- /.row -->
903 </div> <!-- /.col-sm-12 -->
904 </div> <!-- /.row -->
906 [% MACRO jsinclude BLOCK %]
907 [% INCLUDE 'datatables.inc' %]
908 [% INCLUDE 'columns_settings.inc' %]
909 [% INCLUDE 'calendar.inc' %]
910 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
911 [% Asset.js("js/pages/circulation.js") | $raw %]
912 [% INCLUDE 'timepicker.inc' %]
915 function Dopop(link) {
916 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
917 $("#barcode").focus();
919 $(document).ready(function () {
920 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
921 $("#barcode").prop("disabled", true);
922 $(".show_checkin_dialog").show();
923 }).on('hidden.bs.modal', function() {
924 $("#barcode").prop("disabled", false).focus();
926 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
927 $("#barcode").prop("disabled", false).focus();
928 }).on('hidden.bs.modal', function() {
929 $("#barcode").prop("disabled", false).focus();
932 $("body").on("click", ".show_checkin_dialog button", function(e){
934 $(".modal").modal("show");
937 $(".print-slip").on('click', function(e) {
939 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | uri %]&biblionumber=[% biblionumber | uri %]');
943 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | uri %]&biblionumber=[% biblionumber | uri %]&itemnumber=[% itemnumber | uri %]');
946 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
947 var returns_table = KohaTable("checkedintable", {
952 "dom": 'B<"clearfix">t',
953 }, columns_settings);
955 $("#return_date_override").datetimepicker({
956 onClose: function(dateText, inst) {
957 if (validate_date(dateText, inst) ) {
958 $("#barcode").focus();
965 }).on("change", function(e, value) {
966 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
968 $("#return_date_override").on("blur", function() {
969 check_valid_return_date();
971 $("#checkin-form").submit(function( event ) {
972 if ( !check_valid_return_date() ) {
973 event.preventDefault();
977 function check_valid_return_date() {
978 if ( $("#return_date_override").val() ) {
979 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
980 var now = new Date();
981 if ( !datetime || datetime > now ) {
982 alert("Invalid return date/time!");
983 $("#return_date_override").val("")
987 // Add saved date information to onscreen message, which
988 // may or may not be hidden
989 $("#saved_return_date").text( $("#return_date_override").val() );
993 $("#exemptcheck").change(function () {
994 if (this.checked == true) {
995 $("#barcode").addClass("input-warning");
996 $("#exemptfines").show();
998 $("#barcode").removeClass("input-warning");
999 $("#exemptfines").hide();
1001 $("#barcode").focus();
1003 $("#dropboxcheck").change(function () {
1004 if (this.checked == true) {
1005 $("#barcode").addClass("input-warning");
1006 $("#dropboxmode").show();
1008 $("#return_date_override_fields :input").prop('disabled', true);
1009 $("#return_date_override").datetimepicker("disable");
1011 $("#barcode").removeClass("input-warning");
1012 $("#dropboxmode").hide();
1014 $("#return_date_override_fields :input").prop('disabled', false);
1015 $("#return_date_override").datetimepicker("enable");
1017 $("#barcode").focus();
1019 $("#forgivemanualholdsexpire").change(function () {
1020 if (this.checked == true) {
1021 $("#barcode").addClass("input-warning");
1022 $("#forgivemanualholdsexpire-alert").show();
1024 $("#barcode").removeClass("input-warning");
1025 $("#forgivemanualholdsexpire-alert").hide();
1027 $("#barcode").focus();
1030 [% IF(overduecharges) %]
1031 $("#barcode").focus(function () {
1032 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1033 $("#barcode").addClass("input-warning");
1035 $("#barcode").removeClass("input-warning");
1038 $("#barcode").blur(function () {
1039 $("#barcode").removeClass("input-warning");
1043 $('.openWin').on("click",function(e){
1044 Dopop( $(this).data("url") );
1047 $('.print').on("click",function(e){
1048 this.form.print_slip.value = 1;
1052 $('.cancel-hold').on("click",function(e){
1053 this.form.cancel_reserve.value = 1;
1057 $('.action').on("click",function(e){
1058 this.checked = false;
1059 this.form.return_date_override.value = '';
1060 this.form.return_date_override_remember.checked = false;
1061 this.form.barcode.focus();
1062 $("#return_date_remember").hide();
1066 $("#return_date_override_remember").on("change", function(){
1067 if( $(this).prop("checked" ) ){
1068 if( $("#return_date_override").val() == "" ){
1069 $("#saved_return_date").text( _("No date selected") );
1071 $("#saved_return_date").text( $("#return_date_override").val() );
1073 $("#return_date_remember").show();
1075 $("#return_date_remember").hide();
1078 $('[data-toggle="tooltip"]').tooltip();
1083 [% INCLUDE 'intranet-bottom.inc' %]