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 [% IF hold_auto_filled %]
61 <div id="holds-auto-fill" class="modal audio-alert-action" tabindex="-1" role="dialog" aria-labelledby="HoldsAutoFillLabel">
62 <div class="modal-dialog" role="document">
63 <div class="modal-content">
64 <div class="modal-header">
65 <h3 class="modal-title" id="HoldsAutoFillLabel">
67 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
68 <div class="hold-found-barcode">
69 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
73 <div class="modal-body">
74 [% IF ( reservenotes ) %]
75 <h4>Notes: [% reservenotes | html %]</h4>
81 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
82 <span class="patron-category"> - [% patron.category.description | html %]</span>
84 [% INCLUDE display_holdpatron_address %]
85 [% IF ( patron.phone ) %]
86 <li>[% patron.phone | html %]</li>
88 [% IF ( patron.email ) %]
90 [% IF ( diffbranch ) %]
91 [% patron.email | html %]
93 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
97 [% UNLESS ( diffbranch) %]
98 [% INCLUDE display_bormessagepref %]
100 [% IF ( patron.debarred ) %]
101 <li class="error">Patron is RESTRICTED</li>
103 [% IF ( patron.gonenoaddress ) %]
104 <li class="error">Patron's address is in doubt</li>
107 [% IF ( diffbranch ) %]
108 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
110 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
113 <div class="modal-footer">
114 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
115 <button type="button" data-dismiss="modal" class="btn btn-default print print-slip"><i class="fa fa-print"></i> Print slip and continue</button>
117 </div> <!-- /.modal-content -->
118 </div> <!-- /.modal-dialog -->
119 </div> <!-- /#holds-auto-fill -->
120 [% END # /IF hold_auto_filled %]
123 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
124 <div class="dialog alert">
125 <strong>Error:</strong>
126 This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
128 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
129 <div class="dialog alert">
130 <strong>Error:</strong>
131 The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.
135 [% IF additional_materials %]
136 <div class="dialog message" id="materials">
137 Note about the accompanying materials: <br />
138 [% additional_materials | html %]
142 [% IF ( collectionItemNeedsTransferred ) %]
143 <div id="rotating-collection" class="dialog message">
144 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
145 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
146 <p>This item is part of a rotating collection.</p>
147 <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>
151 <!-- Patron has added an issue note -->
152 [% IF ( issue.note) %]
153 <div class="dialog message">
155 <p>[% issue.notedate | $KohaDates %]</p>
156 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
157 <p>[% issue.note | html %]</p>
161 <!-- Patron has fines -->
163 <div class="dialog alert">
164 <h3>Patron has outstanding fines of [% fines | html %].</h3>
165 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
169 <!-- Patron has waiting holds -->
170 [% IF ( waiting_holds ) %]
171 <div id="awaiting-pickup" class="dialog message">
172 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
173 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
177 <!-- Patron is restricted and checkin was backdated -->
178 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
179 <div id="restricted_backdated" class="dialog message">
181 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
182 [% patron.firstname | html %] [% patron.surname | html %]
184 is restricted. Please verify this patron should still be restricted.
190 <div id="wrong-branch-modal" class="modal fade audio-alert-action">
191 <div class="modal-dialog">
192 <div class="modal-content">
193 <form method="post" action="returns.pl" name="mainform" id="mainform">
194 <div class="modal-header">
199 <div class="modal-body">
201 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
202 [% itembarcode | html %]: [% title | html %]
211 This item must be checked in at following library:
213 [% Branches.GetName( rightbranch ) | html %]
216 </div> <!-- /.modal-body -->
217 <div class="modal-footer">
218 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
220 </form> <!-- /#mainform -->
221 </div> <!-- /.modal-content -->
222 </div> <!-- /.modal-dialog -->
223 </div> <!-- /#wrong-branch-modal -->
224 [% END # /IF wrongbranch %]
226 <!-- case of a mistake in transfer loop -->
227 [% UNLESS ( hold_auto_filled && diffbranch ) %]
228 [% IF WrongTransfer && !transfertodo %]
229 <div id="wrong-transfer-modal" class="modal fade audio-alert-action">
230 <div class="modal-dialog">
231 <div class="modal-content">
232 <div class="modal-header">
234 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
237 <div class="modal-body">
239 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
240 [% itembarcode | html %]: [% title | html %]
244 <div class="modal-footer">
246 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
248 <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>
249 <!-- CANCEL TRANSFER -->
250 <form method="post" action="returns.pl" name="mainform">
251 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
252 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
253 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
254 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
255 <input type="hidden" name="canceltransfer" value="1" />
256 [% FOREACH inputloo IN inputloop %]
257 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
258 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
259 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
261 </form> <!-- /mainform -->
262 </div> <!-- /.modal-footer -->
263 </div> <!-- /.modal-content -->
264 </div> <!-- /.modal-dialog -->
265 </div> <!-- /#wrong-transfer-modal -->
266 [% END # /IF WrongTransfer && !transfertodo %]
267 [% END # /UNLESS hold_auto_filled && diffbranch %]
271 <div id="hold-found1" class="modal fade audio-alert-action">
272 <div class="modal-dialog">
273 <div class="modal-content">
274 <form method="post" action="returns.pl" class="confirm">
275 <div class="modal-header">
277 Hold found (item is already waiting):
279 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
280 <div class="hold-found-barcode">
281 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>
286 <div class="modal-body">
287 [% IF ( reservenotes ) %]
288 <h4>Notes: [% reservenotes | html %]</h4>
294 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
295 <span class="patron-category"> - [% patron.category.description | html %]</span>
297 [% INCLUDE display_holdpatron_address %]
298 [% IF ( patron.phone ) %]
299 <li> [% patron.phone | html %]</li>
302 [% IF ( patron.email ) %]
303 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
306 [% IF ( patron.debarred ) %]
307 <li class="error">Patron is RESTRICTED</li>
310 [% IF ( patron.gonenoaddress ) %]
311 <li class="error">Patron's address is in doubt</li>
315 [% IF ( transfertodo ) %]
316 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
318 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
321 [% FOREACH inputloo IN inputloop %]
322 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
323 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
324 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
327 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
328 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
329 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
330 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
331 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
332 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
333 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
334 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
336 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
337 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
338 </div> <!-- /.modal-body -->
340 <div class="modal-footer">
341 <input type="hidden" name="cancel_reserve" value="0" />
343 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
344 <i class="fa fa-check"></i> Confirm hold
347 <input type="hidden" name="print_slip" value="0" />
348 <button type="submit" class="btn btn-default print">
349 <i class="fa fa-print"></i> Print slip and confirm
352 <button type="submit" class="btn btn-default deny cancel-hold">
353 <i class="fa fa-times"></i> Cancel hold
355 </div> <!-- /.modal-footer -->
356 </form> <!-- /.confirm -->
357 </div> <!-- /.modal-content -->
358 </div> <!-- /.modal-dialog -->
359 </div> <!-- /#hold-found1 -->
360 [% END # /IF waiting %]
362 [% IF transfer || needstransfer %]
363 <div id="item-transfer-modal" class="modal fade audio-alert-action">
364 <div class="modal-dialog">
365 <div class="modal-content">
366 <form method="post" action="returns.pl" name="mainform" id="mainform">
367 <div class="modal-header">
369 Please return this item to [% Branches.GetName( returnbranch ) | html %]
372 <div class="modal-body">
374 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
375 [% itembarcode | html %]: [% title | html %]
383 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
384 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
385 <input type="hidden" name="barcode" value="0" />
387 <div class="modal-footer">
389 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
390 <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>
391 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
393 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
394 <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>
396 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
397 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
398 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
399 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
400 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
401 [% FOREACH inputloo IN inputloop %]
402 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
403 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
404 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
406 </div> <!-- /.modal-footer -->
407 </form> <!-- /#mainform -->
408 </div> <!-- /.modal-content -->
409 </div> <!-- /.modal-dialog -->
410 </div> <!-- /#item-transfer-modal -->
411 [% END # /IF transfer || needstransfer %]
413 <!-- case of simple return no issue or transfer but with a reservation -->
414 [% IF ( reserved ) %]
416 <div id="hold-found2" class="modal fade audio-alert-action">
417 <div class="modal-dialog">
418 <div class="modal-content">
419 <form method="post" action="returns.pl" class="confirm">
420 <div class="modal-header">
424 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
425 <div class="hold-found-barcode">
426 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% itembarcode | html %]</a>)
431 <div class="modal-body">
432 [% IF ( reservenotes ) %]
434 <p>[% reservenotes | html %]</p>
440 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
441 <span class="patron-category"> - [% patron.category.description | html %]</span>
444 [% INCLUDE display_holdpatron_address %]
446 [% IF ( patron.phone ) %]
447 <li>[% patron.phone | html %]</li>
450 [% IF ( patron.email ) %]
452 [% IF ( transfertodo ) %]
453 [% patron.email | html %]
455 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
460 [% UNLESS ( transfertodo) %]
461 [% INCLUDE display_bormessagepref %]
464 [% IF ( patron.debarred ) %]
465 <li class="error">Patron is RESTRICTED</li>
468 [% IF ( patron.gonenoaddress ) %]
469 <li class="error">Patron's address is in doubt</li>
472 [% IF ( transfertodo ) %]
473 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
475 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
478 <input type="hidden" name="print_slip" value="0" />
481 [% FOREACH inputloo IN inputloop %]
482 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
483 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
484 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
487 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
488 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
489 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
490 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
491 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
492 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
493 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
494 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
495 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
496 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
499 <div class="modal-footer">
500 [% IF ( transfertodo ) %]
501 <button type="submit" class="btn btn-default approve">
502 <i class="fa fa-check"></i> Confirm hold and transfer
504 <button type="submit" class="btn btn-default print">
505 <i class="fa fa-print"></i> Print slip, transfer, and confirm
508 <button type="submit" class="btn btn-default approve">
509 <i class="fa fa-check"></i> Confirm hold
511 <button type="submit" class="btn btn-default print">
512 <i class="fa fa-print"></i> Print slip and confirm
516 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
517 <i class="fa fa-times"></i> Ignore
519 </div> <!-- /.modal-footer -->
520 </form> <!-- /.confirm -->
521 </div> <!-- /.modal-content -->
522 </div> <!-- /.modal-dialog -->
523 </div> <!-- /#hold-found2 -->
524 [% END #/IF reserved %]
525 [% END # /IF found %]
527 [% IF ( errmsgloop ) %]
528 <div class="dialog alert audio-alert-warning">
529 <h3>Check in message</h3>
530 [% IF itembiblionumber %]
531 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
533 [% FOREACH errmsgloo IN errmsgloop %]
534 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
536 Not for loan status updated.
538 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
539 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
544 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
545 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
551 [% IF ( errmsgloo.ItemLocationUpdated ) %]
553 Item shelving location updated.
555 [% IF errmsgloo.ItemLocationUpdated.from %]
556 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
558 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %]
559 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
561 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %]
567 [% IF errmsgloo.ItemLocationUpdated.to %]
568 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
570 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %]
571 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
573 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %]
580 [% IF ( errmsgloo.badbarcode ) %]
581 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
583 [% IF ( errmsgloo.ispermanent ) %]
584 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
586 [% IF ( errmsgloo.notissued ) %]
587 <p class="problem">Not checked out.</p>
589 [% IF ( errmsgloo.localuse) %]
590 <p class="problem">Local use recorded</p>
592 [% IF ( errmsgloo.waslost ) %]
593 [% IF Koha.Preference('BlockReturnOfLostItems') %]
594 <p class="problem">Item is lost, cannot be checked in.</p>
596 <p class="problem">Item was lost, now found.</p>
598 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
599 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
600 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
601 <h5>Cannot check in</h5>
602 <p><strong>NOT CHECKED IN</strong></p>
604 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
607 [% IF ( errmsgloo.withdrawn ) %]
608 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
609 <h5>Cannot check in</h5>
610 <p><strong>NOT CHECKED IN</strong></p>
612 <p class="problem">Item is withdrawn.</p>
614 [% IF ( errmsgloo.debarred ) %]
615 <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>
617 [% IF ( errmsgloo.prevdebarred ) %]
618 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
620 [% IF ( errmsgloo.foreverdebarred ) %]
621 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
624 [% IF errmsgloo.data_corrupted %]
625 <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>
627 [% END # /FOREACH errmsgloo %]
628 </div> <!-- /.dialog.dialog-alert -->
629 [% END #/IF errmsgloop %]
631 [% IF ( checkinmsg ) %]
632 [% IF ( checkinmsgtype == 'alert' ) %]
633 <div class="dialog alert">
635 <div class="dialog message">
637 <p class="problem">[% checkinmsg | html_line_break %]</p>
639 [% END # /IF checkinmsg %]
641 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
642 <fieldset id="circ_returns_checkin">
645 <div class="col-sm-6">
646 <div class="hint">Enter item barcode:</div>
647 <div class="form-control-group">
648 [% IF ( exemptfine ) %]
649 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
650 [% ELSIF ( dropboxmode ) %]
651 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
653 <input name="barcode" id="barcode" size="14" class="barcode focus" />
655 <button type="submit" class="btn btn-default">Check in</button>
656 [% FOREACH inputloo IN inputloop %]
657 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
658 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
659 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
662 <div id="show-circ-settings">
663 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
666 <div class="col-sm-6">
667 [% IF ( exemptfine ) %]
668 <div id="exemptfines" class="checkin-active-setting">
670 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
672 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
675 [% IF ( forgivemanualholdsexpire ) %]
676 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
678 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
680 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
683 [% IF ( dropboxmode ) %]
684 <div id="dropboxmode" class="checkin-active-setting">
686 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
688 <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>
690 [% IF ( return_date_override_remember ) %]
691 <div id="return_date_remember" class="checkin-active-setting">
693 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
695 <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>
700 <div class="circ-settings">
701 [% IF Koha.Preference('SpecifyReturnDate') %]
702 <div class="date-select" id="return_date_override_fields">
703 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
705 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
709 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
710 <div class="circ-setting">
711 [% IF ( return_date_override_remember ) %]
712 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
714 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
716 <label for="return_date_override_remember"> Remember due date for next check in</label>
718 </div> <!-- /.date-select -->
721 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
722 <div id="forgive-overdue-fines" class="circ-setting">
723 [% IF ( exemptfine ) %]
724 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
726 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
728 <label for="exemptcheck">Forgive overdue charges</label>
730 [% END %] <!-- overduecharges -->
732 <div id="book-drop-mode" class="circ-setting">
733 [% IF ( dropboxmode ) %]
734 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
736 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
738 <label for="dropboxcheck">Book drop mode</label>
741 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
742 <div class="forgive-manual-hold-fees circ-setting">
743 [% IF ( forgivemanualholdsexpire ) %]
744 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
746 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
748 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
750 [% END %] <!-- overduecharges -->
752 </div> <!-- /.circ-settings -->
753 </fieldset> <!-- /#circ_returns_checkin -->
754 </form> <!-- /#checkin-form -->
757 <h2>Checked-in items</h2>
758 <table id="checkedintable">
761 <th class="ci-duedate">Due date</th>
762 <th class="ci-title">Title</th>
763 <th class="ci-author">Author</th>
764 <th class="ci-barcode">Barcode</th>
765 <th class="ci-homelibrary">Home library</th>
766 <th class="ci-holdinglibrary">Holding library</th>
767 <th class="ci-shelvinglocation">Shelving location</th>
768 <th class="ci-callnumber">Call number</th>
769 <th class="ci-dateaccessioned">Date acquired</th>
770 <th class="ci-type">Type</th>
771 <th class="ci-patron">Patron</th>
772 <th class="ci-note">Note</th>
776 [% FOREACH riloo IN riloop %]
778 <td class="ci-duedate">
779 [% IF ( riloo.duedate ) %]
780 [% IF ( riloo.return_overdue ) %]
781 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
783 [% riloo.duedate | html %]
789 <td class="ci-title">
790 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
791 [% riloo.itemtitle | html %]
793 [% IF ( riloo.enumchron ) %]
795 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
798 <td class="ci-author">[% riloo.itemauthor | html %]</td>
799 <td class="ci-barcode">
800 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
802 <td class="ci-homelibrary">
803 [% Branches.GetName( riloo.homebranch ) | html %]
805 <td class="ci-holdinglibrary">
806 [% Branches.GetName( riloo.holdingbranch ) | html %]
808 <td class="ci-shelvinglocation">
809 <span class="shelvingloc">[% riloo.location | html %]</span>
811 <td class="ci-callnumber">
812 [% riloo.itemcallnumber | html %]
814 <td class="ci-dateaccessioned">
815 [% riloo.dateaccessioned | $KohaDates %]
818 [% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]
820 <td class="ci-patron">
821 [% IF ( riloo.duedate ) %]
822 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
823 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
825 [% IF riloo.borissuescount %]
826 <span class="results_summary nowrap">
827 <span class="label">Checkouts:</span>
828 <span class="number_box">
829 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
838 [% IF ( riloo.patron.borrowernotes ) %]
839 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
841 [% IF ( riloo.itemnote ) %]
842 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
844 [% IF ( riloo.itemnotes_nonpublic ) %]
845 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
849 [% END # /FOREACH riloo %]
850 </table> <!-- /#checkedintable -->
851 [% END # /IF riloop %]
853 [% IF Koha.Preference('CircSidebar') %]
854 </div> <!-- /.col-sm-10.col-sm-push-2 -->
855 <div class="col-sm-2 col-sm-pull-10">
857 [% INCLUDE 'circ-nav.inc' %]
859 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
860 </div> <!-- /.row -->
862 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
863 </div> <!-- /.row -->
867 </div> <!-- /.col-sm-12 -->
868 </div> <!-- /.row -->
870 [% MACRO jsinclude BLOCK %]
871 [% INCLUDE 'datatables.inc' %]
872 [% INCLUDE 'columns_settings.inc' %]
873 [% INCLUDE 'calendar.inc' %]
874 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
875 [% Asset.js("js/pages/circulation.js") | $raw %]
876 [% INCLUDE 'timepicker.inc' %]
879 function Dopop(link) {
880 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
881 $("#barcode").focus();
883 $(document).ready(function () {
884 $(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() {
885 $("#barcode").prop("disabled", true);
886 }).on('hidden.bs.modal', function() {
887 $("#barcode").prop("disabled", false).focus();
890 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
892 $(".print-slip").on('click', function(e) {
894 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
898 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
901 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
902 var returns_table = KohaTable("checkedintable", {
907 "dom": 'B<"clearfix">t',
908 }, columns_settings);
910 $("#return_date_override").datetimepicker({
911 onClose: function(dateText, inst) {
912 if (validate_date(dateText, inst) ) {
913 $("#barcode").focus();
920 }).on("change", function(e, value) {
921 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
923 $("#return_date_override").on("blur", function() {
924 check_valid_return_date();
926 $("#checkin-form").submit(function( event ) {
927 if ( !check_valid_return_date() ) {
928 event.preventDefault();
932 function check_valid_return_date() {
933 if ( $("#return_date_override").val() ) {
934 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
935 var now = new Date();
936 if ( !datetime || datetime > now ) {
937 alert("Invalid return date/time!");
938 $("#return_date_override").val("")
942 // Add saved date information to onscreen message, which
943 // may or may not be hidden
944 $("#saved_return_date").text( $("#return_date_override").val() );
948 $("#exemptcheck").change(function () {
949 if (this.checked == true) {
950 $("#barcode").addClass("input-warning");
951 $("#exemptfines").show();
953 $("#barcode").removeClass("input-warning");
954 $("#exemptfines").hide();
956 $("#barcode").focus();
958 $("#dropboxcheck").change(function () {
959 if (this.checked == true) {
960 $("#barcode").addClass("input-warning");
961 $("#dropboxmode").show();
963 $("#return_date_override_fields :input").prop('disabled', true);
964 $("#return_date_override").datetimepicker("disable");
966 $("#barcode").removeClass("input-warning");
967 $("#dropboxmode").hide();
969 $("#return_date_override_fields :input").prop('disabled', false);
970 $("#return_date_override").datetimepicker("enable");
972 $("#barcode").focus();
974 $("#forgivemanualholdsexpire").change(function () {
975 if (this.checked == true) {
976 $("#barcode").addClass("input-warning");
977 $("#forgivemanualholdsexpire-alert").show();
979 $("#barcode").removeClass("input-warning");
980 $("#forgivemanualholdsexpire-alert").hide();
982 $("#barcode").focus();
985 [% IF(overduecharges) %]
986 $("#barcode").focus(function () {
987 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
988 $("#barcode").addClass("input-warning");
990 $("#barcode").removeClass("input-warning");
993 $("#barcode").blur(function () {
994 $("#barcode").removeClass("input-warning");
998 $('.openWin').on("click",function(e){
999 Dopop( $(this).data("url") );
1002 $('.print').on("click",function(e){
1003 this.form.print_slip.value = 1;
1007 $('.cancel-hold').on("click",function(e){
1008 this.form.cancel_reserve.value = 1;
1012 $('.action').on("click",function(e){
1013 this.checked = false;
1014 this.form.return_date_override.value = '';
1015 this.form.return_date_override_remember.checked = false;
1016 this.form.barcode.focus();
1017 $("#return_date_remember").hide();
1021 $("#return_date_override_remember").on("change", function(){
1022 if( $(this).prop("checked" ) ){
1023 if( $("#return_date_override").val() == "" ){
1024 $("#saved_return_date").text( _("No date selected") );
1026 $("#saved_return_date").text( $("#return_date_override").val() );
1028 $("#return_date_remember").show();
1030 $("#return_date_remember").hide();
1037 [% INCLUDE 'intranet-bottom.inc' %]