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 <!-- Patron has waiting holds -->
160 [% IF ( waiting_holds ) %]
161 <div id="awaiting-pickup" class="dialog message">
162 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
163 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
167 <!-- Patron is restricted and checkin was backdated -->
168 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
169 <div id="restricted_backdated" class="dialog message">
171 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
172 [% patron.firstname | html %] [% patron.surname | html %]
174 is restricted. Please verify this patron should still be restricted.
180 [% IF ( errmsgloop ) %]
181 <div class="dialog alert audio-alert-warning">
182 <h3>Check in message</h3>
183 [% IF itembiblionumber %]
184 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
186 [% FOREACH errmsgloo IN errmsgloop %]
187 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
189 Not for loan status updated.
191 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
192 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
197 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
198 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
204 [% IF ( errmsgloo.ItemLocationUpdated ) %]
206 Item shelving location updated.
208 [% IF errmsgloo.ItemLocationUpdated.from %]
209 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
211 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %]
212 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
214 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %]
220 [% IF errmsgloo.ItemLocationUpdated.to %]
221 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
223 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %]
224 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
226 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %]
233 [% IF ( errmsgloo.badbarcode ) %]
234 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
236 [% IF ( errmsgloo.ispermanent ) %]
237 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
239 [% IF ( errmsgloo.notissued ) %]
240 <p class="problem">Not checked out.</p>
242 [% IF ( errmsgloo.localuse) %]
243 <p class="problem">Local use recorded</p>
245 [% IF ( errmsgloo.waslost ) %]
246 [% IF Koha.Preference('BlockReturnOfLostItems') %]
247 <p class="problem">Item is lost, cannot be checked in.</p>
249 <p class="problem">Item was lost, now found.</p>
251 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
252 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
253 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
254 <h5>Cannot check in</h5>
255 <p><strong>NOT CHECKED IN</strong></p>
257 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
260 [% IF ( errmsgloo.withdrawn ) %]
261 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
262 <h5>Cannot check in</h5>
263 <p><strong>NOT CHECKED IN</strong></p>
265 <p class="problem">Item is withdrawn.</p>
267 [% IF ( errmsgloo.debarred ) %]
268 <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>
270 [% IF ( errmsgloo.prevdebarred ) %]
271 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
273 [% IF ( errmsgloo.foreverdebarred ) %]
274 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
277 [% IF errmsgloo.data_corrupted %]
278 <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>
280 [% END # /FOREACH errmsgloo %]
281 </div> <!-- /.dialog.dialog-alert -->
282 [% END #/IF errmsgloop %]
284 [% IF ( checkinmsg ) %]
285 [% IF ( checkinmsgtype == 'alert' ) %]
286 <div class="dialog alert">
288 <div class="dialog message">
290 <p class="problem">[% checkinmsg | html_line_break %]</p>
292 [% END # /IF checkinmsg %]
293 [% END # /BLOCK all_checkin_messages %]
296 <div id="wrong-branch-modal" class="modal fade audio-alert-action">
297 <div class="modal-dialog">
298 <div class="modal-content">
299 <form method="post" action="returns.pl" name="mainform" id="mainform">
300 <div class="modal-header">
305 <div class="modal-body">
307 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
308 [% itembarcode | html %]: [% title | html %]
317 This item must be checked in at following library:
319 [% Branches.GetName( rightbranch ) | html %]
322 [% INCLUDE all_checkin_messages %]
323 </div> <!-- /.modal-body -->
324 <div class="modal-footer">
325 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
327 </form> <!-- /#mainform -->
328 </div> <!-- /.modal-content -->
329 </div> <!-- /.modal-dialog -->
330 </div> <!-- /#wrong-branch-modal -->
331 [% END # /IF wrongbranch %]
333 <!-- case of a mistake in transfer loop -->
335 [% IF WrongTransfer && !transfertodo %]
336 <div id="wrong-transfer-modal" class="modal fade audio-alert-action">
337 <div class="modal-dialog">
338 <div class="modal-content">
339 <div class="modal-header">
341 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
344 <div class="modal-body">
346 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
347 [% itembarcode | html %]: [% title | html %]
350 [% INCLUDE all_checkin_messages %]
352 <div class="modal-footer">
354 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
356 <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>
357 <!-- CANCEL TRANSFER -->
358 <form method="post" action="returns.pl" name="mainform">
359 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
360 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
361 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
362 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
363 <input type="hidden" name="canceltransfer" value="1" />
364 [% FOREACH inputloo IN inputloop %]
365 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
366 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
367 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
369 </form> <!-- /mainform -->
370 </div> <!-- /.modal-footer -->
371 </div> <!-- /.modal-content -->
372 </div> <!-- /.modal-dialog -->
373 </div> <!-- /#wrong-transfer-modal -->
374 [% END # /IF WrongTransfer && !transfertodo %]
378 <div id="hold-found1" class="modal fade audio-alert-action">
379 <div class="modal-dialog">
380 <div class="modal-content">
381 <form method="post" action="returns.pl" class="confirm">
382 <div class="modal-header">
384 Hold found (item is already waiting):
386 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
387 <div class="hold-found-barcode">
388 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
393 <div class="modal-body">
394 [% IF ( reservenotes ) %]
395 <h4>Notes: [% reservenotes | html %]</h4>
401 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
402 <span class="patron-category"> - [% patron.category.description | html %]</span>
404 [% INCLUDE display_holdpatron_address %]
405 [% IF ( patron.phone ) %]
406 <li> [% patron.phone | html %]</li>
409 [% IF ( patron.email ) %]
410 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
413 [% IF ( patron.debarred ) %]
414 <li class="error">Patron is RESTRICTED</li>
417 [% IF ( patron.gonenoaddress ) %]
418 <li class="error">Patron's address is in doubt</li>
422 [% IF ( transfertodo ) %]
423 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
425 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
428 [% FOREACH inputloo IN inputloop %]
429 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
430 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
431 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
434 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
435 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
436 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
437 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
438 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
439 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
440 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
441 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
443 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
444 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
445 [% INCLUDE all_checkin_messages %]
446 </div> <!-- /.modal-body -->
448 <div class="modal-footer">
449 <input type="hidden" name="cancel_reserve" value="0" />
451 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
452 <i class="fa fa-check"></i> Confirm hold
455 <input type="hidden" name="print_slip" value="0" />
456 <button type="submit" class="btn btn-default print">
457 <i class="fa fa-print"></i> Print slip and confirm
460 <button type="submit" class="btn btn-default deny cancel-hold">
461 <i class="fa fa-times"></i> Cancel hold
463 </div> <!-- /.modal-footer -->
464 </form> <!-- /.confirm -->
465 </div> <!-- /.modal-content -->
466 </div> <!-- /.modal-dialog -->
467 </div> <!-- /#hold-found1 -->
468 [% END # /IF waiting %]
470 [% IF transfer || needstransfer %]
471 <div id="item-transfer-modal" class="modal fade audio-alert-action">
472 <div class="modal-dialog">
473 <div class="modal-content">
474 <form method="post" action="returns.pl" name="mainform" id="mainform">
475 <div class="modal-header">
477 Please return this item to [% Branches.GetName( returnbranch ) | html %]
480 <div class="modal-body">
482 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
483 [% itembarcode | html %]: [% title | html %]
491 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
492 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
493 <input type="hidden" name="barcode" value="0" />
494 [% INCLUDE all_checkin_messages %]
496 <div class="modal-footer">
498 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
499 <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>
500 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
502 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
503 <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>
505 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
506 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
507 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
508 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
509 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
510 [% FOREACH inputloo IN inputloop %]
511 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
512 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
513 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
515 </div> <!-- /.modal-footer -->
516 </form> <!-- /#mainform -->
517 </div> <!-- /.modal-content -->
518 </div> <!-- /.modal-dialog -->
519 </div> <!-- /#item-transfer-modal -->
520 [% END # /IF transfer || needstransfer %]
522 <!-- case of simple return no issue or transfer but with a reservation -->
523 [% IF ( reserved ) %]
525 <div id="hold-found2" class="modal fade audio-alert-action">
526 <div class="modal-dialog">
527 <div class="modal-content">
528 <form method="post" action="returns.pl" class="confirm">
529 <div class="modal-header">
533 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
534 <div class="hold-found-barcode">
535 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
540 <div class="modal-body">
541 [% IF ( reservenotes ) %]
543 <p>[% reservenotes | html %]</p>
549 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
550 <span class="patron-category"> - [% patron.category.description | html %]</span>
553 [% INCLUDE display_holdpatron_address %]
555 [% IF ( patron.phone ) %]
556 <li>[% patron.phone | html %]</li>
559 [% IF ( patron.email ) %]
561 [% IF ( transfertodo ) %]
562 [% patron.email | html %]
564 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
569 [% UNLESS ( transfertodo) %]
570 [% INCLUDE display_bormessagepref %]
573 [% IF ( patron.debarred ) %]
574 <li class="error">Patron is RESTRICTED</li>
577 [% IF ( patron.gonenoaddress ) %]
578 <li class="error">Patron's address is in doubt</li>
581 [% IF ( transfertodo ) %]
582 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
584 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
587 <input type="hidden" name="print_slip" value="0" />
590 [% FOREACH inputloo IN inputloop %]
591 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
592 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
593 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
596 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
597 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
598 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
599 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
600 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
601 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
602 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
603 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
604 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
605 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
606 [% INCLUDE all_checkin_messages %]
609 <div class="modal-footer">
610 [% IF ( transfertodo ) %]
611 <button type="submit" class="btn btn-default approve">
612 <i class="fa fa-check"></i> Confirm hold and transfer
614 <button type="submit" class="btn btn-default print">
615 <i class="fa fa-print"></i> Print slip, transfer, and confirm
618 <button type="submit" class="btn btn-default approve">
619 <i class="fa fa-check"></i> Confirm hold
621 <button type="submit" class="btn btn-default print">
622 <i class="fa fa-print"></i> Print slip and confirm
626 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
627 <i class="fa fa-times"></i> Ignore
629 </div> <!-- /.modal-footer -->
630 </form> <!-- /.confirm -->
631 </div> <!-- /.modal-content -->
632 </div> <!-- /.modal-dialog -->
633 </div> <!-- /#hold-found2 -->
634 [% END #/IF reserved %]
635 [% END # /IF found %]
637 <div class="static_checkin_messages">
638 [% INCLUDE all_checkin_messages %]
641 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
642 <fieldset id="circ_returns_checkin">
643 <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>
646 <div class="col-sm-6">
647 <div class="hint">Enter item barcode:</div>
648 <div class="form-control-group">
649 [% IF ( exemptfine ) %]
650 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
651 [% ELSIF ( dropboxmode ) %]
652 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
654 <input name="barcode" id="barcode" size="14" class="barcode focus" />
656 <button type="submit" class="btn btn-default">Check in</button>
657 [% FOREACH inputloo IN inputloop %]
658 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
659 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
660 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
663 <div id="show-circ-settings">
664 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
667 <div class="col-sm-6">
668 [% IF ( exemptfine ) %]
669 <div id="exemptfines" class="checkin-active-setting">
671 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
673 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
676 [% IF ( forgivemanualholdsexpire ) %]
677 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
679 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
681 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
684 [% IF ( dropboxmode ) %]
685 <div id="dropboxmode" class="checkin-active-setting">
687 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
689 <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>
691 [% IF ( return_date_override_remember ) %]
692 <div id="return_date_remember" class="checkin-active-setting">
694 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
696 <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>
701 <div class="circ-settings">
702 [% IF Koha.Preference('SpecifyReturnDate') %]
703 <div class="date-select" id="return_date_override_fields">
704 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
706 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
710 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
711 <div class="circ-setting">
712 [% IF ( return_date_override_remember ) %]
713 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
715 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
717 <label for="return_date_override_remember"> Remember due date for next check in</label>
719 </div> <!-- /.date-select -->
722 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
723 <div id="forgive-overdue-fines" class="circ-setting">
724 [% IF ( exemptfine ) %]
725 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
727 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
729 <label for="exemptcheck">Forgive overdue charges</label>
731 [% END %] <!-- overduecharges -->
733 <div id="book-drop-mode" class="circ-setting">
734 [% IF ( dropboxmode ) %]
735 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
737 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
739 <label for="dropboxcheck">Book drop mode</label>
742 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
743 <div class="forgive-manual-hold-fees circ-setting">
744 [% IF ( forgivemanualholdsexpire ) %]
745 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
747 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
749 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
751 [% END %] <!-- overduecharges -->
753 </div> <!-- /.circ-settings -->
754 </fieldset> <!-- /#circ_returns_checkin -->
755 </form> <!-- /#checkin-form -->
758 <h2>Checked-in items</h2>
759 <table id="checkedintable">
762 <th class="ci-duedate">Due date</th>
763 <th class="ci-title">Title</th>
764 <th class="ci-author">Author</th>
765 <th class="ci-barcode">Barcode</th>
766 <th class="ci-homelibrary">Home library</th>
767 <th class="ci-holdinglibrary">Holding library</th>
768 <th class="ci-shelvinglocation">Shelving location</th>
769 <th class="ci-callnumber">Call number</th>
770 <th class="ci-dateaccessioned">Date acquired</th>
771 <th class="ci-type">Type</th>
772 <th class="ci-patron">Patron</th>
773 <th class="ci-note">Note</th>
777 [% FOREACH riloo IN riloop %]
779 <td class="ci-duedate">
780 [% IF ( riloo.duedate ) %]
781 [% IF ( riloo.return_overdue ) %]
782 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
784 [% riloo.duedate | html %]
790 <td class="ci-title">
791 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
792 [% riloo.itemtitle | html %]
793 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
794 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
795 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
797 [% IF ( riloo.enumchron ) %]
799 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
802 <td class="ci-author">[% riloo.itemauthor | html %]</td>
803 <td class="ci-barcode">
804 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
806 <td class="ci-homelibrary">
807 [% Branches.GetName( riloo.homebranch ) | html %]
809 <td class="ci-holdinglibrary">
810 [% Branches.GetName( riloo.holdingbranch ) | html %]
812 <td class="ci-shelvinglocation">
813 <span class="shelvingloc">[% riloo.location | html %]</span>
815 <td class="ci-callnumber">
816 [% riloo.itemcallnumber | html %]
818 <td class="ci-dateaccessioned">
819 [% riloo.dateaccessioned | $KohaDates %]
822 [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
824 <td class="ci-patron">
825 [% IF ( riloo.duedate ) %]
826 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
827 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
829 [% IF riloo.borissuescount %]
830 <span class="results_summary nowrap">
831 <span class="label">Checkouts:</span>
832 <span class="number_box">
833 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
842 [% IF ( riloo.patron.borrowernotes ) %]
843 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
845 [% IF ( riloo.itemnote ) %]
846 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
848 [% IF ( riloo.itemnotes_nonpublic ) %]
849 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
853 [% END # /FOREACH riloo %]
854 </table> <!-- /#checkedintable -->
855 [% END # /IF riloop %]
857 [% IF Koha.Preference('CircSidebar') %]
858 </div> <!-- /.col-sm-10.col-sm-push-2 -->
859 <div class="col-sm-2 col-sm-pull-10">
861 [% INCLUDE 'circ-nav.inc' %]
863 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
864 </div> <!-- /.row -->
866 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
867 </div> <!-- /.row -->
871 </div> <!-- /.col-sm-12 -->
872 </div> <!-- /.row -->
874 [% MACRO jsinclude BLOCK %]
875 [% INCLUDE 'datatables.inc' %]
876 [% INCLUDE 'columns_settings.inc' %]
877 [% INCLUDE 'calendar.inc' %]
878 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
879 [% Asset.js("js/pages/circulation.js") | $raw %]
880 [% INCLUDE 'timepicker.inc' %]
883 function Dopop(link) {
884 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
885 $("#barcode").focus();
887 $(document).ready(function () {
888 $(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() {
889 $("#barcode").prop("disabled", true);
890 $(".show_checkin_dialog").show();
891 }).on('hidden.bs.modal', function() {
892 $("#barcode").prop("disabled", false).focus();
895 $("body").on("click", ".show_checkin_dialog button", function(e){
897 $(".modal").modal("show");
900 $(".print-slip").on('click', function(e) {
902 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
906 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
909 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
910 var returns_table = KohaTable("checkedintable", {
915 "dom": 'B<"clearfix">t',
916 }, columns_settings);
918 $("#return_date_override").datetimepicker({
919 onClose: function(dateText, inst) {
920 if (validate_date(dateText, inst) ) {
921 $("#barcode").focus();
928 }).on("change", function(e, value) {
929 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
931 $("#return_date_override").on("blur", function() {
932 check_valid_return_date();
934 $("#checkin-form").submit(function( event ) {
935 if ( !check_valid_return_date() ) {
936 event.preventDefault();
940 function check_valid_return_date() {
941 if ( $("#return_date_override").val() ) {
942 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
943 var now = new Date();
944 if ( !datetime || datetime > now ) {
945 alert("Invalid return date/time!");
946 $("#return_date_override").val("")
950 // Add saved date information to onscreen message, which
951 // may or may not be hidden
952 $("#saved_return_date").text( $("#return_date_override").val() );
956 $("#exemptcheck").change(function () {
957 if (this.checked == true) {
958 $("#barcode").addClass("input-warning");
959 $("#exemptfines").show();
961 $("#barcode").removeClass("input-warning");
962 $("#exemptfines").hide();
964 $("#barcode").focus();
966 $("#dropboxcheck").change(function () {
967 if (this.checked == true) {
968 $("#barcode").addClass("input-warning");
969 $("#dropboxmode").show();
971 $("#return_date_override_fields :input").prop('disabled', true);
972 $("#return_date_override").datetimepicker("disable");
974 $("#barcode").removeClass("input-warning");
975 $("#dropboxmode").hide();
977 $("#return_date_override_fields :input").prop('disabled', false);
978 $("#return_date_override").datetimepicker("enable");
980 $("#barcode").focus();
982 $("#forgivemanualholdsexpire").change(function () {
983 if (this.checked == true) {
984 $("#barcode").addClass("input-warning");
985 $("#forgivemanualholdsexpire-alert").show();
987 $("#barcode").removeClass("input-warning");
988 $("#forgivemanualholdsexpire-alert").hide();
990 $("#barcode").focus();
993 [% IF(overduecharges) %]
994 $("#barcode").focus(function () {
995 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
996 $("#barcode").addClass("input-warning");
998 $("#barcode").removeClass("input-warning");
1001 $("#barcode").blur(function () {
1002 $("#barcode").removeClass("input-warning");
1006 $('.openWin').on("click",function(e){
1007 Dopop( $(this).data("url") );
1010 $('.print').on("click",function(e){
1011 this.form.print_slip.value = 1;
1015 $('.cancel-hold').on("click",function(e){
1016 this.form.cancel_reserve.value = 1;
1020 $('.action').on("click",function(e){
1021 this.checked = false;
1022 this.form.return_date_override.value = '';
1023 this.form.return_date_override_remember.checked = false;
1024 this.form.barcode.focus();
1025 $("#return_date_remember").hide();
1029 $("#return_date_override_remember").on("change", function(){
1030 if( $(this).prop("checked" ) ){
1031 if( $("#return_date_override").val() == "" ){
1032 $("#saved_return_date").text( _("No date selected") );
1034 $("#saved_return_date").text( $("#return_date_override").val() );
1036 $("#return_date_remember").show();
1038 $("#return_date_remember").hide();
1041 $('[data-toggle="tooltip"]').tooltip();
1046 [% INCLUDE 'intranet-bottom.inc' %]