7 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
9 [% PROCESS 'member-display-address-style.inc' %]
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 [% PROCESS 'display-address-style' %]
30 [% INCLUDE 'doc-head-open.inc' %]
31 <title>Check in [% title | html %] › Circulation › Koha</title>
32 [% INCLUDE 'doc-head-close.inc' %]
35 <body id="circ_returns" class="circ">
36 <span class="audio-alert-success"></span>
38 [% INCLUDE 'header.inc' %]
39 [% INCLUDE 'checkin-search.inc' %]
41 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
44 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
47 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
50 <a href="#" aria-current="page">
57 <div class="main container-fluid">
59 <div class="col-sm-12">
63 [% IF Koha.Preference('CircSidebar') %]
64 <div class="col-sm-10 col-sm-push-2">
66 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
69 [% BLOCK all_checkin_messages %]
70 [% IF hold_auto_filled %]
71 <div class="dialog message hold-auto-filled">
72 [% IF ( reservenotes ) %]
73 <h4>Notes: [% reservenotes | html %]</h4>
75 <h3>Hold filled for:</h3>
78 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 %]
79 <span class="patron-category"> - [% patron.category.description | html %]</span>
82 [% INCLUDE display_holdpatron_address %]
84 [% IF ( patron.phone ) %]
85 <li>[% patron.phone | html %]</li>
88 [% IF ( patron.email ) %]
90 [% IF ( transfertodo ) %]
91 [% patron.email | html %]
93 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
98 [% UNLESS ( transfertodo) %]
99 [% INCLUDE display_bormessagepref %]
102 [% IF ( patron.is_debarred ) %]
103 <li class="error">Patron is RESTRICTED</li>
106 [% IF ( patron.gonenoaddress ) %]
107 <li class="error">Patron's address is in doubt</li>
111 [% IF ( transfertodo ) %]
112 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
114 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
117 <a href="#" class="btn btn-default print print-slip">
118 <i class="fa fa-print"></i> Print
120 </div> <!-- /.hold-auto-filled -->
121 [% END # /IF hold_auto_filled %]
124 <div id="transfer-trigger" class="dialog message">
125 <h3>Reason for transfer</h3>
127 [%- SWITCH trigger -%]
128 [%- CASE 'Manual' -%]Manual
129 [%- CASE 'StockrotationAdvance' -%]Stock rotation advance
130 [%- CASE 'StockrotationRepatriation' -%]Stock rotation repatriation
131 [%- CASE 'ReturnToHome' -%]Return to home library
132 [%- CASE 'ReturnToHolding' -%]Return to holding library
133 [%- CASE 'RotatingCollection' -%]Rotating collection
134 [%- CASE 'Reserve' -%]Reserve
135 [%- CASE 'LostReserve' -%]Lost reserve
136 [%- CASE 'CancelReserve' -%]Cancelled reserve
142 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
143 <div class="dialog alert">
144 <strong>Error:</strong>
145 This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
147 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
148 <div class="dialog alert">
149 <strong>Error:</strong>
150 The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.
154 [% IF additional_materials && !needs_confirm && !multiple_confirmed %]
155 <div class="dialog message">
156 Note about the accompanying materials: [% additional_materials | html %]
160 [% IF ( collectionItemNeedsTransferred ) %]
161 <div id="rotating-collection" class="dialog message">
162 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
163 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a></p>
164 <p>This item is part of a rotating collection.</p>
165 <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>
169 <!-- Patron has added an issue note -->
170 [% IF ( issue.note) %]
171 <div class="dialog message">
173 <p>[% issue.notedate | $KohaDates %]</p>
174 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
175 <p>[% issue.note | html %]</p>
179 <!-- Patron has fines -->
181 <div class="dialog alert">
182 <h3>Patron has outstanding fines of [% fines | html %].</h3>
183 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
187 <!-- Item has return claim(s) -->
188 [% IF ( ReturnClaims ) %]
189 <div class="dialog alert return-claim">
190 <h3>This item has been claimed as returned by:</h3>
192 [% FOREACH rc IN ReturnClaims %]
194 [% INCLUDE 'patron-title.inc' patron=rc.patron hide_patron_infos_if_needed=1 invert_name=1 %]
201 <!-- Patron has waiting holds -->
202 [% IF ( waiting_holds ) %]
203 <div id="awaiting-pickup" class="dialog message">
204 <h3>[% INCLUDE 'patron-title.inc' patron=issue.patron hide_patron_infos_if_needed=1 invert_name=1 %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
205 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
209 <!-- Patron is restricted and checkin was backdated -->
210 [% IF return_date_was_overriden && issue.patron.is_debarred %]
211 <div id="restricted_backdated" class="dialog message">
213 [% INCLUDE 'patron-title.inc' patron=issue.patron hide_patron_infos_if_needed=1 invert_name=1 %]
214 is restricted. Please verify this patron should still be restricted.
220 [% IF ( errmsgloop ) %]
221 <div class="dialog alert audio-alert-warning">
222 <h3>Check in message</h3>
223 [% IF itembiblionumber %]
224 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a></p>
226 [% FOREACH errmsgloo IN errmsgloop %]
227 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
228 <p class="problem ret_nflupdate">
229 Not for loan status updated.
231 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
232 <span class="ret_updatedfrom">
233 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.from ) | html %].
239 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
240 <span class="ret_updatedto">
241 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.to ) | html %].
248 [% IF ( errmsgloo.ItemLocationUpdated ) %]
249 <p class="problem ret_location_update">
250 Item shelving location updated.
252 [% IF errmsgloo.ItemLocationUpdated.from %]
253 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.from ) %]
254 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
256 [% ELSIF av_description == '' %]
257 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
259 [% av_description | html %]
265 [% IF errmsgloo.ItemLocationUpdated.to %]
266 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.to ) %]
267 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
269 [% ELSIF av_description == '' %]
270 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
272 [% av_description | html %]
279 [% IF ( errmsgloo.badbarcode ) %]
280 <p class="problem ret_badbarcode">No item with barcode: [% errmsgloo.msg | html %]</p>
282 [% IF ( errmsgloo.ispermanent ) %]
283 <p class="problem ret_ispermenant">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
285 [% IF ( errmsgloo.notissued ) %]
286 <p class="problem ret_notissued">Not checked out.</p>
288 [% IF ( errmsgloo.localuse) %]
289 <p class="problem ret_localuse">Local use recorded</p>
291 [% IF ( errmsgloo.transferred ) %]
292 <p class="problem ret_transferred">Item received from [% Branches.GetName( errmsgloo.transferred ) | html %]</p>
294 [% IF ( errmsgloo.waslost ) %]
295 [% IF Koha.Preference('BlockReturnOfLostItems') %]
296 <p class="problem ret_blocked">Item is lost, cannot be checked in.</p>
298 <p class="problem ret_checkedin">Item was lost, now found.</p>
300 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
301 <p class="problem ret_refund">A refund has been applied to the borrowing patron's account.</p>
302 [% ELSIF LostItemFeeCharged and not Koha.Preference('BlockReturnOfLostItems') %]
303 <p class="problem ret_charged">A refund for the lost item charge has been applied to the borrowing patron's account, and new overdue charge has been calculated and applied.</p>
304 [% ELSIF LostItemFeeRestored and not Koha.Preference('BlockReturnOfLostItems') %]
305 <p class="problem ret_restored">A refund for the lost item charge has been applied to the borrowing patron's account and if an overdue fine was forgiven when the item was marked as lost, it has been reverted.</p>
306 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
307 <h5>Cannot check in</h5>
308 <p><strong>NOT CHECKED IN</strong></p>
310 <p class="problem ret_feeremains">Any lost item fees for this item will remain on the patron's account.</p>
313 [% IF ( errmsgloo.withdrawn ) %]
314 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
315 <h5>Cannot check in</h5>
316 <p><strong>NOT CHECKED IN</strong></p>
318 <p class="problem ret_withdrawn">
319 <span>Item has been withdrawn</span>
320 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
321 [% IF (item_withdrawn_lib) %]<span class="ci-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
324 [% IF ( errmsgloo.debarred ) %]
325 <p class="problem ret_debarred"><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>
327 [% IF ( errmsgloo.prevdebarred ) %]
328 <p class="problem ret_prevdebarred"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
330 [% IF ( errmsgloo.foreverdebarred ) %]
331 <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
333 [% IF errmsgloo.data_corrupted %]
334 <p class="problem ret_datacorrupt">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 correct all errors shown on the "System information" tab</p>
336 [% END # /FOREACH errmsgloo %]
337 </div> <!-- /.dialog.dialog-alert -->
338 [% END #/IF errmsgloop %]
340 [% IF ( checkinmsg ) %]
341 [% IF ( checkinmsgtype == 'alert' ) %]
342 <div class="dialog alert">
344 <div class="dialog message">
346 <p class="problem ret_checkinmsg">[% checkinmsg | html_line_break %]</p>
348 [% END # /IF checkinmsg %]
349 [% END # /BLOCK all_checkin_messages %]
351 [% IF needs_confirm %]
352 <div id="circ-needsconfirmation-modal" class="modal fade audio-alert-action block">
353 <div class="modal-dialog">
354 <div class="modal-content">
355 <div class="modal-header">
356 <h3>Please confirm checkin</h3>
358 <div class="modal-body">
361 Please confirm that the accompanying materials are present: <strong>[% additional_materials | html %]</strong>
365 <div class="modal-footer">
366 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
367 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
368 <input type="hidden" name="multiple_confirm" value="1" />
369 [% FOREACH inputloo IN inputloop %]
370 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
371 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
372 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
374 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, checkin (Y)</button>
376 <button type="button" data-dismiss="modal" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't checkin (N)</button>
384 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
385 <div class="modal-dialog">
386 <div class="modal-content">
387 <form method="post" action="returns.pl" name="mainform" id="mainform">
388 <div class="modal-header">
393 <div class="modal-body">
395 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
396 [% item.barcode | html %]: [% title | html %]
405 This item must be checked in at following library:
407 [% Branches.GetName( rightbranch ) | html %]
410 [% INCLUDE all_checkin_messages %]
411 </div> <!-- /.modal-body -->
412 <div class="modal-footer">
413 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
415 </form> <!-- /#mainform -->
416 </div> <!-- /.modal-content -->
417 </div> <!-- /.modal-dialog -->
418 </div> <!-- /#wrong-branch-modal -->
419 [% END # /IF wrongbranch %]
421 <!-- case of a mistake in transfer loop -->
422 [% UNLESS ( hold_auto_filled && diffbranch ) %]
423 [% IF WrongTransfer && !transfertodo %]
424 [% IF Koha.Preference('TransfersBlockCirc') %]
425 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
427 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
429 <div class="modal-dialog">
430 <div class="modal-content">
431 <div class="modal-header">
433 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
436 <div class="modal-body">
438 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
439 [% item.barcode | html %]: [% title | html %]
442 [% INCLUDE all_checkin_messages %]
444 <div class="modal-footer">
446 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
448 <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>
449 <!-- CANCEL TRANSFER -->
450 <form method="post" action="returns.pl" name="mainform">
451 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
452 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
453 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
454 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
455 <input type="hidden" name="canceltransfer" value="1" />
456 [% FOREACH inputloo IN inputloop %]
457 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
458 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
459 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
461 </form> <!-- /mainform -->
462 </div> <!-- /.modal-footer -->
463 </div> <!-- /.modal-content -->
464 </div> <!-- /.modal-dialog -->
465 </div> <!-- /#wrong-transfer-modal -->
466 [% END # /IF WrongTransfer && !transfertodo %]
467 [% END # /UNLESS hold_auto_filled && diffbranch %]
471 <div id="hold-found1" class="modal fade audio-alert-action block">
472 <div class="modal-dialog">
473 <div class="modal-content">
474 <form method="post" action="returns.pl" class="confirm">
475 <div class="modal-header">
477 Hold found (item is already waiting):
479 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
480 <div class="hold-found-barcode">
481 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>
486 <div class="modal-body">
487 [% IF ( reservenotes ) %]
488 <h4>Notes: [% reservenotes | html %]</h4>
494 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
495 <span class="patron-category"> - [% patron.category.description | html %]</span>
497 [% INCLUDE display_holdpatron_address %]
498 [% IF ( patron.phone ) %]
499 <li> [% patron.phone | html %]</li>
502 [% IF ( patron.email ) %]
503 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
506 [% IF ( patron.is_debarred ) %]
507 <li class="error">Patron is RESTRICTED</li>
510 [% IF ( patron.gonenoaddress ) %]
511 <li class="error">Patron's address is in doubt</li>
515 [% IF ( transfertodo ) %]
516 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
518 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
521 [% FOREACH inputloo IN inputloop %]
522 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
523 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
524 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
527 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
528 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
529 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
530 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
531 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
532 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
533 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
534 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
536 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
537 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
538 [% INCLUDE all_checkin_messages %]
539 </div> <!-- /.modal-body -->
541 <div class="modal-footer">
542 <input type="hidden" name="cancel_reserve" value="0" />
543 <input id="confirm-hold-barcode" type="hidden" name="barcode" value="[% barcode | html %]" />
545 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
546 <i class="fa fa-check"></i> Confirm hold
549 <input type="hidden" name="print_slip" value="0" />
550 <button type="button" class="btn btn-default print">
551 <i class="fa fa-print"></i> Print slip and confirm
554 <button type="button" class="btn btn-default deny cancel-hold">
555 <i class="fa fa-times"></i> Cancel hold
557 </div> <!-- /.modal-footer -->
558 </form> <!-- /.confirm -->
559 </div> <!-- /.modal-content -->
560 </div> <!-- /.modal-dialog -->
561 </div> <!-- /#hold-found1 -->
562 [% END # /IF waiting %]
564 [% IF transfer || needstransfer %]
565 [% IF Koha.Preference('TransfersBlockCirc') %]
566 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
568 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
570 <div class="modal-dialog">
571 <div class="modal-content">
572 <form method="post" action="returns.pl" name="mainform" id="mainform">
574 <input type="hidden" name="print_slip" value="0" />
576 <div class="modal-header">
578 Please return this item to [% IF transfer %][% Branches.GetName( transfer ) | html %][% ELSE %][% Branches.GetName( returnbranch ) | html %][% END %]
581 <div class="modal-body">
583 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
584 [% item.barcode | html %]: [% title | html %]
592 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
593 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
594 <input type="hidden" name="barcode" value="0" />
595 <input type="hidden" name="trigger" value="[% trigger | html %]" />
596 [% INCLUDE all_checkin_messages %]
598 <div class="modal-footer">
600 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
601 <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>
602 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
604 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
605 <button type="button" data-dismiss="modal" name="dotransfer" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&branchcode=[% transfer | uri %]&op=slip"><i class="fa fa-print"></i> Print slip</button>
607 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
608 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
609 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
610 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
611 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
612 [% FOREACH inputloo IN inputloop %]
613 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
614 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
615 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
617 </div> <!-- /.modal-footer -->
618 </form> <!-- /#mainform -->
619 </div> <!-- /.modal-content -->
620 </div> <!-- /.modal-dialog -->
621 </div> <!-- /#item-transfer-modal -->
622 [% END # /IF transfer || needstransfer %]
624 <!-- case of simple return no issue or transfer but with a reservation -->
625 [% IF ( reserved ) %]
627 <div id="hold-found2" class="modal fade audio-alert-action block">
628 <div class="modal-dialog">
629 <div class="modal-content">
630 <form method="post" action="returns.pl" class="confirm">
632 <input type="hidden" name="print_slip" value="0" />
634 <div class="modal-header">
638 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
639 <div class="hold-found-barcode">
640 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>)
645 <div class="modal-body">
646 [% IF ( reservenotes ) %]
648 <p>[% reservenotes | html %]</p>
654 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
655 <span class="patron-category"> - [% patron.category.description | html %]</span>
658 [% INCLUDE display_holdpatron_address %]
660 [% IF ( patron.phone ) %]
661 <li>[% patron.phone | html %]</li>
664 [% IF ( patron.email ) %]
666 [% IF ( transfertodo ) %]
667 [% patron.email | html %]
669 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
674 [% UNLESS ( transfertodo) %]
675 [% INCLUDE display_bormessagepref %]
678 [% IF ( patron.is_debarred ) %]
679 <li class="error">Patron is RESTRICTED</li>
682 [% IF ( patron.gonenoaddress ) %]
683 <li class="error">Patron's address is in doubt</li>
686 [% IF ( transfertodo ) %]
687 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
689 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
692 [% FOREACH inputloo IN inputloop %]
693 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
694 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
695 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
698 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
699 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
700 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
701 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
702 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
703 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
704 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
705 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
706 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
707 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
708 [% INCLUDE all_checkin_messages %]
711 <div class="modal-footer">
712 [% IF ( transfertodo ) %]
713 <button type="submit" class="btn btn-default approve">
714 <i class="fa fa-check"></i> Confirm hold and transfer
716 <button type="button" class="btn btn-default print">
717 <i class="fa fa-print"></i> Print slip, transfer, and confirm
720 <button type="submit" class="btn btn-default approve">
721 <i class="fa fa-check"></i> Confirm hold
723 <button type="button" class="btn btn-default print">
724 <i class="fa fa-print"></i> Print slip and confirm
728 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
729 <i class="fa fa-times"></i> Ignore
731 </div> <!-- /.modal-footer -->
732 </form> <!-- /.confirm -->
733 </div> <!-- /.modal-content -->
734 </div> <!-- /.modal-dialog -->
735 </div> <!-- /#hold-found2 -->
736 [% END #/IF reserved %]
737 [% END # /IF found %]
739 <div class="static_checkin_messages">
740 [% INCLUDE all_checkin_messages %]
743 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
744 <fieldset id="circ_returns_checkin">
745 <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>
748 <div class="col-sm-6">
749 <div class="hint">Enter item barcode:</div>
750 <div class="form-control-group">
751 [% IF ( exemptfine ) %]
752 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
753 [% ELSIF ( dropboxmode ) %]
754 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
756 <input name="barcode" id="barcode" size="14" class="barcode focus" />
758 <button type="submit" class="btn btn-default">Check in</button>
759 [% FOREACH inputloo IN inputloop %]
760 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
761 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
762 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
765 <div id="show-circ-settings">
766 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
769 <div class="col-sm-6">
770 [% IF ( exemptfine ) %]
771 <div id="exemptfines" class="checkin-active-setting">
773 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
775 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
778 [% IF ( forgivemanualholdsexpire ) %]
779 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
781 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
783 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
786 [% IF ( dropboxmode ) %]
787 <div id="dropboxmode" class="checkin-active-setting">
789 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
791 <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>
793 [% IF ( return_date_override_remember ) %]
794 <div id="return_date_remember" class="checkin-active-setting">
796 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
798 <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>
803 <div class="circ-settings">
804 [% IF Koha.Preference('SpecifyReturnDate') %]
805 <div class="date-select" id="return_date_override_fields">
806 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
808 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
812 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
813 <div class="circ-setting">
814 [% IF ( return_date_override_remember ) %]
815 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
817 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
819 <label for="return_date_override_remember"> Remember return date for next check in</label>
821 </div> <!-- /.date-select -->
824 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
825 <div id="forgive-overdue-fines" class="circ-setting">
826 [% IF ( exemptfine ) %]
827 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
829 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
831 <label for="exemptcheck">Forgive overdue charges</label>
833 [% END %] <!-- overduecharges -->
835 <div id="book-drop-mode" class="circ-setting">
836 [% IF ( dropboxmode ) %]
837 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
839 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
841 <label for="dropboxcheck">Book drop mode</label>
844 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
845 <div class="forgive-manual-hold-fees circ-setting">
846 [% IF ( forgivemanualholdsexpire ) %]
847 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
849 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
851 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
853 [% END %] <!-- overduecharges -->
855 </div> <!-- /.circ-settings -->
856 </fieldset> <!-- /#circ_returns_checkin -->
857 </form> <!-- /#checkin-form -->
860 <h2>Checked-in items</h2>
861 <table id="checkedintable">
864 <th class="ci-duedate">Due date</th>
865 <th class="ci-title">Title</th>
866 <th class="ci-author">Author</th>
867 <th class="ci-barcode">Barcode</th>
868 <th class="ci-homelibrary">Home library</th>
869 <th class="ci-holdinglibrary">Holding library</th>
870 <th class="ci-shelvinglocation">Shelving location</th>
871 <th class="ci-callnumber">Call number</th>
872 <th class="ci-dateaccessioned">Date acquired</th>
873 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
874 <th class="ci-itemtype">Item type</th>
875 <th class="ci-collection">Collection</th>
876 <th class="ci-patron">Patron</th>
877 <th class="ci-note">Note</th>
881 [% FOREACH riloo IN riloop %]
883 <td class="ci-duedate">
884 [% IF ( riloo.duedate ) %]
885 [% IF ( riloo.return_overdue ) %]
886 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
888 [% riloo.duedate | html %]
893 [% IF ( riloo.damaged ) %]
894 <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => riloo.damaged ) | html %]</span>
897 <td class="ci-title">
898 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
899 [% riloo.itemtitle | html %]
900 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
901 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
902 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
904 [% IF ( riloo.enumchron ) %]
906 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
909 <td class="ci-author">[% riloo.itemauthor | html %]</td>
910 <td class="ci-barcode">
911 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
913 <td class="ci-homelibrary">
914 [% Branches.GetName( riloo.homebranch ) | html %]
916 <td class="ci-holdinglibrary">
917 [% Branches.GetName( riloo.holdingbranch ) | html %]
919 <td class="ci-shelvinglocation">
920 <span class="shelvingloc">[% riloo.location | html %]</span>
922 <td class="ci-callnumber">
923 [% riloo.itemcallnumber | html %]
925 <td class="ci-dateaccessioned">
926 [% riloo.dateaccessioned | $KohaDates %]
928 <td class="ci-recordlevelitemtype">
929 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
931 <td class="ci-itemtype">
932 [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
934 <td class="ci-collection">
935 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
937 <td class="ci-patron">
938 [% IF ( riloo.duedate ) %]
939 [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
940 [% IF riloo.borissuescount %]
941 <span class="results_summary nowrap">
942 <span class="label">Checkouts:</span>
943 <span class="number_box">
944 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
948 <a class="btn btn-default btn-xs printcheckinslip" href="#" data-borrowernumber="[% riloo.patron.borrowernumber | html %]"><i class="fa fa-print"></i> Print checkin slip</a>
954 [% IF ( riloo.patron.borrowernotes ) %]
955 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
957 [% IF ( riloo.itemnote ) %]
958 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
960 [% IF ( riloo.itemnotes_nonpublic ) %]
961 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
965 [% END # /FOREACH riloo %]
966 </table> <!-- /#checkedintable -->
967 [% END # /IF riloop %]
969 [% IF Koha.Preference('CircSidebar') %]
970 </div> <!-- /.col-sm-10.col-sm-push-2 -->
971 <div class="col-sm-2 col-sm-pull-10">
973 [% INCLUDE 'circ-nav.inc' %]
975 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
976 </div> <!-- /.row -->
978 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
979 </div> <!-- /.row -->
983 </div> <!-- /.col-sm-12 -->
984 </div> <!-- /.row -->
986 [% MACRO jsinclude BLOCK %]
987 [% INCLUDE 'datatables.inc' %]
988 [% INCLUDE 'columns_settings.inc' %]
989 [% INCLUDE 'calendar.inc' %]
990 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
991 [% Asset.js("js/pages/circulation.js") | $raw %]
992 [% INCLUDE 'timepicker.inc' %]
995 function Dopop(link) {
996 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
997 $("#barcode").focus();
999 $(document).ready(function () {
1000 $("#checkin-form").preventDoubleFormSubmit();
1001 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
1002 $("#barcode").prop("disabled", true);
1003 $(".show_checkin_dialog").show();
1004 }).on('hidden.bs.modal', function() {
1005 $("#barcode").prop("disabled", false).focus();
1007 $(".modal.noblock").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
1008 $("#barcode").prop("disabled", false).focus();
1009 }).on('hidden.bs.modal', function() {
1010 $("#barcode").prop("disabled", false).focus();
1013 $("body").on("click", ".show_checkin_dialog button", function(e){
1015 $(".modal").modal("show");
1018 $(".print-slip").on('click', function(e) {
1020 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1023 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1026 var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
1027 var returns_table = KohaTable("checkedintable", {
1032 "dom": 'B<"clearfix">t',
1033 }, columns_settings);
1035 $("#return_date_override").datetimepicker({
1036 onClose: function(dateText, inst) {
1037 if (validate_date(dateText, inst) ) {
1038 $("#barcode").focus();
1045 }).on("change", function(e, value) {
1046 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
1048 $("#return_date_override").on("blur", function() {
1049 check_valid_return_date();
1051 $("#checkin-form").submit(function( event ) {
1052 if ( !check_valid_return_date() ) {
1053 event.preventDefault();
1057 function check_valid_return_date() {
1058 if ( $("#return_date_override").val() ) {
1059 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
1060 var now = new Date();
1061 if ( !datetime || datetime > now ) {
1062 alert("Invalid return date/time!");
1063 $("#return_date_override").val("")
1067 // Add saved date information to onscreen message, which
1068 // may or may not be hidden
1069 $("#saved_return_date").text( $("#return_date_override").val() );
1073 $("#exemptcheck").change(function () {
1074 if (this.checked == true) {
1075 $("#barcode").addClass("input-warning");
1076 $("#exemptfines").show();
1078 $("#barcode").removeClass("input-warning");
1079 $("#exemptfines").hide();
1081 $("#barcode").focus();
1083 $("#dropboxcheck").change(function () {
1084 if (this.checked == true) {
1085 $("#barcode").addClass("input-warning");
1086 $("#dropboxmode").show();
1088 $("#return_date_override_fields :input").prop('disabled', true);
1089 $("#return_date_override").datetimepicker("disable");
1091 $("#barcode").removeClass("input-warning");
1092 $("#dropboxmode").hide();
1094 $("#return_date_override_fields :input").prop('disabled', false);
1095 $("#return_date_override").datetimepicker("enable");
1097 $("#barcode").focus();
1099 $("#forgivemanualholdsexpire").change(function () {
1100 if (this.checked == true) {
1101 $("#barcode").addClass("input-warning");
1102 $("#forgivemanualholdsexpire-alert").show();
1104 $("#barcode").removeClass("input-warning");
1105 $("#forgivemanualholdsexpire-alert").hide();
1107 $("#barcode").focus();
1110 [% IF(overduecharges) %]
1111 $("#barcode").focus(function () {
1112 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1113 $("#barcode").addClass("input-warning");
1115 $("#barcode").removeClass("input-warning");
1118 $("#barcode").blur(function () {
1119 $("#barcode").removeClass("input-warning");
1123 $('.openWin').on("click",function(e){
1124 Dopop( $(this).data("url") );
1127 $('.print').on("click",function(e){
1128 this.form.print_slip.value = 1;
1129 let barcode = document.getElementById('confirm-hold-barcode');
1130 if ( barcode ) barcode.remove();
1134 $('.cancel-hold').on("click",function(e){
1135 this.form.cancel_reserve.value = 1;
1139 $('.action').on("click",function(e){
1140 this.checked = false;
1141 this.form.return_date_override.value = '';
1142 this.form.return_date_override_remember.checked = false;
1143 this.form.barcode.focus();
1144 $("#return_date_remember").hide();
1148 $("#return_date_override_remember").on("change", function(){
1149 if( $(this).prop("checked" ) ){
1150 if( $("#return_date_override").val() == "" ){
1151 $("#saved_return_date").text( _("No date selected") );
1153 $("#saved_return_date").text( $("#return_date_override").val() );
1155 $("#return_date_remember").show();
1157 $("#return_date_remember").hide();
1160 $('[data-toggle="tooltip"]').tooltip();
1162 $(".printcheckinslip").on("click", function(e){
1164 var borrowernumber = $(this).data('borrowernumber');
1165 window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow");
1172 [% INCLUDE 'intranet-bottom.inc' %]