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' -]<span>Manual</span>
129 [%- CASE 'StockrotationAdvance' -]<span>Stock rotation advance</span>
130 [%- CASE 'StockrotationRepatriation' -]<span>Stock rotation repatriation</span>
131 [%- CASE 'ReturnToHome' -]<span>Return to home library</span>
132 [%- CASE 'ReturnToHolding' -]<span>Return to holding library</span>
133 [%- CASE 'RotatingCollection' -]<span>Rotating collection</span>
134 [%- CASE 'Reserve' -]<span>Reserve</span>
135 [%- CASE 'LostReserve' -]<span>Lost reserve</span>
136 [%- CASE 'CancelReserve' -]<span>Cancelled reserve</span>
137 [%- CASE 'TransferCancellation' -]<span>Transfer was cancelled whilst in transit</span>
143 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
144 <div class="dialog alert">
145 <strong>Error:</strong>
146 This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
148 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
149 <div class="dialog alert">
150 <strong>Error:</strong>
151 The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.
155 [% IF additional_materials && !needs_confirm && !multiple_confirmed %]
156 <div class="dialog message">
157 Note about the accompanying materials: [% additional_materials | html %]
161 [% IF ( collectionItemNeedsTransferred ) %]
162 <div id="rotating-collection" class="dialog message">
163 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
164 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a></p>
165 <p>This item is part of a rotating collection.</p>
166 <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>
170 <!-- Patron has added an issue note -->
171 [% IF ( issue.note) %]
172 <div class="dialog message">
174 <p>[% issue.notedate | $KohaDates %]</p>
175 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
176 <p>[% issue.note | html %]</p>
180 <!-- Patron has fines -->
182 <div class="dialog alert">
183 <h3>Patron has outstanding fines of [% fines | html %].</h3>
184 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
188 <!-- Item has return claim(s) -->
189 [% IF ( ReturnClaims ) %]
190 <div class="dialog alert return-claim">
191 <h3>This item has been claimed as returned by:</h3>
193 [% FOREACH rc IN ReturnClaims %]
195 [% INCLUDE 'patron-title.inc' patron=rc.patron hide_patron_infos_if_needed=1 invert_name=1 %] <a class="btn btn-default btn-xs return-claim-tools-resolve" role="button" data-return-claim-id="[% rc.id | html %]" data-current-lost-status="0"><i class="fa fa-check-square"></i> Resolve</a>
202 <!-- Patron has waiting holds -->
203 [% IF ( waiting_holds ) %]
204 <div id="awaiting-pickup" class="dialog message">
205 <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>
206 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
210 <!-- Patron is restricted and checkin was backdated -->
211 [% IF return_date_was_overriden && issue.patron.is_debarred %]
212 <div id="restricted_backdated" class="dialog message">
214 [% INCLUDE 'patron-title.inc' patron=issue.patron hide_patron_infos_if_needed=1 invert_name=1 %]
215 is restricted. Please verify this patron should still be restricted.
221 [% IF ( errmsgloop ) %]
222 <div class="dialog alert audio-alert-warning">
223 <h3>Check in message</h3>
224 [% IF itembiblionumber %]
225 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a></p>
227 [% FOREACH errmsgloo IN errmsgloop %]
228 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
229 <p class="problem ret_nflupdate">
230 Not for loan status updated.
232 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
233 <span class="ret_updatedfrom">
234 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.from ) | html %].
240 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
241 <span class="ret_updatedto">
242 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.to ) | html %].
249 [% IF ( errmsgloo.ItemLocationUpdated ) %]
250 <p class="problem ret_location_update">
251 Item shelving location updated.
253 [% IF errmsgloo.ItemLocationUpdated.from %]
254 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.from ) %]
255 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
257 [% ELSIF av_description == '' %]
258 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
260 [% av_description | html %]
266 [% IF errmsgloo.ItemLocationUpdated.to %]
267 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.to ) %]
268 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
270 [% ELSIF av_description == '' %]
271 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
273 [% av_description | html %]
280 [% IF ( errmsgloo.badbarcode ) %]
281 <p class="problem ret_badbarcode">No item with barcode: [% errmsgloo.msg | html %]</p>
283 [% IF ( errmsgloo.ispermanent ) %]
284 <p class="problem ret_ispermenant">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
286 [% IF ( errmsgloo.notissued ) %]
287 <p class="problem ret_notissued">Not checked out.</p>
289 [% IF ( errmsgloo.localuse) %]
290 <p class="problem ret_localuse">Local use recorded</p>
292 [% IF ( errmsgloo.transferred ) %]
293 <p class="problem ret_transferred">Item received from [% Branches.GetName( errmsgloo.transferred ) | html %]</p>
295 [% IF ( errmsgloo.waslost ) %]
296 [% IF Koha.Preference('BlockReturnOfLostItems') %]
297 <p class="problem ret_blocked">Item is lost, cannot be checked in.</p>
299 <p class="problem ret_checkedin">Item was lost, now found.</p>
301 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
302 <p class="problem ret_refund">A refund has been applied to the borrowing patron's account.</p>
303 [% ELSIF LostItemFeeCharged and not Koha.Preference('BlockReturnOfLostItems') %]
304 <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>
305 [% ELSIF LostItemFeeRestored and not Koha.Preference('BlockReturnOfLostItems') %]
306 <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>
307 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
308 <h5>Cannot check in</h5>
309 <p><strong>NOT CHECKED IN</strong></p>
311 <p class="problem ret_feeremains">Any lost item fees for this item will remain on the patron's account.</p>
314 [% IF ( errmsgloo.withdrawn ) %]
315 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
316 <h5>Cannot check in</h5>
317 <p><strong>NOT CHECKED IN</strong></p>
319 <p class="problem ret_withdrawn">
320 <span>Item has been withdrawn</span>
321 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
322 [% IF (item_withdrawn_lib) %]<span class="ci-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
325 [% IF ( errmsgloo.debarred ) %]
326 <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>
328 [% IF ( errmsgloo.prevdebarred ) %]
329 <p class="problem ret_prevdebarred"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
331 [% IF ( errmsgloo.foreverdebarred ) %]
332 <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
334 [% IF errmsgloo.data_corrupted %]
335 <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>
337 [% END # /FOREACH errmsgloo %]
338 </div> <!-- /.dialog.dialog-alert -->
339 [% END #/IF errmsgloop %]
341 [% IF ( checkinmsg ) %]
342 [% IF ( checkinmsgtype == 'alert' ) %]
343 <div class="dialog alert">
345 <div class="dialog message">
347 <p class="ret_checkinmsg">[% checkinmsg | html_line_break %]</p>
349 [% END # /IF checkinmsg %]
350 [% END # /BLOCK all_checkin_messages %]
352 [% IF needs_confirm %]
353 <div id="circ-needsconfirmation-modal" class="modal fade audio-alert-action block">
354 <div class="modal-dialog">
355 <div class="modal-content">
356 <div class="modal-header">
357 <h3>Please confirm checkin</h3>
359 <div class="modal-body">
362 Please confirm that the accompanying materials are present: <strong>[% additional_materials | html %]</strong>
366 <div class="modal-footer">
367 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
368 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
369 <input type="hidden" name="multiple_confirm" value="1" />
370 [% FOREACH inputloo IN inputloop %]
371 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
372 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
373 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
375 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, checkin (Y)</button>
377 <button type="button" data-dismiss="modal" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't checkin (N)</button>
385 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
386 <div class="modal-dialog">
387 <div class="modal-content">
388 <form method="post" action="returns.pl" name="mainform" id="mainform">
389 <div class="modal-header">
394 <div class="modal-body">
396 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
397 [% item.barcode | html %]: [% title | html %]
406 This item must be checked in at following library:
408 [% Branches.GetName( rightbranch ) | html %]
411 [% INCLUDE all_checkin_messages %]
412 </div> <!-- /.modal-body -->
413 <div class="modal-footer">
414 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
416 </form> <!-- /#mainform -->
417 </div> <!-- /.modal-content -->
418 </div> <!-- /.modal-dialog -->
419 </div> <!-- /#wrong-branch-modal -->
420 [% END # /IF wrongbranch %]
422 <!-- case of a mistake in transfer loop -->
423 [% UNLESS ( hold_auto_filled && diffbranch ) %]
424 [% IF WrongTransfer && !transfertodo %]
425 [% IF Koha.Preference('TransfersBlockCirc') %]
426 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
428 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
430 <div class="modal-dialog">
431 <div class="modal-content">
432 <form method="post" action="returns.pl" name="wrongtransferform" id="wrongtransferform">
433 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
434 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
435 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
436 <input type="hidden" name="transit" value="[% NewTransfer | html %]" />
437 [% FOREACH inputloo IN inputloop %]
438 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
439 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
440 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
443 <div class="modal-header">
445 Wrong transfer detected, please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
449 <div class="modal-body">
451 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a>
454 [% INCLUDE all_checkin_messages %]
457 <div class="modal-footer">
459 <button class="btn btn-default approve" type="submit" accesskey="y"><i class="fa fa-check"></i> OK (Y)</button>
461 <button type="button" data-dismiss="modal" class="btn btn-default submit openWin" data-transfer="[% NewTransfer | html %]" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&&branchcode=[% TransferWaitingAt | uri %]&op=slip" accesskey="p"><i class="fa fa-print"></i> Print transfer slip (P)</button>
462 <!-- CANCEL TRANSFER -->
463 <button type="button" data-dismiss="modal" class="btn btn-default deny cancel" accesskey="x"><i class="fa fa-times"></i> Cancel transfer (X)</button>
464 </div> <!-- /.modal-footer -->
465 </form> <!-- /wrongtransferform -->
466 </div> <!-- /.modal-content -->
467 </div> <!-- /.modal-dialog -->
468 </div> <!-- /#wrong-transfer-modal -->
469 [% END # /IF WrongTransfer && !transfertodo %]
470 [% END # /UNLESS hold_auto_filled && diffbranch %]
474 <div id="hold-found1" class="modal fade audio-alert-action block">
475 <div class="modal-dialog">
476 <div class="modal-content">
477 <form method="post" action="returns.pl" class="confirm">
478 <div class="modal-header">
480 Hold found (item is already waiting):
482 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
483 <div class="hold-found-barcode">
484 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>
489 <div class="modal-body">
490 [% IF ( reservenotes ) %]
491 <h4>Notes: [% reservenotes | html %]</h4>
497 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
498 <span class="patron-category"> - [% patron.category.description | html %]</span>
500 [% INCLUDE display_holdpatron_address %]
501 [% IF ( patron.phone ) %]
502 <li> [% patron.phone | html %]</li>
505 [% IF ( patron.email ) %]
506 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
509 [% IF ( patron.is_debarred ) %]
510 <li class="error">Patron is RESTRICTED</li>
513 [% IF ( patron.gonenoaddress ) %]
514 <li class="error">Patron's address is in doubt</li>
518 [% IF ( transfertodo ) %]
519 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
521 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
524 [% FOREACH inputloo IN inputloop %]
525 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
526 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
527 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
530 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
531 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
532 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
533 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
534 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
535 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
536 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
537 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
539 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
540 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
541 [% INCLUDE all_checkin_messages %]
542 </div> <!-- /.modal-body -->
544 <div class="modal-footer">
545 <input type="hidden" name="cancel_reserve" value="0" />
546 <input id="confirm-hold-barcode" type="hidden" name="barcode" value="[% barcode | html %]" />
548 <button type="submit" class="btn btn-default approve" data-dismiss="modal" accesskey="y">
549 <i class="fa fa-check"></i> Confirm hold (Y)
552 <input type="hidden" name="print_slip" value="0" />
553 <button type="button" class="btn btn-default print" accesskey="P">
554 <i class="fa fa-print"></i> Print slip and confirm (P)
557 <button type="button" class="btn btn-default deny cancel-hold" accesskey="X">
558 <i class="fa fa-times"></i> Cancel hold (X)
560 </div> <!-- /.modal-footer -->
561 </form> <!-- /.confirm -->
562 </div> <!-- /.modal-content -->
563 </div> <!-- /.modal-dialog -->
564 </div> <!-- /#hold-found1 -->
565 [% END # /IF waiting %]
567 [% IF transfer || needstransfer %]
568 [% IF Koha.Preference('TransfersBlockCirc') %]
569 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
571 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
573 <div class="modal-dialog">
574 <div class="modal-content">
575 <form method="post" action="returns.pl" name="mainform" id="mainform">
577 <input type="hidden" name="print_slip" value="0" />
579 <div class="modal-header">
581 Please return this item to [% IF transfer %][% Branches.GetName( transfer ) | html %][% ELSE %][% Branches.GetName( returnbranch ) | html %][% END %]
584 <div class="modal-body">
586 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
587 [% item.barcode | html %]: [% title | html %]
595 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
596 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
597 <input type="hidden" name="barcode" value="0" />
598 <input type="hidden" name="trigger" value="[% trigger | html %]" />
599 [% INCLUDE all_checkin_messages %]
601 <div class="modal-footer">
603 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve" accesskey="y"><i class="fa fa-check"></i> Yes (Y)</button>
604 <button type="button" name="dotransfer" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&&branchcode=[% returnbranch | uri %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
605 <button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No" accesskey="n"><i class="fa fa-times"></i> No (N)</button>
607 <button type="button" data-dismiss="modal" class="btn btn-default approve" accesskey="y"><i class="fa fa-check"></i> OK (Y)</button>
608 <button type="button" data-dismiss="modal" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&branchcode=[% transfer | uri %]&op=slip" accesskey="p"><i class="fa fa-print"></i> Print slip (P)</button>
610 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
611 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
612 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
613 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
614 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
615 [% FOREACH inputloo IN inputloop %]
616 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
617 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
618 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
620 </div> <!-- /.modal-footer -->
621 </form> <!-- /#mainform -->
622 </div> <!-- /.modal-content -->
623 </div> <!-- /.modal-dialog -->
624 </div> <!-- /#item-transfer-modal -->
625 [% END # /IF transfer || needstransfer %]
627 <!-- case of simple return no issue or transfer but with a reservation -->
628 [% IF ( reserved and !recalled and !waitingrecall ) %]
630 <div id="hold-found2" class="modal fade audio-alert-action block">
631 <div class="modal-dialog">
632 <div class="modal-content">
633 <form method="post" action="returns.pl" class="confirm">
635 <input type="hidden" name="print_slip" value="0" />
637 <div class="modal-header">
641 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
642 <div class="hold-found-barcode">
643 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>)
648 <div class="modal-body">
649 [% IF ( reservenotes ) %]
651 <p>[% reservenotes | html %]</p>
657 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
658 <span class="patron-category"> - [% patron.category.description | html %]</span>
661 [% INCLUDE display_holdpatron_address %]
663 [% IF ( patron.phone ) %]
664 <li>[% patron.phone | html %]</li>
667 [% IF ( patron.email ) %]
669 [% IF ( transfertodo ) %]
670 [% patron.email | html %]
672 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
677 [% UNLESS ( transfertodo) %]
678 [% INCLUDE display_bormessagepref %]
681 [% IF ( patron.is_debarred ) %]
682 <li class="error">Patron is RESTRICTED</li>
685 [% IF ( patron.gonenoaddress ) %]
686 <li class="error">Patron's address is in doubt</li>
689 [% IF ( transfertodo ) %]
690 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
692 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
695 [% FOREACH inputloo IN inputloop %]
696 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
697 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
698 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
701 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
702 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
703 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
704 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
705 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
706 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
707 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
708 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
709 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
710 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
711 [% INCLUDE all_checkin_messages %]
714 <div class="modal-footer">
715 [% IF ( transfertodo ) %]
716 <button type="submit" class="btn btn-default approve" accesskey="y">
717 <i class="fa fa-check"></i> Confirm hold and transfer (Y)
719 <button type="button" class="btn btn-default print" accesskey="p">
720 <i class="fa fa-print"></i> Print slip, transfer, and confirm (P)
723 <button type="submit" class="btn btn-default approve" accesskey="y">
724 <i class="fa fa-check"></i> Confirm hold (Y)
726 <button type="button" class="btn btn-default print" accesskey="p">
727 <i class="fa fa-print"></i> Print slip and confirm (P)
731 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny" accesskey="i">
732 <i class="fa fa-times"></i> Ignore (I)
734 </div> <!-- /.modal-footer -->
735 </form> <!-- /.confirm -->
736 </div> <!-- /.modal-content -->
737 </div> <!-- /.modal-dialog -->
738 </div> <!-- /#hold-found2 -->
739 [% END #/IF reserved %]
741 [% IF ( recalled ) %]
743 <div id="recalled" class="modal fade audio-alert-action block">
744 <div class="modal-dialog">
745 <div class="modal-content">
746 <form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm">
748 <div class="modal-header">
752 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a>
754 <div class="recall-found-barcode">
755 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>)
761 <div class="modal-body">
762 [% IF ( recall.recallnotes ) %]
764 <p>[% recall.recallnotes | html %]</p>
767 <h5>Recall placed by:</h5>
770 [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %]
771 <span class="patron-category"> - [% recall.patron.category.description | html %]</span>
774 [% INCLUDE display_holdpatron_address patron=recall.patron %]
776 [% IF ( recall.patron.phone ) %]
777 <li>[% recall.patron.phone | html %]</li>
780 [% IF ( recall.patron.email ) %]
782 [% IF ( transfertodo ) %]
783 [% recall.patron.email | html %]
785 <a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a>
790 [% UNLESS ( transfertodo) %]
791 [% INCLUDE display_bormessagepref %]
794 [% IF ( recall.patron.is_debarred ) %]
795 <li class="error">Patron is RESTRICTED</li>
798 [% IF ( recall.patron.gonenoaddress ) %]
799 <li class="error">Patron's address is in doubt</li>
802 [% IF ( transfertodo ) %]
803 <h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
805 <h4><strong>Recall at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
808 <input type="hidden" name="recall_id" value="[% recall.recall_id | html %]">
809 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
810 <input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
811 <input type="hidden" name="recall_slip" value="0">
815 <div class="modal-footer">
816 [% IF ( transfertodo ) %]
817 <button type="submit" class="btn btn-default approve">
818 <i class="fa fa-check"></i> Confirm recall and transfer
820 <button type="button" class="btn btn-default print-recall">
821 <i class="fa fa-print"></i> Print slip, transfer, and confirm
824 <button type="submit" class="btn btn-default approve">
825 <i class="fa fa-check"></i> Confirm recall
827 <button type="button" class="btn btn-default print-recall">
828 <i class="fa fa-print"></i> Print slip and confirm
832 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
833 <i class="fa fa-times"></i> Ignore
835 </div> <!-- /.modal-footer -->
836 </form> <!-- /.confirm -->
837 </div> <!-- /.modal-content -->
838 </div> <!-- /.modal-dialog -->
839 </div> <!-- /#recalled -->
840 [% END #/IF recalled %]
842 [% IF ( waitingrecall ) %]
844 <div id="recalledwaiting" class="modal fade audio-alert-action block">
845 <div class="modal-dialog">
846 <div class="modal-content">
847 <form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm">
849 <div class="modal-header">
851 Recall found (item is already waiting):
853 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblionumber | uri %]">[% recall.biblio.title | html %]</a>
855 <div class="recall-found-barcode">
856 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblionumber | uri %]&itemnumber=[% recall.itemnumber | uri %]">[% recall.item.barcode | html %]</a>)
862 <div class="modal-body">
863 [% IF ( recall.recallnotes ) %]
865 <p>[% recall.recallnotes | html %]</p>
868 <h5>Recall placed by:</h5>
871 [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %]
872 <span class="patron-category"> - [% recall.patron.category.description | html %]</span>
875 [% INCLUDE display_holdpatron_address patron=recall.patron %]
877 [% IF ( recall.patron.phone ) %]
878 <li>[% recall.patron.phone | html %]</li>
881 [% IF ( recall.patron.email ) %]
883 [% IF ( transfertodo ) %]
884 [% recall.patron.email | html %]
886 <a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a>
891 [% UNLESS ( transfertodo) %]
892 [% INCLUDE display_bormessagepref %]
895 [% IF ( recall.patron.is_debarred ) %]
896 <li class="error">Patron is RESTRICTED</li>
899 [% IF ( recall.patron.gonenoaddress ) %]
900 <li class="error">Patron's address is in doubt</li>
903 [% IF ( transfertodo ) %]
904 <h4><strong>Transfer to:</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
906 <h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.branchcode ) | html %]</h4>
909 <input type="hidden" name="recall_id" value="[% recall.recall_id | html %]">
910 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
911 <input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
912 <input type="hidden" name="recall_slip" value="0">
916 <div class="modal-footer">
917 <button type="submit" class="btn btn-default approve">
918 <i class="fa fa-check"></i> Confirm recall
920 <button type="button" class="btn btn-default print-recall">
921 <i class="fa fa-print"></i> Print slip and confirm
924 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
925 <i class="fa fa-times"></i> Ignore
927 </div> <!-- /.modal-footer -->
928 </form> <!-- /.confirm -->
929 </div> <!-- /.modal-content -->
930 </div> <!-- /.modal-dialog -->
931 </div> <!-- /#recalledwaiting-->
932 [% END #/IF recalledwaiting %]
933 [% END # /IF found %]
935 <div class="static_checkin_messages">
936 [% INCLUDE all_checkin_messages %]
939 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
940 <fieldset id="circ_returns_checkin">
941 <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>
944 <div class="col-sm-6">
945 <div class="hint">Enter item barcode:</div>
946 <div class="form-control-group">
947 [% IF ( exemptfine ) %]
948 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
949 [% ELSIF ( dropboxmode ) %]
950 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
952 <input name="barcode" id="barcode" size="14" class="barcode focus" />
954 <button type="submit" class="btn btn-default">Check in</button>
955 [% FOREACH inputloo IN inputloop %]
956 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
957 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
958 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
961 <div id="show-circ-settings">
962 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
965 <div class="col-sm-6">
966 [% IF ( exemptfine ) %]
967 <div id="exemptfines" class="checkin-active-setting">
969 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
971 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
974 [% IF ( forgivemanualholdsexpire ) %]
975 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
977 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
979 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
982 [% IF ( dropboxmode ) %]
983 <div id="dropboxmode" class="checkin-active-setting">
985 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
987 <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>
989 [% IF ( return_date_override_remember ) %]
990 <div id="return_date_remember" class="checkin-active-setting">
992 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
994 <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>
999 <div class="circ-settings">
1000 [% IF Koha.Preference('SpecifyReturnDate') %]
1001 <div class="date-select" id="return_date_override_fields">
1002 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
1004 <input type="text" size="20" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" class="flatpickr" data-flatpickr-pastinclusive="true" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" />
1006 <div class="circ-setting">
1007 [% IF ( return_date_override_remember ) %]
1008 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
1010 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
1012 <label for="return_date_override_remember"> Remember return date for next check in</label>
1014 </div> <!-- /.date-select -->
1017 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
1018 <div id="forgive-overdue-fines" class="circ-setting">
1019 [% IF ( exemptfine ) %]
1020 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
1022 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
1024 <label for="exemptcheck">Forgive overdue charges</label>
1026 [% END %] <!-- overduecharges -->
1028 <div id="book-drop-mode" class="circ-setting">
1029 [% IF ( dropboxmode ) %]
1030 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
1032 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
1034 <label for="dropboxcheck">Book drop mode</label>
1037 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
1038 <div class="forgive-manual-hold-fees circ-setting">
1039 [% IF ( forgivemanualholdsexpire ) %]
1040 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
1042 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
1044 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
1046 [% END %] <!-- overduecharges -->
1048 </div> <!-- /.circ-settings -->
1049 </fieldset> <!-- /#circ_returns_checkin -->
1050 </form> <!-- /#checkin-form -->
1053 <h2>Checked-in items</h2>
1054 <table id="checkedintable">
1057 <th class="ci-duedate">Due date</th>
1058 <th class="ci-title">Title</th>
1059 <th class="ci-author">Author</th>
1060 <th class="ci-barcode">Barcode</th>
1061 <th class="ci-homelibrary">Home library</th>
1062 <th class="ci-transferlibrary">Transfer to</th>
1063 <th class="ci-shelvinglocation">Shelving location</th>
1064 <th class="ci-callnumber">Call number</th>
1065 <th class="ci-dateaccessioned">Date acquired</th>
1066 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
1067 <th class="ci-itemtype">Item type</th>
1068 <th class="ci-collection">Collection</th>
1069 <th class="ci-patron">Patron</th>
1070 <th class="ci-note">Note</th>
1074 [% FOREACH riloo IN riloop %]
1076 <td class="ci-duedate">
1077 [% IF ( riloo.duedate ) %]
1078 [% IF ( riloo.return_overdue ) %]
1079 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
1081 [% riloo.duedate | html %]
1084 <span>Not checked out</span>
1086 [% IF ( riloo.damaged ) %]
1087 <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => riloo.damaged ) | html %]</span>
1090 <td class="ci-title">
1091 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
1092 [% riloo.itemtitle | html %]
1093 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
1094 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
1095 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
1097 [% IF ( riloo.enumchron ) %]
1099 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
1102 <td class="ci-author">[% riloo.itemauthor | html %]</td>
1103 <td class="ci-barcode">
1104 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
1106 <td class="ci-homelibrary">
1107 [% Branches.GetName( riloo.homebranch ) | html %]
1109 <td class="ci-transferlibrary">
1110 [% Branches.GetName( riloo.transferbranch ) | html %]
1112 <td class="ci-shelvinglocation">
1113 <span class="shelvingloc">[% riloo.location | html %]</span>
1115 <td class="ci-callnumber">
1116 [% riloo.itemcallnumber | html %]
1118 <td class="ci-dateaccessioned">
1119 [% riloo.dateaccessioned | $KohaDates %]
1121 <td class="ci-recordlevelitemtype">
1122 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
1124 <td class="ci-itemtype">
1125 [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
1127 <td class="ci-collection">
1128 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
1130 <td class="ci-patron">
1131 [% IF ( riloo.duedate ) %]
1132 [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
1133 [% IF riloo.borissuescount %]
1134 <span class="results_summary nowrap">
1135 <span class="label">Checkouts:</span>
1136 <span class="number_box">
1137 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
1141 <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>
1146 <td class="ci-note">
1147 [% IF ( riloo.patron.borrowernotes ) %]
1148 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
1150 [% IF ( riloo.itemnote ) %]
1151 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
1153 [% IF ( riloo.itemnotes_nonpublic ) %]
1154 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
1158 [% END # /FOREACH riloo %]
1159 </table> <!-- /#checkedintable -->
1160 [% END # /IF riloop %]
1162 [% IF Koha.Preference('CircSidebar') %]
1163 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1164 <div class="col-sm-2 col-sm-pull-10">
1166 [% INCLUDE 'circ-nav.inc' %]
1168 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1169 </div> <!-- /.row -->
1171 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
1172 </div> <!-- /.row -->
1176 </div> <!-- /.col-sm-12 -->
1177 </div> <!-- /.row -->
1179 [% IF ( ReturnClaims ) %]
1180 [% INCLUDE 'modals/resolve_return_claim.inc' %]
1183 [% MACRO jsinclude BLOCK %]
1184 [% INCLUDE 'datatables.inc' %]
1185 [% INCLUDE 'columns_settings.inc' %]
1186 [% INCLUDE 'calendar.inc' %]
1187 [% Asset.js("js/pages/circulation.js") | $raw %]
1188 [% IF ( ReturnClaims ) %]
1190 /* Set a variable needed by resolve_claim_modal.js */
1191 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1193 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1197 function Dopop(link) {
1198 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1199 $("#barcode").focus();
1201 $(document).ready(function () {
1202 $("#checkin-form").preventDoubleFormSubmit();
1203 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
1204 $("#barcode").prop("disabled", true);
1205 $(".show_checkin_dialog").show();
1206 }).on('hidden.bs.modal', function() {
1207 $("#barcode").prop("disabled", false).focus();
1209 $(".modal.noblock").on('show.bs.modal', function() {
1210 /* If the modal doesn't block further action, the backdrop should be hidden.
1211 In order for this to happen smoothly we add a class to the body tag which
1212 targeted in the CSS */
1213 $("body").addClass("nobackdrop");
1215 .on('shown.bs.modal', function() {
1216 $("#barcode").prop("disabled", false).focus();
1217 }).on('hidden.bs.modal', function() {
1218 $("#barcode").prop("disabled", false).focus();
1221 $("body").on("click", ".show_checkin_dialog button", function(e){
1223 $(".modal").modal("show");
1226 $(".print-slip").on('click', function(e) {
1228 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1231 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1234 var columns_settings = [% TablesSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
1236 [% IF recall_slip %]
1237 Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]');
1240 var returns_table = KohaTable("checkedintable", {
1245 "dom": 'B<"clearfix">t',
1246 }, columns_settings);
1248 $("#exemptcheck").change(function () {
1249 if (this.checked == true) {
1250 $("#barcode").addClass("input-warning");
1251 $("#exemptfines").show();
1253 $("#barcode").removeClass("input-warning");
1254 $("#exemptfines").hide();
1256 $("#barcode").focus();
1259 $("#dropboxcheck").change(function () {
1260 if (this.checked == true) {
1261 $("#barcode").addClass("input-warning");
1262 $("#dropboxmode").show();
1264 $("#return_date_override_fields :input").prop('disabled', true);
1266 $("#barcode").removeClass("input-warning");
1267 $("#dropboxmode").hide();
1269 $("#return_date_override_fields :input").prop('disabled', false);
1271 $("#barcode").focus();
1274 $("#forgivemanualholdsexpire").change(function () {
1275 if (this.checked == true) {
1276 $("#barcode").addClass("input-warning");
1277 $("#forgivemanualholdsexpire-alert").show();
1279 $("#barcode").removeClass("input-warning");
1280 $("#forgivemanualholdsexpire-alert").hide();
1282 $("#barcode").focus();
1285 [% IF(overduecharges) %]
1286 $("#barcode").focus(function () {
1287 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1288 $("#barcode").addClass("input-warning");
1290 $("#barcode").removeClass("input-warning");
1293 $("#barcode").blur(function () {
1294 $("#barcode").removeClass("input-warning");
1298 $('.openWin').on("click",function(e){
1299 Dopop( $(this).data("url") );
1302 $('.submit').on("click",function(e){
1306 $('.cancel').on("click",function(e){
1307 var docancel = $("<input>").attr("type", "hidden").attr("name", "canceltransfer").val(1);
1308 $('#wrongtransferform').append(docancel);
1312 $('.print').on("click",function(e){
1313 this.form.print_slip.value = 1;
1314 let barcode = document.getElementById('confirm-hold-barcode');
1315 if ( barcode ) barcode.remove();
1316 if ($(this).attr('name') == "dotransfer") {
1317 var dotransfer = $("<input>").attr("type", "hidden").attr("name", "dotransfer").val("Yes");
1318 $('#mainform').append(dotransfer);
1323 $('.print-recall').on("click",function(e){
1324 this.form.recall_slip.value = 1;
1328 $('.approve').on("click",function(e){
1329 let barcode = document.getElementById('confirm-hold-barcode');
1330 if ( barcode ) barcode.remove();
1333 $('.cancel-hold').on("click",function(e){
1334 this.form.cancel_reserve.value = 1;
1338 $('.action').on("click",function(e){
1339 this.checked = false;
1340 this.form.return_date_override.value = '';
1341 this.form.return_date_override_remember.checked = false;
1342 this.form.barcode.focus();
1343 $("#return_date_remember").hide();
1347 $("#return_date_override_remember").on("change", function(){
1348 if( $(this).prop("checked" ) ){
1349 if( $("#return_date_override").val() == "" ){
1350 $("#saved_return_date").text( _("No date selected") );
1352 $("#saved_return_date").text( $("#return_date_override").val() );
1354 $("#return_date_remember").show();
1356 $("#return_date_remember").hide();
1359 $('[data-toggle="tooltip"]').tooltip();
1361 $(".printcheckinslip").on("click", function(e){
1363 var borrowernumber = $(this).data('borrowernumber');
1364 window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow");
1371 [% INCLUDE 'intranet-bottom.inc' %]