7 [% USE AuthorisedValues %]
8 [% USE TablesSettings %]
9 [% PROCESS 'i18n.inc' %]
10 [% PROCESS 'member-display-address-style.inc' %]
11 [% SET footerjs = 1 %]
12 [% BLOCK display_bormessagepref %]
13 [% IF ( bormessagepref ) %]
14 <li class="notification_method"><span>Patron notification:</span>
15 [% FOREACH mtt IN bormessagepref.keys %]
16 [%~ IF ( mtt == 'email' ) %] <span>Email</span>[% END ~%]
17 [%~ IF ( mtt == 'phone' ) %] <span>Phone</span>[% END ~%]
18 [%~ IF ( mtt == 'sms' ) %] <span>SMS</span>[% END ~%]
19 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
23 <li class="notification_method none">Patron is not notified.</li>
27 [% BLOCK display_holdpatron_address %]
28 [% PROCESS 'display-address-style' %]
31 [% INCLUDE 'doc-head-open.inc' %]
32 <title>Check in [% title | html %] › Circulation › Koha</title>
33 [% INCLUDE 'doc-head-close.inc' %]
36 <body id="circ_returns" class="circ">
37 <span class="audio-alert-success"></span>
39 [% WRAPPER 'header.inc' %]
40 [% INCLUDE 'checkin-search.inc' %]
43 [% WRAPPER 'sub-header.inc' %]
44 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
47 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
50 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
53 <a href="#" aria-current="page">
61 <div class="main container-fluid">
63 <div class="col-sm-12">
67 [% IF Koha.Preference('CircSidebar') %]
68 <div class="col-sm-10 col-sm-push-2">
70 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
73 [% BLOCK all_checkin_messages %]
74 [% IF hold_auto_filled %]
75 <div class="dialog message hold-auto-filled">
76 [% IF ( reservenotes ) %]
77 <h4>Notes: [% reservenotes | html %]</h4>
79 <h3>Hold filled for:</h3>
82 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 %]
83 <span class="patron-category"> - [% patron.category.description | html %]</span>
86 [% INCLUDE display_holdpatron_address %]
88 [% IF ( patron.phone ) %]
89 <li>[% patron.phone | html %]</li>
92 [% IF ( patron.email ) %]
94 [% IF ( transfertodo ) %]
95 [% patron.email | html %]
97 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
102 [% UNLESS ( transfertodo) %]
103 [% INCLUDE display_bormessagepref %]
106 [% IF ( patron.is_debarred ) %]
107 <li class="error">Patron is RESTRICTED</li>
110 [% IF ( patron.gonenoaddress ) %]
111 <li class="error">Patron's address is in doubt</li>
115 [% IF ( transfertodo ) %]
116 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
118 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
121 <a href="#" class="btn btn-default print print-slip">
122 <i class="fa fa-print"></i> Print
124 </div> <!-- /.hold-auto-filled -->
125 [% END # /IF hold_auto_filled %]
128 <div id="transfer-trigger" class="dialog message">
129 <h3>Reason for transfer</h3>
131 [%- SWITCH trigger -%]
132 [%- CASE 'Manual' -%]<span>Manual</span>
133 [%- CASE 'StockrotationAdvance' -%]<span>Stock rotation advance</span>
134 [%- CASE 'StockrotationRepatriation' -%]<span>Stock rotation repatriation</span>
135 [%- CASE 'ReturnToHome' -%]<span>Return to home library</span>
136 [%- CASE 'ReturnToHolding' -%]<span>Return to holding library</span>
137 [%- CASE 'RotatingCollection' -%]<span>Rotating collection</span>
138 [%- CASE 'Reserve' -%]<span>Hold</span>
139 [%- CASE 'LostReserve' -%]<span>Lost hold</span>
140 [%- CASE 'CancelReserve' -%]<span>Cancelled hold</span>
141 [%- CASE 'TransferCancellation' -%]<span>Transfer was cancelled whilst in transit</span>
147 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
148 <div class="dialog alert">
149 <strong>Error:</strong>
150 This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.
152 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
153 <div class="dialog alert">
154 <strong>Error:</strong>
155 The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.
159 [% IF additional_materials && !needs_confirm && !multiple_confirmed %]
160 <div id="materials" class="dialog message">
161 Note about the accompanying materials: [% additional_materials | html %]
165 [% IF ( collectionItemNeedsTransferred ) %]
166 <div id="rotating-collection" class="dialog message">
167 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
168 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a></p>
169 <p>This item is part of a rotating collection.</p>
170 <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>
174 <!-- Patron has added an issue note -->
175 [% IF ( issue.note) %]
176 <div class="dialog message">
178 <p>[% issue.notedate | $KohaDates %]</p>
179 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
180 <p>[% issue.note | html %]</p>
184 <!-- Patron has fines -->
186 <div class="dialog alert">
187 <h3>Patron has outstanding fines of [% fines | html %].</h3>
188 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
192 <!-- Item has return claim(s) -->
193 [% IF ( ReturnClaims ) %]
194 <div class="dialog alert return-claim">
195 <h3>This item has been claimed as returned by:</h3>
197 [% FOREACH rc IN ReturnClaims %]
199 [% 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>
206 <!-- Patron has waiting holds -->
207 [% IF ( waiting_holds ) %]
208 <div id="awaiting-pickup" class="dialog message">
209 <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>
210 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
214 <!-- Patron is restricted and checkin was backdated -->
215 [% IF return_date_was_overriden && issue.patron.is_debarred %]
216 <div id="restricted_backdated" class="dialog message">
218 [% INCLUDE 'patron-title.inc' patron=issue.patron hide_patron_infos_if_needed=1 invert_name=1 %]
219 is restricted. Please verify this patron should still be restricted.
224 <!-- Bundle has items missing -->
225 [% IF missing_items %]
226 <div id="bundle_missing_items" class="dialog alert">
227 <h3>Bundle had missing items</h3>
228 <p>Bundle contents list updated</p>
230 <a class="btn btn-default btn-xs" role="button" data-toggle="modal" href="#bundleContentsModal"><i class="fa fa-eye" aria-hidden="true"></i> View updated contents list</a>
231 <a class="btn btn-default btn-xs" role="button" data-toggle="modal" href="#bundleMissingModal"><i class="fa fa-eye" aria-hidden="true"></i> View list of missing items</a>
236 <!-- Bundle contained unexpected items -->
237 [% IF unexpected_items %]
238 <div id="bundle_unexpected_items" class="dialog alert">
239 <h3>Bundle had unexpected items</h3>
240 <p>Please place the following items to one side</p>
242 [% FOREACH unexpected_item IN unexpected_items %]
243 <li>[% INCLUDE 'biblio-title.inc' biblio=unexpected_item.biblio %] - [% unexpected_item.barcode | html %]</li>
249 <!-- Item checked in outside of bundle -->
251 <div id="bundle_item_outside" class="dialog alert audio-alert-warning">
252 <h3>Item belongs in bundle</h3>
253 <p>This item belongs to a bundle: [% INCLUDE 'biblio-title.inc' biblio=InBundle.biblio %] - [% InBundle.barcode | html %]</p>
254 <p><button class="btn btn-default btn-xs bundle_remove" role="button" data-itemnumber="[% itemnumber | uri %]" data-hostnumber="[% InBundle.itemnumber | uri %]"><i class="fa fa-minus"></i> Remove from bundle</button></p>
258 [% IF ( errmsgloop ) %]
259 <div class="dialog alert audio-alert-warning">
260 <h3>Check in message</h3>
261 [% IF itembiblionumber %]
262 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a></p>
264 [% FOREACH errmsgloo IN errmsgloop %]
265 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
266 <p class="problem ret_nflupdate">
267 Not for loan status updated.
269 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
270 <span class="ret_updatedfrom">
271 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.from ) | html %].
277 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
278 <span class="ret_updatedto">
279 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.to ) | html %].
286 [% IF ( errmsgloo.ItemLocationUpdated ) %]
287 <p class="problem ret_location_update">
288 Item shelving location updated.
289 <br /><span>Old value:</span>
290 [% IF errmsgloo.ItemLocationUpdated.from %]
291 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.from ) %]
292 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
294 [% ELSIF av_description == '' %]
295 [% errmsgloo.ItemLocationUpdated.from | html %] (<span>No description available</span>)
297 [% av_description | html %]
303 [% IF errmsgloo.ItemLocationUpdated.to %]
304 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.to ) %]
305 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
307 [% ELSIF av_description == '' %]
308 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
310 [% av_description | html %]
317 [% IF ( errmsgloo.badbarcode ) %]
318 <p class="problem ret_badbarcode">No item with barcode: [% errmsgloo.msg | html %]</p>
320 [% IF ( errmsgloo.ispermanent ) %]
321 <p class="problem ret_ispermenant">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
323 [% IF ( errmsgloo.notissued ) %]
324 <p class="problem ret_notissued">Not checked out.</p>
326 [% IF ( errmsgloo.localuse) %]
327 <p class="problem ret_localuse">Local use recorded</p>
329 [% IF ( errmsgloo.transferred ) %]
330 <p class="problem ret_transferred">Item received from [% Branches.GetName( errmsgloo.transferred ) | html %]</p>
332 [% IF ( errmsgloo.waslost ) %]
333 [% IF Koha.Preference('BlockReturnOfLostItems') %]
334 <p class="problem ret_blocked">Item is lost, cannot be checked in.</p>
336 <p class="problem ret_checkedin">Item was lost, now found.</p>
338 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
339 <p class="problem ret_refund">A refund has been applied to the borrowing patron's account.</p>
340 [% ELSIF LostItemFeeCharged and not Koha.Preference('BlockReturnOfLostItems') %]
341 <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>
342 [% ELSIF LostItemFeeRestored and not Koha.Preference('BlockReturnOfLostItems') %]
343 <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>
344 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
345 <h5>Cannot check in</h5>
346 <p><strong>NOT CHECKED IN</strong></p>
348 <p class="problem ret_feeremains">Any lost item fees for this item will remain on the patron's account.</p>
351 [% IF ( errmsgloo.withdrawn ) %]
352 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
353 <h5>Cannot check in</h5>
354 <p><strong>NOT CHECKED IN</strong></p>
356 <p class="problem ret_withdrawn">
357 <span>Item has been withdrawn</span>
358 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
359 [% IF (item_withdrawn_lib) %]<span class="ci-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
362 [% IF ( errmsgloo.debarred ) %]
363 <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>
365 [% IF ( errmsgloo.prevdebarred ) %]
366 <p class="problem ret_prevdebarred"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
368 [% IF ( errmsgloo.foreverdebarred ) %]
369 <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
371 [% IF errmsgloo.data_corrupted %]
372 <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>
374 [% END # /FOREACH errmsgloo %]
375 </div> <!-- /.dialog.dialog-alert -->
376 [% END #/IF errmsgloop %]
378 [% IF ( checkinmsg ) %]
379 [% IF ( checkinmsgtype == 'alert' ) %]
380 <div class="dialog alert">
382 <div class="dialog message">
384 <p class="ret_checkinmsg">[% checkinmsg | html_line_break %]</p>
386 [% END # /IF checkinmsg %]
388 [% IF bundle_items && !missing_items %]
389 <div class="dialog message">
390 <h3>Bundle verified</h3>
391 <p>The bundle content was verified</p>
392 <p><a class="btn btn-default btn-xs" role="button" data-toggle="modal" href="#bundleContentsModal"><i class="fa fa-eye" aria-hidden="true"></i> View contents list</a></p>
395 [% END # /BLOCK all_checkin_messages %]
397 [% IF needs_confirm %]
398 <div id="circ-needsconfirmation-modal" class="modal fade audio-alert-action block">
399 <div class="modal-dialog">
400 <div class="modal-content">
401 <div class="modal-header">
402 <h3>Please confirm checkin</h3>
404 <div class="modal-body">
407 Please confirm that the accompanying materials are present: <strong>[% additional_materials | html %]</strong>
411 <div class="modal-footer">
412 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
413 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
414 <input type="hidden" name="multiple_confirm" value="1" />
415 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
416 [% FOREACH inputloo IN inputloop %]
417 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
418 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
419 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
421 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, checkin (Y)</button>
423 <button type="button" data-dismiss="modal" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't checkin (N)</button>
430 [% IF items_bundle_return_confirmation %]
431 <div id="bundle-needsconfirmation-modal" class="modal fade audio-alert-action block">
432 <div class="modal-dialog modal-wide">
433 <div class="modal-content">
435 <div class="modal-header">
436 <h3>Please confirm bundle contents for [% item.barcode | html %]</h3>
438 <div class="modal-body">
440 <table class="table table-condensed table-bordered" id="items-bundle-contents-table">
447 [% IF !item.onloan %]
453 [% FOREACH bundle_item IN item.bundle_items %]
454 [% IF !item.onloan %]
455 <tr data-barcode="[% bundle_item.barcode | html %]">
456 <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio link = 1 %]</td>
457 <td>[% bundle_item.biblio.author | html %]</td>
458 <td>[% ItemTypes.GetDescription(bundle_item.itype) | html %]</td>
459 <td>[% bundle_item.barcode | html %]</td>
461 [% IF bundle_item.itemlost %]
462 [% itemlost_description = AuthorisedValues.GetDescriptionByKohaField({ kohafield = 'items.itemlost', authorised_value = bundle_item.itemlost }) %]
463 <span class="lost">[% itemlost_description | html %]</span>
469 [% ELSIF !bundle_item.itemlost %]
470 <tr data-barcode="[% bundle_item.barcode | html %]">
471 <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio link = 1 %]</td>
472 <td>[% bundle_item.biblio.author | html %]</td>
473 <td>[% ItemTypes.GetDescription(bundle_item.itype) | html %]</td>
474 <td>[% bundle_item.barcode | html %]</td>
481 <div class="form-group">
482 <label for="verify-items-bundle-contents-barcodes">Barcodes <span id="verify-progress" class="pull-right" style="display: none"><span id="verified">0</span> of <span id="expected"></span> verified</span></label>
483 <textarea autocomplete="off" id="verify-items-bundle-contents-barcodes" name="verify-items-bundle-contents-barcodes" class="form-control"></textarea>
485 <div class="help-block">Scan all barcodes of items found in the items bundle. If any items are missing, they will be marked as lost</div>
487 <div class="help-block">Optionally scan all barcodes of items found in the items bundle to perform an inventory check. If any items are missing, they will be marked as lost</div>
491 <div id="bundle-feedback" class="alert" style="display:none"></div>
494 <div class="modal-footer">
495 <input type="hidden" name="barcode" value="[% item.barcode | html %]">
496 <input type="hidden" name="confirm_items_bundle_return" value="1">
497 [% FOREACH inputloo IN inputloop %]
498 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
499 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
500 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
503 <button type="submit" class="btn btn-default"><i class="fa fa-check"></i> Confirm checkin and mark missing items as lost</button>
505 <button type="submit" class="btn btn-default"><i class="fa fa-check"></i> Confirm inventory check and mark items as lost</button>
507 <button type="button" data-dismiss="modal" class="btn btn-default"><i class="fa fa-close"></i> Cancel</button>
516 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
517 <div class="modal-dialog">
518 <div class="modal-content">
519 <form method="post" action="returns.pl" name="mainform" id="mainform">
520 <div class="modal-header">
525 <div class="modal-body">
527 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
528 [% item.barcode | html %]: [% title | html %]
537 This item must be checked in at following library:
539 [% Branches.GetName( rightbranch ) | html %]
542 [% INCLUDE all_checkin_messages %]
543 </div> <!-- /.modal-body -->
544 <div class="modal-footer">
545 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
547 </form> <!-- /#mainform -->
548 </div> <!-- /.modal-content -->
549 </div> <!-- /.modal-dialog -->
550 </div> <!-- /#wrong-branch-modal -->
551 [% END # /IF wrongbranch %]
553 <!-- case of a mistake in transfer loop -->
554 [% UNLESS ( hold_auto_filled && diffbranch ) %]
555 [% IF WrongTransfer && !transfertodo %]
556 [% IF Koha.Preference('TransfersBlockCirc') %]
557 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
559 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
561 <div class="modal-dialog">
562 <div class="modal-content">
563 <form method="post" action="returns.pl" name="wrongtransferform" id="wrongtransferform">
564 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
565 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
566 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
567 <input type="hidden" name="transit" value="[% NewTransfer | html %]" />
568 [% FOREACH inputloo IN inputloop %]
569 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
570 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
571 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
574 <div class="modal-header">
576 Wrong transfer detected, please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
580 <div class="modal-body">
582 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a>
585 [% INCLUDE all_checkin_messages %]
588 <div class="modal-footer">
590 <button class="btn btn-default approve" type="submit" accesskey="y"><i class="fa fa-check"></i> OK (Y)</button>
592 <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>
593 <!-- CANCEL TRANSFER -->
594 <button type="button" data-dismiss="modal" class="btn btn-default deny cancel" accesskey="x"><i class="fa fa-times"></i> Cancel transfer (X)</button>
595 </div> <!-- /.modal-footer -->
596 </form> <!-- /wrongtransferform -->
597 </div> <!-- /.modal-content -->
598 </div> <!-- /.modal-dialog -->
599 </div> <!-- /#wrong-transfer-modal -->
600 [% END # /IF WrongTransfer && !transfertodo %]
601 [% END # /UNLESS hold_auto_filled && diffbranch %]
605 <div id="hold-found1" class="modal fade audio-alert-action block">
606 <div class="modal-dialog">
607 <div class="modal-content">
608 <form method="post" action="returns.pl" class="confirm">
609 <div class="modal-header">
611 Hold found (item is already waiting):
613 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
614 <div class="hold-found-barcode">
615 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>
620 <div class="modal-body">
621 [% IF ( reservenotes ) %]
622 <h4>Notes: [% reservenotes | html %]</h4>
628 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
629 <span class="patron-category"> - [% patron.category.description | html %]</span>
631 [% INCLUDE display_holdpatron_address %]
632 [% IF ( patron.phone ) %]
633 <li> [% patron.phone | html %]</li>
636 [% IF ( patron.email ) %]
637 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
640 [% IF ( patron.is_debarred ) %]
641 <li class="error">Patron is RESTRICTED</li>
644 [% IF ( patron.gonenoaddress ) %]
645 <li class="error">Patron's address is in doubt</li>
649 [% IF ( transfertodo ) %]
650 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
652 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
655 [% FOREACH inputloo IN inputloop %]
656 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
657 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
658 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
661 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
662 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
663 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
664 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
665 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
666 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
667 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
668 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
670 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
671 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
672 [% INCLUDE all_checkin_messages %]
673 </div> <!-- /.modal-body -->
675 <div class="modal-footer">
676 <input type="hidden" name="cancel_reserve" value="0" />
677 <input id="confirm-hold-barcode" type="hidden" name="barcode" value="[% barcode | html %]" />
679 <button type="submit" class="btn btn-default approve" data-dismiss="modal" accesskey="y">
680 <i class="fa fa-check"></i> Confirm hold (Y)
683 <input type="hidden" name="print_slip" value="0" />
684 <button type="button" class="btn btn-default print" accesskey="P">
685 <i class="fa fa-print"></i> Print slip and confirm (P)
687 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default" accesskey="I">
688 <i class="fa fa-remove"></i> Ignore (I)
691 <button type="button" class="btn btn-default deny cancel-hold" accesskey="X">
692 <i class="fa fa-trash"></i> Cancel hold (X)
694 </div> <!-- /.modal-footer -->
695 </form> <!-- /.confirm -->
696 </div> <!-- /.modal-content -->
697 </div> <!-- /.modal-dialog -->
698 </div> <!-- /#hold-found1 -->
699 [% END # /IF waiting %]
701 [% IF transfer || needstransfer %]
702 [% IF Koha.Preference('TransfersBlockCirc') %]
703 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
705 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
707 <div class="modal-dialog">
708 <div class="modal-content">
709 <form method="post" action="returns.pl" name="mainform" id="mainform">
711 <input type="hidden" name="print_slip" value="0" />
713 <div class="modal-header">
715 Please return this item to [% IF transfer %][% Branches.GetName( transfer ) | html %][% ELSE %][% Branches.GetName( returnbranch ) | html %][% END %]
718 <div class="modal-body">
720 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
721 [% item.barcode | html %]: [% title | html %]
729 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
730 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
731 <input type="hidden" name="barcode" value="0" />
732 <input type="hidden" name="trigger" value="[% trigger | html %]" />
733 [% INCLUDE all_checkin_messages %]
735 <div class="modal-footer">
737 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve" accesskey="y"><i class="fa fa-check"></i> Yes (Y)</button>
738 <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>
739 <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>
741 <button type="button" data-dismiss="modal" class="btn btn-default approve" accesskey="y"><i class="fa fa-check"></i> OK (Y)</button>
742 <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>
744 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
745 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
746 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
747 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
748 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
749 [% FOREACH inputloo IN inputloop %]
750 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
751 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
752 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
754 </div> <!-- /.modal-footer -->
755 </form> <!-- /#mainform -->
756 </div> <!-- /.modal-content -->
757 </div> <!-- /.modal-dialog -->
758 </div> <!-- /#item-transfer-modal -->
759 [% END # /IF transfer || needstransfer %]
761 <!-- case of simple return no issue or transfer but with a hold -->
762 [% IF ( reserved and !recalled and !waitingrecall ) %]
764 <div id="hold-found2" class="modal fade audio-alert-action block">
765 <div class="modal-dialog">
766 <div class="modal-content">
767 <form method="post" action="returns.pl" class="confirm">
769 <input type="hidden" name="print_slip" value="0" />
771 <div class="modal-header">
775 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
776 <div class="hold-found-barcode">
777 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>)
782 <div class="modal-body">
783 [% IF ( reservenotes ) %]
785 <p>[% reservenotes | html %]</p>
791 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
792 <span class="patron-category"> - [% patron.category.description | html %]</span>
795 [% INCLUDE display_holdpatron_address %]
797 [% IF ( patron.phone ) %]
798 <li>[% patron.phone | html %]</li>
801 [% IF ( patron.email ) %]
803 [% IF ( transfertodo ) %]
804 [% patron.email | html %]
806 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
811 [% UNLESS ( transfertodo) %]
812 [% INCLUDE display_bormessagepref %]
815 [% IF ( patron.is_debarred ) %]
816 <li class="error">Patron is RESTRICTED</li>
819 [% IF ( patron.gonenoaddress ) %]
820 <li class="error">Patron's address is in doubt</li>
823 [% IF ( transfertodo ) %]
824 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
826 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
829 [% FOREACH inputloo IN inputloop %]
830 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
831 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
832 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
835 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
836 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
837 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
838 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
839 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
840 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
841 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
842 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
843 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
844 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
845 [% INCLUDE all_checkin_messages %]
848 <div class="modal-footer">
849 [% IF ( transfertodo ) %]
850 <button type="submit" class="btn btn-default approve" accesskey="y">
851 <i class="fa fa-check"></i> Confirm hold and transfer (Y)
853 <button type="button" class="btn btn-default print" accesskey="p">
854 <i class="fa fa-print"></i> Print slip, transfer, and confirm (P)
857 <button type="submit" class="btn btn-default approve" accesskey="y">
858 <i class="fa fa-check"></i> Confirm hold (Y)
860 <button type="button" class="btn btn-default print" accesskey="p">
861 <i class="fa fa-print"></i> Print slip and confirm (P)
865 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny" accesskey="i">
866 <i class="fa fa-remove"></i> Ignore (I)
868 </div> <!-- /.modal-footer -->
869 </form> <!-- /.confirm -->
870 </div> <!-- /.modal-content -->
871 </div> <!-- /.modal-dialog -->
872 </div> <!-- /#hold-found2 -->
873 [% END #/IF reserved %]
875 [% IF ( recalled ) %]
877 <div id="recalled" class="modal fade audio-alert-action block">
878 <div class="modal-dialog">
879 <div class="modal-content">
880 <form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm">
882 <div class="modal-header">
886 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblio_id | uri %]">[% recall.biblio.title | html %]</a>
888 <div class="recall-found-barcode">
889 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblio_id | uri %]&itemnumber=[% recall.item_id | uri %]">[% recall.item.barcode | html %]</a>)
895 <div class="modal-body">
896 [% IF ( recall.notes ) %]
898 <p>[% recall.notes | html %]</p>
901 <h5>Recall placed by:</h5>
904 [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %]
905 <span class="patron-category"> - [% recall.patron.category.description | html %]</span>
908 [% INCLUDE display_holdpatron_address patron=recall.patron %]
910 [% IF ( recall.patron.phone ) %]
911 <li>[% recall.patron.phone | html %]</li>
914 [% IF ( recall.patron.email ) %]
916 [% IF ( transfertodo ) %]
917 [% recall.patron.email | html %]
919 <a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a>
924 [% UNLESS ( transfertodo) %]
925 [% INCLUDE display_bormessagepref %]
928 [% IF ( recall.patron.is_debarred ) %]
929 <li class="error">Patron is RESTRICTED</li>
932 [% IF ( recall.patron.gonenoaddress ) %]
933 <li class="error">Patron's address is in doubt</li>
936 [% IF ( transfertodo ) %]
937 <h4><strong>Transfer to:</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
939 <h4><strong>Recall at</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
942 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
943 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
944 <input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
945 <input type="hidden" name="recall_slip" value="0">
949 <div class="modal-footer">
950 [% IF ( transfertodo ) %]
951 <button type="submit" class="btn btn-default approve" accesskey="Y">
952 <i class="fa fa-check"></i> Confirm recall and transfer (Y)
954 <button type="button" class="btn btn-default print-recall" accesskey="P">
955 <i class="fa fa-print"></i> Print slip, transfer, and confirm (P)
958 <button type="submit" class="btn btn-default approve" accesskey="Y">
959 <i class="fa fa-check"></i> Confirm recall (Y)
961 <button type="button" class="btn btn-default print-recall" accesskey="P">
962 <i class="fa fa-print"></i> Print slip and confirm (P)
966 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default">
967 <i class="fa fa-remove"></i> Ignore
969 </div> <!-- /.modal-footer -->
970 </form> <!-- /.confirm -->
971 </div> <!-- /.modal-content -->
972 </div> <!-- /.modal-dialog -->
973 </div> <!-- /#recalled -->
974 [% END #/IF recalled %]
976 [% IF ( waitingrecall ) %]
978 <div id="recalledwaiting" class="modal fade audio-alert-action block">
979 <div class="modal-dialog">
980 <div class="modal-content">
981 <form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm">
983 <div class="modal-header">
985 Recall found (item is already waiting):
987 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblio_id | uri %]">[% recall.biblio.title | html %]</a>
989 <div class="recall-found-barcode">
990 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblio_id | uri %]&itemnumber=[% recall.item_id | uri %]">[% recall.item.barcode | html %]</a>)
996 <div class="modal-body">
997 [% IF ( recall.notes ) %]
999 <p>[% recall.notes | html %]</p>
1002 <h5>Recall placed by:</h5>
1005 [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %]
1006 <span class="patron-category"> - [% recall.patron.category.description | html %]</span>
1009 [% INCLUDE display_holdpatron_address patron=recall.patron %]
1011 [% IF ( recall.patron.phone ) %]
1012 <li>[% recall.patron.phone | html %]</li>
1015 [% IF ( recall.patron.email ) %]
1017 [% IF ( transfertodo ) %]
1018 [% recall.patron.email | html %]
1020 <a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a>
1025 [% UNLESS ( transfertodo) %]
1026 [% INCLUDE display_bormessagepref %]
1029 [% IF ( recall.patron.is_debarred ) %]
1030 <li class="error">Patron is RESTRICTED</li>
1033 [% IF ( recall.patron.gonenoaddress ) %]
1034 <li class="error">Patron's address is in doubt</li>
1037 [% IF ( transfertodo ) %]
1038 <h4><strong>Transfer to:</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
1040 <h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
1043 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
1044 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
1045 <input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
1046 <input type="hidden" name="recall_slip" value="0">
1050 <div class="modal-footer">
1051 <button type="submit" class="btn btn-default approve" accesskey="Y">
1052 <i class="fa fa-check"></i> Confirm recall (Y)
1054 <button type="button" class="btn btn-default print-recall" accesskey="P">
1055 <i class="fa fa-print"></i> Print slip and confirm (P)
1058 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny" accesskey="I">
1059 <i class="fa fa-remove"></i> Ignore (I)
1061 </div> <!-- /.modal-footer -->
1062 </form> <!-- /.confirm -->
1063 </div> <!-- /.modal-content -->
1064 </div> <!-- /.modal-dialog -->
1065 </div> <!-- /#recalledwaiting-->
1066 [% END #/IF recalledwaiting %]
1067 [% END # /IF found %]
1069 <div class="static_checkin_messages">
1070 [% INCLUDE all_checkin_messages %]
1073 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
1074 <fieldset id="circ_returns_checkin">
1075 <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>
1078 <div class="col-sm-6">
1079 <div class="hint">Enter item barcode:</div>
1080 <div class="form-control-group">
1081 [% IF ( exemptfine ) %]
1082 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
1083 [% ELSIF ( dropboxmode ) %]
1084 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
1086 <input name="barcode" id="barcode" size="14" class="barcode focus" />
1088 <button type="submit" class="btn btn-default">Check in</button>
1089 [% FOREACH inputloo IN inputloop %]
1090 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
1091 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
1092 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
1095 <div id="show-circ-settings">
1096 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
1099 <div class="col-sm-6">
1100 [% IF ( exemptfine ) %]
1101 <div id="exemptfines" class="checkin-active-setting">
1103 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
1105 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
1108 [% IF ( forgivemanualholdsexpire ) %]
1109 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
1111 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
1113 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
1116 [% IF ( dropboxmode ) %]
1117 <div id="dropboxmode" class="checkin-active-setting">
1119 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
1121 <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>
1123 [% IF ( return_date_override_remember ) %]
1124 <div id="return_date_remember" class="checkin-active-setting">
1126 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
1128 <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>
1133 <div class="circ-settings">
1134 [% IF Koha.Preference('SpecifyReturnDate') %]
1135 <div class="date-select" id="return_date_override_fields">
1136 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
1138 <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" />
1140 <div class="circ-setting">
1141 [% IF ( return_date_override_remember ) %]
1142 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
1144 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
1146 <label for="return_date_override_remember"> Remember return date for next check in</label>
1148 </div> <!-- /.date-select -->
1151 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
1152 <div id="forgive-overdue-fines" class="circ-setting">
1153 [% IF ( exemptfine ) %]
1154 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
1156 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
1158 <label for="exemptcheck">Forgive overdue charges</label>
1160 [% END %] <!-- overduecharges -->
1162 <div id="book-drop-mode" class="circ-setting">
1163 [% IF ( dropboxmode ) %]
1164 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
1166 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
1168 <label for="dropboxcheck">Book drop mode</label>
1171 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
1172 <div class="forgive-manual-hold-fees circ-setting">
1173 [% IF ( forgivemanualholdsexpire ) %]
1174 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
1176 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
1178 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
1180 [% END %] <!-- overduecharges -->
1182 </div> <!-- /.circ-settings -->
1183 </fieldset> <!-- /#circ_returns_checkin -->
1184 </form> <!-- /#checkin-form -->
1187 <h2>Checked-in items</h2>
1188 <table id="checkedintable">
1191 <th class="ci-duedate">Due date</th>
1192 <th class="ci-title">Title</th>
1193 <th class="ci-author">Author</th>
1194 <th class="ci-barcode">Barcode</th>
1195 <th class="ci-homelibrary">Home library</th>
1196 <th class="ci-transferlibrary">Transfer to</th>
1197 <th class="ci-shelvinglocation">Shelving location</th>
1198 <th class="ci-callnumber">Call number</th>
1199 <th class="ci-dateaccessioned">Date acquired</th>
1200 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
1201 <th class="ci-itemtype">Item type</th>
1202 <th class="ci-collection">Collection</th>
1203 <th class="ci-patron">Patron</th>
1204 <th class="ci-note">Note</th>
1208 [% FOREACH riloo IN riloop %]
1210 <td class="ci-duedate">
1211 [% IF ( riloo.duedate ) %]
1212 [% IF ( riloo.return_overdue ) %]
1213 <span class="overdue">[% riloo.duedate | $KohaDates as_due_date => 1 %] (overdue)</span>
1215 [% riloo.duedate | $KohaDates as_due_date => 1 %]
1218 <span>Not checked out</span>
1220 [% IF ( riloo.damaged ) %]
1221 <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => riloo.damaged ) | html %]</span>
1224 <td class="ci-title">
1225 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
1226 [% riloo.itemtitle | html %]
1227 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
1228 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
1229 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
1231 [% IF ( riloo.enumchron ) %]
1233 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
1236 <td class="ci-author">[% riloo.itemauthor | html %]</td>
1237 <td class="ci-barcode">
1238 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
1240 <td class="ci-homelibrary">
1241 [% Branches.GetName( riloo.homebranch ) | html %]
1243 <td class="ci-transferlibrary">
1244 [% Branches.GetName( riloo.transferbranch ) | html %]
1246 <td class="ci-shelvinglocation">
1247 <span class="shelvingloc">[% riloo.location | html %]</span>
1249 <td class="ci-callnumber">
1250 [% riloo.itemcallnumber | html %]
1252 <td class="ci-dateaccessioned">
1253 [% riloo.dateaccessioned | $KohaDates %]
1255 <td class="ci-recordlevelitemtype">
1256 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
1258 <td class="ci-itemtype">
1259 [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
1261 <td class="ci-collection">
1262 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
1264 <td class="ci-patron">
1265 [% IF ( riloo.duedate ) %]
1266 [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
1267 [% IF riloo.borissuescount %]
1268 <span class="results_summary nowrap">
1269 <span class="label">Checkouts:</span>
1270 <span class="number_box">
1271 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
1275 <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>
1280 <td class="ci-note">
1281 [% IF ( riloo.patron.borrowernotes ) %]
1282 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
1284 [% IF ( riloo.itemnote ) %]
1285 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
1287 [% IF ( riloo.itemnotes_nonpublic ) %]
1288 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
1292 [% END # /FOREACH riloo %]
1293 </table> <!-- /#checkedintable -->
1294 [% END # /IF riloop %]
1296 [% IF Koha.Preference('CircSidebar') %]
1297 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1298 <div class="col-sm-2 col-sm-pull-10">
1300 [% INCLUDE 'circ-nav.inc' %]
1302 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1303 </div> <!-- /.row -->
1305 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
1306 </div> <!-- /.row -->
1310 </div> <!-- /.col-sm-12 -->
1311 </div> <!-- /.row -->
1313 [% IF ( ReturnClaims ) %]
1314 [% INCLUDE 'modals/resolve_return_claim.inc' %]
1317 [% INCLUDE 'modals/bundle_contents.inc' %]
1319 [% IF ( missing_items ) %]
1320 <!-- Bundle missing modal -->
1321 <div class="modal printable" id="bundleMissingModal" tabindex="-1" role="dialog" aria-labelledby="bundleMissingLabel">
1322 <div class="modal-dialog" role="document">
1323 <div class="modal-content">
1324 <div class="modal-header">
1325 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1326 <h4 class="modal-title" id="bundleMissingLabel">Items missing from bundle at checking for [% item.barcode | html %]</h4>
1328 <div class="modal-body">
1329 <table style="width:100%">
1337 [% FOREACH bundle_item IN missing_items %]
1339 <td>[% bundle_item.barcode | html %]</td>
1340 <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio %]</td>
1347 </div> <!-- /.modal-body -->
1348 <div class="modal-footer">
1349 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
1350 <button type="button" class="printModal btn btn-primary"><i class="fa fa-print"></i> Print</button>
1351 </div> <!-- /.modal-footer -->
1352 </div> <!-- /.modal-content -->
1353 </div> <!-- /.modal-dialog -->
1354 </div> <!-- /#bundleMissingModal -->
1357 [% MACRO jsinclude BLOCK %]
1358 [% INCLUDE 'datatables.inc' %]
1359 [% INCLUDE 'columns_settings.inc' %]
1360 [% INCLUDE 'calendar.inc' %]
1361 [% Asset.js("js/pages/circulation.js") | $raw %]
1362 [% IF ( ReturnClaims ) %]
1364 /* Set a variable needed by resolve_claim_modal.js */
1365 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1367 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1371 function Dopop(link) {
1372 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1373 $("#barcode").focus();
1375 $(document).ready(function () {
1376 $("#checkin-form").preventDoubleFormSubmit();
1377 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
1378 $("#barcode").prop("disabled", true);
1379 $(".show_checkin_dialog").show();
1380 }).on('hidden.bs.modal', function() {
1381 $("#barcode").prop("disabled", false).focus();
1383 $(".modal.noblock").on('show.bs.modal', function() {
1384 /* If the modal doesn't block further action, the backdrop should be hidden.
1385 In order for this to happen smoothly we add a class to the body tag which
1386 targeted in the CSS */
1387 $("body").addClass("nobackdrop");
1389 .on('shown.bs.modal', function() {
1390 $("#barcode").prop("disabled", false).focus();
1391 }).on('hidden.bs.modal', function() {
1392 $("#barcode").prop("disabled", false).focus();
1395 $("body").on("click", ".show_checkin_dialog button", function(e){
1397 $(".modal").modal("show");
1400 $(".print-slip").on('click', function(e) {
1402 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1405 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1408 var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
1410 [% IF recall_slip %]
1411 Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]');
1414 var returns_table = KohaTable("checkedintable", {
1419 "dom": 'B<"clearfix">t',
1422 $("#exemptcheck").change(function () {
1423 if (this.checked == true) {
1424 $("#barcode").addClass("input-warning");
1425 $("#exemptfines").show();
1427 $("#barcode").removeClass("input-warning");
1428 $("#exemptfines").hide();
1430 $("#barcode").focus();
1433 $("#dropboxcheck").change(function () {
1434 if (this.checked == true) {
1435 $("#barcode").addClass("input-warning");
1436 $("#dropboxmode").show();
1438 $("#return_date_override_fields :input").prop('disabled', true);
1440 $("#barcode").removeClass("input-warning");
1441 $("#dropboxmode").hide();
1443 $("#return_date_override_fields :input").prop('disabled', false);
1445 $("#barcode").focus();
1448 $("#forgivemanualholdsexpire").change(function () {
1449 if (this.checked == true) {
1450 $("#barcode").addClass("input-warning");
1451 $("#forgivemanualholdsexpire-alert").show();
1453 $("#barcode").removeClass("input-warning");
1454 $("#forgivemanualholdsexpire-alert").hide();
1456 $("#barcode").focus();
1459 [% IF(overduecharges) %]
1460 $("#barcode").focus(function () {
1461 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1462 $("#barcode").addClass("input-warning");
1464 $("#barcode").removeClass("input-warning");
1467 $("#barcode").blur(function () {
1468 $("#barcode").removeClass("input-warning");
1472 $('.openWin').on("click",function(e){
1473 Dopop( $(this).data("url") );
1476 $('.submit').on("click",function(e){
1480 $('.cancel').on("click",function(e){
1481 var docancel = $("<input>").attr("type", "hidden").attr("name", "canceltransfer").val(1);
1482 $('#wrongtransferform').append(docancel);
1486 $('.print').on("click",function(e){
1487 this.form.print_slip.value = 1;
1488 let barcode = document.getElementById('confirm-hold-barcode');
1489 if ( barcode ) barcode.remove();
1490 if ($(this).attr('name') == "dotransfer") {
1491 var dotransfer = $("<input>").attr("type", "hidden").attr("name", "dotransfer").val("Yes");
1492 $('#mainform').append(dotransfer);
1497 $('.print-recall').on("click",function(e){
1498 this.form.recall_slip.value = 1;
1502 $('.approve').on("click",function(e){
1503 let barcode = document.getElementById('confirm-hold-barcode');
1504 if ( barcode ) barcode.remove();
1507 $('.cancel-hold').on("click",function(e){
1508 this.form.cancel_reserve.value = 1;
1512 $('.action').on("click",function(e){
1513 this.checked = false;
1514 this.form.return_date_override.value = '';
1515 this.form.return_date_override_remember.checked = false;
1516 this.form.barcode.focus();
1517 $("#return_date_remember").hide();
1521 $("#return_date_override_remember").on("change", function(){
1522 if( $(this).prop("checked" ) ){
1523 if( $("#return_date_override").val() == "" ){
1524 $("#saved_return_date").text( _("No date selected") );
1526 $("#saved_return_date").text( $("#return_date_override").val() );
1528 $("#return_date_remember").show();
1530 $("#return_date_remember").hide();
1533 $('[data-toggle="tooltip"]').tooltip();
1535 $(".printcheckinslip").on("click", function(e){
1537 var borrowernumber = $(this).data('borrowernumber');
1538 window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow");
1542 $('#verify-items-bundle-contents-barcodes').on('input', function (ev) {
1543 let char = ev.target.value.slice(-1);
1544 if ( char.match(/\n/) ) {
1545 const barcodes = ev.target.value.split('\n').map(function(s) { return s.trim().toUpperCase() });
1546 const expected = [];
1548 $('#items-bundle-contents-table tbody > tr').each(function () {
1549 const barcode = this.getAttribute('data-barcode').toUpperCase();
1550 expected.push(barcode);
1551 if (barcodes.includes(barcode)) {
1552 this.classList.add('ok');
1555 this.classList.remove('ok');
1558 const last = barcodes[barcodes.length -2];
1559 const feedback = $('#bundle-feedback');
1561 if ( !expected.includes(last) ) {
1562 feedback.fadeOut(100, function(){
1563 string = _("Unexpected: ") +last;
1564 feedback.addClass('alert-danger').removeClass('alert-success').html(string).fadeIn(100);
1567 feedback.fadeOut(100, function(){
1568 string = _("Verified: ")+last;
1569 feedback.addClass('alert-success').removeClass('alert-danger').html(string).fadeIn(100);
1572 $('#verify-progress').show();
1573 $('#verified').text(found);
1574 $('#expected').text(expected.length);
1578 $('.bundle_remove').on('click', function() {
1579 var component_itemnumber = $(this).data('itemnumber');
1580 var host_itemnumber = $(this).data('hostnumber');
1581 var alert = $(this).closest('div');
1582 var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/item/" + component_itemnumber;
1585 url: unlink_item_url,
1586 success: function(){
1592 $('#items-bundle-contents-table').dataTable($.extend(true, {}, dataTablesDefaults, {
1596 "order": [[ 1, 'asc' ], [ 0, 'asc' ]]
1600 $('.modal.printable').on('shown.bs.modal', function() {
1601 $('.modal-dialog', this).addClass('focused');
1602 $('body').addClass('modalprinter');
1604 if ($(this).hasClass('autoprint')) {
1607 }).on('hidden.bs.modal', function() {
1608 $('.modal-dialog', this).removeClass('focused');
1609 $('body').removeClass('modalprinter');
1612 $('.printModal').click(function() {
1620 [% INCLUDE 'intranet-bottom.inc' %]