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">Home</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 [% IF errmsgloo.NotForLoanStatusUpdated.to == 'ONLYMESSAGE' %]
268 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %]
270 Not for loan status updated.
272 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
273 <span class="ret_updatedfrom">
274 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.from ) | html %].
280 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
281 <span class="ret_updatedto">
282 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => errmsgloo.NotForLoanStatusUpdated.to ) | html %].
290 [% IF ( errmsgloo.ItemLocationUpdated ) %]
291 <p class="problem ret_location_update">
292 Item shelving location updated.
293 <br /><span>Old value:</span>
294 [% IF errmsgloo.ItemLocationUpdated.from %]
295 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.from ) %]
296 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
298 [% ELSIF av_description == '' %]
299 [% errmsgloo.ItemLocationUpdated.from | html %] (<span>No description available</span>)
301 [% av_description | html %]
307 [% IF errmsgloo.ItemLocationUpdated.to %]
308 [% SET av_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => errmsgloo.ItemLocationUpdated.to ) %]
309 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
311 [% ELSIF av_description == '' %]
312 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
314 [% av_description | html %]
321 [% IF ( errmsgloo.badbarcode ) %]
322 <p class="problem ret_badbarcode">No item with barcode: [% errmsgloo.msg | html %]</p>
324 [% IF ( errmsgloo.ispermanent ) %]
325 <p class="problem ret_ispermenant">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
327 [% IF ( errmsgloo.notissued ) %]
328 <p class="problem ret_notissued">Not checked out.</p>
330 [% IF ( errmsgloo.localuse) %]
331 <p class="problem ret_localuse">Local use recorded</p>
333 [% IF ( errmsgloo.transferred ) %]
334 <p class="problem ret_transferred">Item received from [% Branches.GetName( errmsgloo.transferred ) | html %]</p>
336 [% IF ( errmsgloo.waslost ) %]
337 [% IF Koha.Preference('BlockReturnOfLostItems') %]
338 <p class="problem ret_blocked">Item is lost, cannot be checked in.</p>
340 <p class="problem ret_checkedin">Item was lost, now found.</p>
342 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
343 <p class="problem ret_refund">A refund for the lost item charge has been applied to the borrowing patron's account.</p>
344 [% ELSIF LostItemFeeCharged and not Koha.Preference('BlockReturnOfLostItems') %]
345 <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>
346 [% ELSIF LostItemFeeRestored and not Koha.Preference('BlockReturnOfLostItems') %]
347 <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>
348 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
349 <h5>Cannot check in</h5>
350 <p><strong>NOT CHECKED IN</strong></p>
352 <p class="problem ret_feeremains">Any lost item fees for this item will remain on the patron's account.</p>
354 [% IF ProcessingFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
355 <p class="problem ret_refund">A refund for the lost item processing charge has been applied to the borrowing patron's account.</p>
357 <p class="problem ret_feeremains">Any processing fees for this item will remain on the patron's account.</p>
360 [% IF ( errmsgloo.withdrawn ) %]
361 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
362 <h5>Cannot check in</h5>
363 <p><strong>NOT CHECKED IN</strong></p>
365 <p class="problem ret_withdrawn">
366 <span>Item has been withdrawn</span>
367 [% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %]
368 [% IF (item_withdrawn_lib) %]<span class="ci-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %]
371 [% IF ( errmsgloo.debarred ) %]
372 <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>
374 [% IF ( errmsgloo.prevdebarred ) %]
375 <p class="problem ret_prevdebarred"><strong>Reminder: </strong>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
377 [% IF ( errmsgloo.foreverdebarred ) %]
378 <p class="problem ret_foreverdebarred"><strong>Reminder: </strong>Patron has an indefinite restriction.</p>
380 [% IF errmsgloo.data_corrupted %]
381 <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>
383 [% END # /FOREACH errmsgloo %]
384 </div> <!-- /.dialog.dialog-alert -->
385 [% END #/IF errmsgloop %]
387 [% IF ( checkinmsg ) %]
388 [% IF ( checkinmsgtype == 'alert' ) %]
389 <div class="dialog alert">
391 <div class="dialog message">
393 <p class="ret_checkinmsg">[% checkinmsg | html_line_break %]</p>
395 [% END # /IF checkinmsg %]
397 [% IF bundle_items && !missing_items %]
398 <div class="dialog message">
399 <h3>Bundle verified</h3>
400 <p>The bundle content was verified</p>
401 <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>
404 [% END # /BLOCK all_checkin_messages %]
406 [% IF needs_confirm %]
407 <div id="circ-needsconfirmation-modal" class="modal fade audio-alert-action block">
408 <div class="modal-dialog">
409 <div class="modal-content">
410 <div class="modal-header">
411 <h3>Please confirm checkin</h3>
413 <div class="modal-body">
416 Please confirm that the accompanying materials are present: <strong>[% additional_materials | html %]</strong>
420 <div class="modal-footer">
421 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
422 <input type="hidden" name="barcode" value="[% item.barcode | html %]" />
423 <input type="hidden" name="multiple_confirm" value="1" />
424 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
425 [% FOREACH inputloo IN inputloop %]
426 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
427 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
428 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
430 <button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, checkin (Y)</button>
432 <button type="button" data-dismiss="modal" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't checkin (N)</button>
439 [% IF items_bundle_return_confirmation %]
440 <div id="bundle-needsconfirmation-modal" class="modal fade audio-alert-action block">
441 <div class="modal-dialog modal-wide">
442 <div class="modal-content">
444 <div class="modal-header">
445 <h3>Please confirm bundle contents for [% item.barcode | html %]</h3>
447 <div class="modal-body">
449 <table class="table table-condensed table-bordered" id="items-bundle-contents-table">
456 [% IF !item.onloan %]
462 [% FOREACH bundle_item IN item.bundle_items %]
463 [% IF !item.onloan %]
464 <tr data-barcode="[% bundle_item.barcode | html %]">
465 <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio link = 1 %]</td>
466 <td>[% bundle_item.biblio.author | html %]</td>
467 <td>[% ItemTypes.GetDescription(bundle_item.itype) | html %]</td>
468 <td>[% bundle_item.barcode | html %]</td>
470 [% IF bundle_item.itemlost %]
471 [% itemlost_description = AuthorisedValues.GetDescriptionByKohaField({ kohafield = 'items.itemlost', authorised_value = bundle_item.itemlost }) %]
472 <span class="lost">[% itemlost_description | html %]</span>
478 [% ELSIF !bundle_item.itemlost %]
479 <tr data-barcode="[% bundle_item.barcode | html %]">
480 <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio link = 1 %]</td>
481 <td>[% bundle_item.biblio.author | html %]</td>
482 <td>[% ItemTypes.GetDescription(bundle_item.itype) | html %]</td>
483 <td>[% bundle_item.barcode | html %]</td>
490 <div class="form-group">
491 <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>
492 <textarea autocomplete="off" id="verify-items-bundle-contents-barcodes" name="verify-items-bundle-contents-barcodes" class="form-control"></textarea>
494 <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>
496 <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>
500 <div id="bundle-feedback" class="alert" style="display:none"></div>
503 <div class="modal-footer">
504 <input type="hidden" name="barcode" value="[% item.barcode | html %]">
505 <input type="hidden" name="confirm_items_bundle_return" value="1">
506 [% FOREACH inputloo IN inputloop %]
507 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
508 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
509 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
512 <button type="submit" class="btn btn-default"><i class="fa fa-check"></i> Confirm checkin and mark missing items as lost</button>
514 <button type="submit" class="btn btn-default"><i class="fa fa-check"></i> Confirm inventory check and mark items as lost</button>
516 <button type="button" data-dismiss="modal" class="btn btn-default"><i class="fa fa-close"></i> Cancel</button>
525 <div id="wrong-branch-modal" class="modal fade audio-alert-action block">
526 <div class="modal-dialog">
527 <div class="modal-content">
528 <form method="post" action="returns.pl" name="mainform" id="mainform">
529 <div class="modal-header">
534 <div class="modal-body">
536 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
537 [% item.barcode | html %]: [% title | html %]
546 This item must be checked in at following library:
548 [% Branches.GetName( rightbranch ) | html %]
551 [% INCLUDE all_checkin_messages %]
552 </div> <!-- /.modal-body -->
553 <div class="modal-footer">
554 <button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
556 </form> <!-- /#mainform -->
557 </div> <!-- /.modal-content -->
558 </div> <!-- /.modal-dialog -->
559 </div> <!-- /#wrong-branch-modal -->
560 [% END # /IF wrongbranch %]
562 <!-- case of a mistake in transfer loop -->
563 [% UNLESS ( hold_auto_filled && diffbranch ) %]
564 [% IF WrongTransfer && !transfertodo %]
565 [% IF Koha.Preference('TransfersBlockCirc') %]
566 <div id="wrong-transfer-modal" class="modal fade audio-alert-action block">
568 <div id="wrong-transfer-modal" class="modal fade audio-alert-action noblock">
570 <div class="modal-dialog">
571 <div class="modal-content">
572 <form method="post" action="returns.pl" name="wrongtransferform" id="wrongtransferform">
573 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
574 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
575 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
576 <input type="hidden" name="transit" value="[% NewTransfer | html %]" />
577 [% FOREACH inputloo IN inputloop %]
578 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
579 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
580 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
583 <div class="modal-header">
585 Wrong transfer detected, please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
589 <div class="modal-body">
591 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% item.barcode | html %]: [% title | html %]</a>
594 [% INCLUDE all_checkin_messages %]
597 <div class="modal-footer">
599 <button class="btn btn-default approve" type="submit" accesskey="y"><i class="fa fa-check"></i> OK (Y)</button>
601 <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>
602 <!-- CANCEL TRANSFER -->
603 <button type="button" data-dismiss="modal" class="btn btn-default deny cancel" accesskey="x"><i class="fa fa-times"></i> Cancel transfer (X)</button>
604 </div> <!-- /.modal-footer -->
605 </form> <!-- /wrongtransferform -->
606 </div> <!-- /.modal-content -->
607 </div> <!-- /.modal-dialog -->
608 </div> <!-- /#wrong-transfer-modal -->
609 [% END # /IF WrongTransfer && !transfertodo %]
610 [% END # /UNLESS hold_auto_filled && diffbranch %]
614 <div id="hold-found1" class="modal fade audio-alert-action block">
615 <div class="modal-dialog">
616 <div class="modal-content">
617 <form method="post" action="returns.pl" class="confirm">
618 <div class="modal-header">
620 Hold found (item is already waiting):
622 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
623 <div class="hold-found-barcode">
624 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>
629 <div class="modal-body">
630 [% IF ( reservenotes ) %]
631 <h4>Notes: [% reservenotes | html %]</h4>
637 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
638 <span class="patron-category"> - [% patron.category.description | html %]</span>
640 [% INCLUDE display_holdpatron_address %]
641 [% IF ( patron.phone ) %]
642 <li> [% patron.phone | html %]</li>
645 [% IF ( patron.email ) %]
646 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
649 [% IF ( patron.is_debarred ) %]
650 <li class="error">Patron is RESTRICTED</li>
653 [% IF ( patron.gonenoaddress ) %]
654 <li class="error">Patron's address is in doubt</li>
658 [% IF ( transfertodo ) %]
659 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
661 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
664 [% FOREACH inputloo IN inputloop %]
665 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
666 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
667 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
670 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
671 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
672 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
673 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
674 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
675 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
676 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
677 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
679 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
680 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
681 [% INCLUDE all_checkin_messages %]
682 </div> <!-- /.modal-body -->
684 <div class="modal-footer">
685 <input type="hidden" name="cancel_reserve" value="0" />
686 <input id="confirm-hold-barcode" type="hidden" name="barcode" value="[% barcode | html %]" />
688 <button type="submit" class="btn btn-default approve" data-dismiss="modal" accesskey="y">
689 <i class="fa fa-check"></i> Confirm hold (Y)
692 <input type="hidden" name="print_slip" value="0" />
693 <button type="button" class="btn btn-default print" accesskey="P">
694 <i class="fa fa-print"></i> Print slip and confirm (P)
696 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default" accesskey="I">
697 <i class="fa fa-remove"></i> Ignore (I)
700 <button type="button" class="btn btn-default deny cancel-hold" accesskey="X">
701 <i class="fa fa-trash"></i> Cancel hold (X)
703 </div> <!-- /.modal-footer -->
704 </form> <!-- /.confirm -->
705 </div> <!-- /.modal-content -->
706 </div> <!-- /.modal-dialog -->
707 </div> <!-- /#hold-found1 -->
708 [% END # /IF waiting %]
710 [% IF transfer || needstransfer %]
711 [% IF Koha.Preference('TransfersBlockCirc') %]
712 <div id="item-transfer-modal" class="modal fade audio-alert-action block">
714 <div id="item-transfer-modal" class="modal fade audio-alert-action noblock">
716 <div class="modal-dialog">
717 <div class="modal-content">
718 <form method="post" action="returns.pl" name="mainform" id="mainform">
720 <input type="hidden" name="print_slip" value="0" />
722 <div class="modal-header">
724 Please return this item to [% IF transfer %][% Branches.GetName( transfer ) | html %][% ELSE %][% Branches.GetName( returnbranch ) | html %][% END %]
727 <div class="modal-body">
729 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
730 [% item.barcode | html %]: [% title | html %]
738 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
739 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
740 <input type="hidden" name="barcode" value="0" />
741 <input type="hidden" name="trigger" value="[% trigger | html %]" />
742 [% INCLUDE all_checkin_messages %]
744 <div class="modal-footer">
746 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve" accesskey="y"><i class="fa fa-check"></i> Yes (Y)</button>
747 <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>
748 <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>
750 <button type="button" data-dismiss="modal" class="btn btn-default approve" accesskey="y"><i class="fa fa-check"></i> OK (Y)</button>
751 <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>
753 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
754 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
755 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
756 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
757 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
758 [% FOREACH inputloo IN inputloop %]
759 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
760 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
761 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
763 </div> <!-- /.modal-footer -->
764 </form> <!-- /#mainform -->
765 </div> <!-- /.modal-content -->
766 </div> <!-- /.modal-dialog -->
767 </div> <!-- /#item-transfer-modal -->
768 [% END # /IF transfer || needstransfer %]
770 <!-- case of simple return no issue or transfer but with a hold -->
771 [% IF ( reserved and !recalled and !waitingrecall ) %]
773 <div id="hold-found2" class="modal fade audio-alert-action block">
774 <div class="modal-dialog">
775 <div class="modal-content">
776 <form method="post" action="returns.pl" class="confirm">
778 <input type="hidden" name="print_slip" value="0" />
780 <div class="modal-header">
784 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a>
785 <div class="hold-found-barcode">
786 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% itembiblionumber | uri %]&itemnumber=[% itemnumber | uri %]">[% item.barcode | html %]</a>)
791 <div class="modal-body">
792 [% IF ( reservenotes ) %]
794 <p>[% reservenotes | html %]</p>
800 [% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_reserves" %]
801 <span class="patron-category"> - [% patron.category.description | html %]</span>
804 [% INCLUDE display_holdpatron_address %]
806 [% IF ( patron.phone ) %]
807 <li>[% patron.phone | html %]</li>
810 [% IF ( patron.email ) %]
812 [% IF ( transfertodo ) %]
813 [% patron.email | html %]
815 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
820 [% UNLESS ( transfertodo) %]
821 [% INCLUDE display_bormessagepref %]
824 [% IF ( patron.is_debarred ) %]
825 <li class="error">Patron is RESTRICTED</li>
828 [% IF ( patron.gonenoaddress ) %]
829 <li class="error">Patron's address is in doubt</li>
832 [% IF ( transfertodo ) %]
833 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
835 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
838 [% FOREACH inputloo IN inputloop %]
839 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
840 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
841 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
844 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
845 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
846 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
847 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
848 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
849 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
850 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
851 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
852 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
853 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
854 [% INCLUDE all_checkin_messages %]
857 <div class="modal-footer">
858 [% IF ( transfertodo ) %]
859 <button type="submit" class="btn btn-default approve" accesskey="y">
860 <i class="fa fa-check"></i> Confirm hold and transfer (Y)
862 <button type="button" class="btn btn-default print" accesskey="p">
863 <i class="fa fa-print"></i> Print slip, transfer, and confirm (P)
866 <button type="submit" class="btn btn-default approve" accesskey="y">
867 <i class="fa fa-check"></i> Confirm hold (Y)
869 <button type="button" class="btn btn-default print" accesskey="p">
870 <i class="fa fa-print"></i> Print slip and confirm (P)
874 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny" accesskey="i">
875 <i class="fa fa-remove"></i> Ignore (I)
877 </div> <!-- /.modal-footer -->
878 </form> <!-- /.confirm -->
879 </div> <!-- /.modal-content -->
880 </div> <!-- /.modal-dialog -->
881 </div> <!-- /#hold-found2 -->
882 [% END #/IF reserved %]
884 [% IF ( recalled ) %]
886 <div id="recalled" class="modal fade audio-alert-action block">
887 <div class="modal-dialog">
888 <div class="modal-content">
889 <form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm">
891 <div class="modal-header">
895 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblio_id | uri %]">[% recall.biblio.title | html %]</a>
897 <div class="recall-found-barcode">
898 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblio_id | uri %]&itemnumber=[% recall.item_id | uri %]">[% recall.item.barcode | html %]</a>)
904 <div class="modal-body">
905 [% IF ( recall.notes ) %]
907 <p>[% recall.notes | html %]</p>
910 <h5>Recall placed by:</h5>
913 [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %]
914 <span class="patron-category"> - [% recall.patron.category.description | html %]</span>
917 [% INCLUDE display_holdpatron_address patron=recall.patron %]
919 [% IF ( recall.patron.phone ) %]
920 <li>[% recall.patron.phone | html %]</li>
923 [% IF ( recall.patron.email ) %]
925 [% IF ( transfertodo ) %]
926 [% recall.patron.email | html %]
928 <a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a>
933 [% UNLESS ( transfertodo) %]
934 [% INCLUDE display_bormessagepref %]
937 [% IF ( recall.patron.is_debarred ) %]
938 <li class="error">Patron is RESTRICTED</li>
941 [% IF ( recall.patron.gonenoaddress ) %]
942 <li class="error">Patron's address is in doubt</li>
945 [% IF ( transfertodo ) %]
946 <h4><strong>Transfer to:</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
948 <h4><strong>Recall at</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
951 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
952 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
953 <input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
954 <input type="hidden" name="recall_slip" value="0">
958 <div class="modal-footer">
959 [% IF ( transfertodo ) %]
960 <button type="submit" class="btn btn-default approve" accesskey="Y">
961 <i class="fa fa-check"></i> Confirm recall and transfer (Y)
963 <button type="button" class="btn btn-default print-recall" accesskey="P">
964 <i class="fa fa-print"></i> Print slip, transfer, and confirm (P)
967 <button type="submit" class="btn btn-default approve" accesskey="Y">
968 <i class="fa fa-check"></i> Confirm recall (Y)
970 <button type="button" class="btn btn-default print-recall" accesskey="P">
971 <i class="fa fa-print"></i> Print slip and confirm (P)
975 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default">
976 <i class="fa fa-remove"></i> Ignore
978 </div> <!-- /.modal-footer -->
979 </form> <!-- /.confirm -->
980 </div> <!-- /.modal-content -->
981 </div> <!-- /.modal-dialog -->
982 </div> <!-- /#recalled -->
983 [% END #/IF recalled %]
985 [% IF ( waitingrecall ) %]
987 <div id="recalledwaiting" class="modal fade audio-alert-action block">
988 <div class="modal-dialog">
989 <div class="modal-content">
990 <form method="post" action="/cgi-bin/koha/circ/returns.pl" class="confirm">
992 <div class="modal-header">
994 Recall found (item is already waiting):
996 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% recall.biblio_id | uri %]">[% recall.biblio.title | html %]</a>
998 <div class="recall-found-barcode">
999 (<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% recall.biblio_id | uri %]&itemnumber=[% recall.item_id | uri %]">[% recall.item.barcode | html %]</a>)
1005 <div class="modal-body">
1006 [% IF ( recall.notes ) %]
1008 <p>[% recall.notes | html %]</p>
1011 <h5>Recall placed by:</h5>
1014 [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 invert_name=1 link_to="circulation_recalls" %]
1015 <span class="patron-category"> - [% recall.patron.category.description | html %]</span>
1018 [% INCLUDE display_holdpatron_address patron=recall.patron %]
1020 [% IF ( recall.patron.phone ) %]
1021 <li>[% recall.patron.phone | html %]</li>
1024 [% IF ( recall.patron.email ) %]
1026 [% IF ( transfertodo ) %]
1027 [% recall.patron.email | html %]
1029 <a id="boremail" href="mailto:[% recall.patron.email | html %]">[% recall.patron.email | html %]</a>
1034 [% UNLESS ( transfertodo) %]
1035 [% INCLUDE display_bormessagepref %]
1038 [% IF ( recall.patron.is_debarred ) %]
1039 <li class="error">Patron is RESTRICTED</li>
1042 [% IF ( recall.patron.gonenoaddress ) %]
1043 <li class="error">Patron's address is in doubt</li>
1046 [% IF ( transfertodo ) %]
1047 <h4><strong>Transfer to:</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
1049 <h4><strong>Wait for pickup at</strong> [% Branches.GetName( recall.pickup_library_id ) | html %]</h4>
1052 <input type="hidden" name="recall_id" value="[% recall.id | html %]">
1053 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]">
1054 <input type="hidden" name="returnbranch" value="[% Branches.GetLoggedInBranchcode | html %]">
1055 <input type="hidden" name="recall_slip" value="0">
1059 <div class="modal-footer">
1060 <button type="submit" class="btn btn-default approve" accesskey="Y">
1061 <i class="fa fa-check"></i> Confirm recall (Y)
1063 <button type="button" class="btn btn-default print-recall" accesskey="P">
1064 <i class="fa fa-print"></i> Print slip and confirm (P)
1067 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny" accesskey="I">
1068 <i class="fa fa-remove"></i> Ignore (I)
1070 </div> <!-- /.modal-footer -->
1071 </form> <!-- /.confirm -->
1072 </div> <!-- /.modal-content -->
1073 </div> <!-- /.modal-dialog -->
1074 </div> <!-- /#recalledwaiting-->
1075 [% END #/IF recalledwaiting %]
1076 [% END # /IF found %]
1078 <div class="static_checkin_messages">
1079 [% INCLUDE all_checkin_messages %]
1082 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
1083 <fieldset id="circ_returns_checkin">
1084 <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>
1087 <div class="col-sm-6">
1088 <div class="form-control-group">
1089 [% IF ( exemptfine ) %]
1090 <input name="barcode" id="barcode" size="14" placeholder="Enter item barcode" class="focus input-warning" type="text" />
1091 [% ELSIF ( dropboxmode ) %]
1092 <input name="barcode" id="barcode" size="14" placeholder="Enter item barcode" class="barcode focus input-warning" />
1094 <input name="barcode" id="barcode" size="14" placeholder="Enter item barcode" class="barcode focus" />
1097 <div id="show-circ-settings">
1098 <a href="#" title="Checkin settings"><i class="fa fa-sliders"></i></a>
1101 <button type="submit" class="btn btn-primary">Check in</button>
1102 [% FOREACH inputloo IN inputloop %]
1103 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
1104 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
1105 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
1109 <div class="col-sm-6">
1110 [% IF ( exemptfine ) %]
1111 <div id="exemptfines" class="checkin-active-setting">
1113 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
1115 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
1118 [% IF ( forgivemanualholdsexpire ) %]
1119 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
1121 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
1123 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
1126 [% IF ( dropboxmode ) %]
1127 <div id="dropboxmode" class="checkin-active-setting">
1129 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
1131 <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>
1133 [% IF ( return_date_override_remember ) %]
1134 <div id="return_date_remember" class="checkin-active-setting">
1136 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
1138 <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>
1143 <div class="circ-settings">
1144 [% IF Koha.Preference('SpecifyReturnDate') %]
1145 <div class="date-select" id="return_date_override_fields">
1146 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
1148 <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" />
1150 <div class="circ-setting">
1151 [% IF ( return_date_override_remember ) %]
1152 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
1154 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
1156 <label for="return_date_override_remember"> Remember return date for next check in</label>
1158 </div> <!-- /.date-select -->
1161 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
1162 <div id="forgive-overdue-fines" class="circ-setting">
1163 [% IF ( exemptfine ) %]
1164 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
1166 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
1168 <label for="exemptcheck">Forgive overdue charges</label>
1170 [% END %] <!-- overduecharges -->
1172 <div id="book-drop-mode" class="circ-setting">
1173 [% IF ( dropboxmode ) %]
1174 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
1176 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
1178 <label for="dropboxcheck">Book drop mode</label>
1181 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
1182 <div class="forgive-manual-hold-fees circ-setting">
1183 [% IF ( forgivemanualholdsexpire ) %]
1184 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
1186 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
1188 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
1190 [% END %] <!-- overduecharges -->
1192 </div> <!-- /.circ-settings -->
1193 </fieldset> <!-- /#circ_returns_checkin -->
1194 </form> <!-- /#checkin-form -->
1197 <div class="page-section">
1198 <h2>Checked-in items</h2>
1199 <table id="checkedintable">
1202 <th class="ci-duedate">Due date</th>
1203 <th class="ci-title">Title</th>
1204 <th class="ci-author">Author</th>
1205 <th class="ci-barcode">Barcode</th>
1206 <th class="ci-homelibrary">Home library</th>
1207 <th class="ci-transferlibrary">Transfer to</th>
1208 <th class="ci-shelvinglocation">Shelving location</th>
1209 <th class="ci-callnumber">Call number</th>
1210 <th class="ci-dateaccessioned">Date acquired</th>
1211 <th class="ci-recordlevelitemtype">Record-level itemtype</th>
1212 <th class="ci-itemtype">Item type</th>
1213 <th class="ci-collection">Collection</th>
1214 <th class="ci-patron">Patron</th>
1215 <th class="ci-note">Note</th>
1219 [% FOREACH riloo IN riloop %]
1221 <td class="ci-duedate">
1222 [% IF ( riloo.duedate ) %]
1223 [% IF ( riloo.return_overdue ) %]
1224 <span class="overdue">[% riloo.duedate | $KohaDates as_due_date => 1 %] (overdue)</span>
1226 [% riloo.duedate | $KohaDates as_due_date => 1 %]
1229 <span>Not checked out</span>
1231 [% IF ( riloo.damaged ) %]
1232 <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => riloo.damaged ) | html %]</span>
1235 <td class="ci-title">
1236 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
1237 [% riloo.itemtitle | html %]
1238 [% FOREACH subtitle IN riloo.subtitle.split(' \\| ') %] <span class="subtitle">[% subtitle | html %]</span>[% END %]
1239 [% FOREACH part_number IN riloo.part_number.split(' \\| ') %] <span class="part_number">[% part_number | html %]</span>[% END %]
1240 [% FOREACH part_name IN riloo.part_name.split(' \\| ') %] <span class="part_name">[% part_name | html %]<span>[% END %]
1242 [% IF ( riloo.enumchron ) %]
1244 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
1247 <td class="ci-author">[% riloo.itemauthor | html %]</td>
1248 <td class="ci-barcode">
1249 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a>
1251 <td class="ci-homelibrary">
1252 [% Branches.GetName( riloo.homebranch ) | html %]
1254 <td class="ci-transferlibrary">
1255 [% Branches.GetName( riloo.transferbranch ) | html %]
1257 <td class="ci-shelvinglocation">
1258 <span class="shelvingloc">[% riloo.location | html %]</span>
1260 <td class="ci-callnumber">
1261 [% riloo.itemcallnumber | html %]
1263 <td class="ci-dateaccessioned">
1264 [% riloo.dateaccessioned | $KohaDates %]
1266 <td class="ci-recordlevelitemtype">
1267 [% ItemTypes.GetDescription( riloo.recordtype ) | html %]
1269 <td class="ci-itemtype">
1270 [% ItemTypes.GetDescription( riloo.itemtype ) | html %]
1272 <td class="ci-collection">
1273 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => riloo.ccode) | html %]
1275 <td class="ci-patron">
1276 [% IF ( riloo.duedate ) %]
1277 [% INCLUDE 'patron-title.inc' patron=riloo.patron hide_patron_infos_if_needed=1 invert_name=1 %]
1278 [% IF riloo.borissuescount %]
1279 <span class="results_summary nowrap">
1280 <span class="label">Checkouts:</span>
1281 <span class="number_box">
1282 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
1286 <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>
1291 <td class="ci-note">
1292 [% IF ( riloo.patron.borrowernotes ) %]
1293 <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
1295 [% IF ( riloo.itemnote ) %]
1296 <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>
1298 [% IF ( riloo.itemnotes_nonpublic ) %]
1299 <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
1303 [% END # /FOREACH riloo %]
1304 </table> <!-- /#checkedintable -->
1305 </div><!-- /.page-section -->
1306 [% END # /IF riloop %]
1308 [% IF Koha.Preference('CircSidebar') %]
1309 </div> <!-- /.col-sm-10.col-sm-push-2 -->
1310 <div class="col-sm-2 col-sm-pull-10">
1312 [% INCLUDE 'circ-nav.inc' %]
1314 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
1315 </div> <!-- /.row -->
1317 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
1318 </div> <!-- /.row -->
1322 </div> <!-- /.col-sm-12 -->
1323 </div> <!-- /.row -->
1325 [% IF ( ReturnClaims ) %]
1326 [% INCLUDE 'modals/resolve_return_claim.inc' %]
1329 [% INCLUDE 'modals/bundle_contents.inc' %]
1331 [% IF ( missing_items ) %]
1332 <!-- Bundle missing modal -->
1333 <div class="modal printable" id="bundleMissingModal" tabindex="-1" role="dialog" aria-labelledby="bundleMissingLabel">
1334 <div class="modal-dialog" role="document">
1335 <div class="modal-content">
1336 <div class="modal-header">
1337 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1338 <h4 class="modal-title" id="bundleMissingLabel">Items missing from bundle at checkin for [% item.barcode | html %]</h4>
1340 <div class="modal-body">
1341 <table style="width:100%">
1349 [% FOREACH bundle_item IN missing_items %]
1351 <td>[% bundle_item.barcode | html %]</td>
1352 <td>[% INCLUDE 'biblio-title.inc' biblio=bundle_item.biblio %]</td>
1359 </div> <!-- /.modal-body -->
1360 <div class="modal-footer">
1361 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
1362 <button type="button" class="printModal btn btn-primary"><i class="fa fa-print"></i> Print</button>
1363 </div> <!-- /.modal-footer -->
1364 </div> <!-- /.modal-content -->
1365 </div> <!-- /.modal-dialog -->
1366 </div> <!-- /#bundleMissingModal -->
1369 [% IF ( Koha.Preference('CatalogConcerns') ) %]
1370 [% INCLUDE 'modals/add_catalog_concern.inc' %]
1373 [% MACRO jsinclude BLOCK %]
1374 [% INCLUDE 'datatables.inc' %]
1375 [% INCLUDE 'columns_settings.inc' %]
1376 [% INCLUDE 'calendar.inc' %]
1377 [% Asset.js("js/pages/circulation.js") | $raw %]
1378 [% IF ( ReturnClaims ) %]
1380 /* Set a variable needed by resolve_claim_modal.js */
1381 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1383 [% Asset.js("js/resolve_claim_modal.js") | $raw %]
1385 [% IF ( Koha.Preference('CatalogConcerns') ) %]
1387 /* Set a variable needed by add_catalog_concern.js */
1388 var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]";
1390 [% Asset.js("js/modals/add_catalog_concern.js") | $raw %]
1393 function Dopop(link) {
1394 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1395 $("#barcode").focus();
1397 $(document).ready(function () {
1398 $("#checkin-form").preventDoubleFormSubmit();
1399 $(".modal.block").modal({ backdrop: 'static'}).on('shown.bs.modal', function() {
1400 $("#barcode").prop("disabled", true);
1401 $(".show_checkin_dialog").show();
1402 }).on('hidden.bs.modal', function() {
1403 $("#barcode").prop("disabled", false).focus();
1405 $(".modal.noblock").on('show.bs.modal', function() {
1406 /* If the modal doesn't block further action, the backdrop should be hidden.
1407 In order for this to happen smoothly we add a class to the body tag which
1408 targeted in the CSS */
1409 $("body").addClass("nobackdrop");
1411 .on('shown.bs.modal', function() {
1412 $("#barcode").prop("disabled", false).focus();
1413 }).on('hidden.bs.modal', function() {
1414 $("#barcode").prop("disabled", false).focus();
1417 $("body").on("click", ".show_checkin_dialog button", function(e){
1419 $(".modal").modal("show");
1422 $(".print-slip").on('click', function(e) {
1424 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1427 Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]');
1430 var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
1432 [% IF recall_slip %]
1433 Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% recall_id | uri %]');
1436 var returns_table = KohaTable("checkedintable", {
1441 "dom": '<"table_controls"B>rt',
1444 $("#exemptcheck").change(function () {
1445 if (this.checked == true) {
1446 $("#barcode").addClass("input-warning");
1447 $("#exemptfines").show();
1449 $("#barcode").removeClass("input-warning");
1450 $("#exemptfines").hide();
1452 $("#barcode").focus();
1455 $("#dropboxcheck").change(function () {
1456 if (this.checked == true) {
1457 $("#barcode").addClass("input-warning");
1458 $("#dropboxmode").show();
1460 $("#return_date_override_fields :input").prop('disabled', true);
1462 $("#barcode").removeClass("input-warning");
1463 $("#dropboxmode").hide();
1465 $("#return_date_override_fields :input").prop('disabled', false);
1467 $("#barcode").focus();
1470 $("#forgivemanualholdsexpire").change(function () {
1471 if (this.checked == true) {
1472 $("#barcode").addClass("input-warning");
1473 $("#forgivemanualholdsexpire-alert").show();
1475 $("#barcode").removeClass("input-warning");
1476 $("#forgivemanualholdsexpire-alert").hide();
1478 $("#barcode").focus();
1481 [% IF(overduecharges) %]
1482 $("#barcode").focus(function () {
1483 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
1484 $("#barcode").addClass("input-warning");
1486 $("#barcode").removeClass("input-warning");
1489 $("#barcode").blur(function () {
1490 $("#barcode").removeClass("input-warning");
1494 $('.openWin').on("click",function(e){
1495 Dopop( $(this).data("url") );
1498 $('.submit').on("click",function(e){
1502 $('.cancel').on("click",function(e){
1503 var docancel = $("<input>").attr("type", "hidden").attr("name", "canceltransfer").val(1);
1504 $('#wrongtransferform').append(docancel);
1508 $('.print').on("click",function(e){
1509 this.form.print_slip.value = 1;
1510 let barcode = document.getElementById('confirm-hold-barcode');
1511 if ( barcode ) barcode.remove();
1512 if ($(this).attr('name') == "dotransfer") {
1513 var dotransfer = $("<input>").attr("type", "hidden").attr("name", "dotransfer").val("Yes");
1514 $('#mainform').append(dotransfer);
1519 $('.print-recall').on("click",function(e){
1520 this.form.recall_slip.value = 1;
1524 $('.approve').on("click",function(e){
1525 let barcode = document.getElementById('confirm-hold-barcode');
1526 if ( barcode ) barcode.remove();
1529 $('.cancel-hold').on("click",function(e){
1530 this.form.cancel_reserve.value = 1;
1534 $('.action').on("click",function(e){
1535 this.checked = false;
1536 this.form.return_date_override.value = '';
1537 this.form.return_date_override_remember.checked = false;
1538 this.form.barcode.focus();
1539 $("#return_date_remember").hide();
1543 $("#return_date_override_remember").on("change", function(){
1544 if( $(this).prop("checked" ) ){
1545 if( $("#return_date_override").val() == "" ){
1546 $("#saved_return_date").text( _("No date selected") );
1548 $("#saved_return_date").text( $("#return_date_override").val() );
1550 $("#return_date_remember").show();
1552 $("#return_date_remember").hide();
1555 $('[data-toggle="tooltip"]').tooltip();
1557 $(".printcheckinslip").on("click", function(e){
1559 var borrowernumber = $(this).data('borrowernumber');
1560 window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=checkinslip", "printwindow");
1564 $('#verify-items-bundle-contents-barcodes').on('input', function (ev) {
1565 let char = ev.target.value.slice(-1);
1566 if ( char.match(/\n/) ) {
1567 const barcodes = ev.target.value.split('\n').map(function(s) { return s.trim().toUpperCase() });
1568 const expected = [];
1570 $('#items-bundle-contents-table tbody > tr').each(function () {
1571 const barcode = this.getAttribute('data-barcode').toUpperCase();
1572 expected.push(barcode);
1573 if (barcodes.includes(barcode)) {
1574 this.classList.add('ok');
1577 this.classList.remove('ok');
1580 const last = barcodes[barcodes.length -2];
1581 const feedback = $('#bundle-feedback');
1583 if ( !expected.includes(last) ) {
1584 feedback.fadeOut(100, function(){
1585 string = _("Unexpected: ") +last;
1586 feedback.addClass('alert-danger').removeClass('alert-success').html(string).fadeIn(100);
1589 feedback.fadeOut(100, function(){
1590 string = _("Verified: ")+last;
1591 feedback.addClass('alert-success').removeClass('alert-danger').html(string).fadeIn(100);
1594 $('#verify-progress').show();
1595 $('#verified').text(found);
1596 $('#expected').text(expected.length);
1600 $('.bundle_remove').on('click', function() {
1601 var component_itemnumber = $(this).data('itemnumber');
1602 var host_itemnumber = $(this).data('hostnumber');
1603 var alert = $(this).closest('div');
1604 var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/item/" + component_itemnumber;
1607 url: unlink_item_url,
1608 success: function(){
1614 $('#items-bundle-contents-table').dataTable($.extend(true, {}, dataTablesDefaults, {
1618 "order": [[ 1, 'asc' ], [ 0, 'asc' ]]
1622 $('.modal.printable').on('shown.bs.modal', function() {
1623 $('.modal-dialog', this).addClass('focused');
1624 $('body').addClass('modalprinter');
1626 if ($(this).hasClass('autoprint')) {
1629 }).on('hidden.bs.modal', function() {
1630 $('.modal-dialog', this).removeClass('focused');
1631 $('body').removeClass('modalprinter');
1634 $('.printModal').click(function() {
1637 [% IF ( !(Koha.Preference('TransfersBlockCirc')) && Koha.Preference('AutomaticConfirmTransfer') ) %]
1638 $("#wrong-transfer-modal").on('hidden.bs.modal',function(){
1639 $("#wrongtransferform").submit();
1642 $("#item-transfer-modal").on('hidden.bs.modal',function(){
1643 $("#mainform").submit();
1652 [% INCLUDE 'intranet-bottom.inc' %]