8 [% USE AuthorisedValues %]
9 [% USE ColumnsSettings %]
10 [% SET footerjs = 1 %]
11 [% BLOCK display_bormessagepref %]
12 [% IF ( bormessagepref ) %]
13 <li>Patron notification:
14 [% FOREACH mtt IN bormessagepref.keys %]
15 [%~ IF ( mtt == 'email' ) %] Email[% END ~%]
16 [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%]
17 [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%]
18 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
22 <li>Patron is not notified.</li>
26 [% BLOCK display_holdpatron_address %]
27 [% IF Koha.Preference( 'AddressFormat' ) %]
28 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
30 [% INCLUDE 'member-display-address-style-us.inc' %]
34 [% INCLUDE 'doc-head-open.inc' %]
35 <title>Koha › Circulation › Check in [% title | html %]</title>
36 [% INCLUDE 'doc-head-close.inc' %]
39 <body id="circ_returns" class="circ">
40 <span class="audio-alert-success"></span>
42 [% INCLUDE 'header.inc' %]
43 [% INCLUDE 'checkin-search.inc' %]
45 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Check in</div>
47 <div class="main container-fluid">
49 <div class="col-sm-12">
53 [% IF Koha.Preference('CircSidebar') %]
54 <div class="col-sm-10 col-sm-push-2">
56 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
59 [% IF hold_auto_filled %]
60 <div class="dialog alert hold-auto-filled">
61 [% IF ( reservenotes ) %]
62 <h4>Notes: [% reservenotes | html %]</h4>
64 <h3>Hold filled for:</h3>
66 [% INCLUDE 'patron-title.inc' patron=patron %]
67 <span class="patron-category"> - [% patron.category.description | html %]</span>
70 [% INCLUDE display_holdpatron_address %]
72 [% IF ( patron.phone ) %]
73 <li>[% patron.phone | html %]</li>
76 [% IF ( patron.email ) %]
78 [% IF ( transfertodo ) %]
79 [% patron.email | html %]
81 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
86 [% UNLESS ( transfertodo) %]
87 [% INCLUDE display_bormessagepref %]
90 [% IF ( patron.debarred ) %]
91 <li class="error">Patron is RESTRICTED</li>
94 [% IF ( patron.gonenoaddress ) %]
95 <li class="error">Patron's address is in doubt</li>
98 [% IF ( transfertodo ) %]
99 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
101 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
104 <a href="#" class="btn btn-default print print-slip">
105 <i class="fa fa-print"></i> Print
110 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
111 <div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div>
112 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
113 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
116 [% IF additional_materials %]
117 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
118 [% additional_materials | html %]
122 [% IF ( collectionItemNeedsTransferred ) %]
123 <div id="rotating-collection" class="dialog message">
124 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
125 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
126 <p>This item is part of a rotating collection.</p>
127 <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% collectionBranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
131 <!-- Patron has added an issue note -->
132 [% IF ( issue.note) %]
133 <div class="dialog message">
135 <p>[% issue.notedate | $KohaDates %]</p>
136 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
137 <p>[% issue.note | html %]</p>
141 <!-- Patron has fines -->
143 <div class="dialog alert">
144 <h3>Patron has outstanding fines of [% fines | html %].</h3>
145 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
149 <!-- Patron has waiting holds -->
150 [% IF ( waiting_holds ) %]
151 <div id="awaiting-pickup" class="dialog message">
152 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
153 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
157 <!-- Patron is restricted and checkin was backdated -->
158 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
159 <div id="restricted_backdated" class="dialog message">
161 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
162 [% patron.firstname | html %] [% patron.surname | html %]
164 is restricted. Please verify this patron should still be restricted.
170 <div id="wrong-branch-modal" class="modal fade audio-alert-action">
171 <div class="modal-dialog">
172 <div class="modal-content">
173 <form method="post" action="returns.pl" name="mainform" id="mainform">
174 <div class="modal-header">
179 <div class="modal-body">
181 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
182 [% itembarcode | html %]: [% title | html %]
191 This item must be checked in at following library:
193 [% Branches.GetName( rightbranch ) | html %]
197 <div class="modal-footer">
198 <button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
206 <!-- case of a mistake in transfer loop -->
207 [% IF WrongTransfer && !transfertodo %]
208 <div id="wrong-transfer-modal" class="modal fade audio-alert-action">
209 <div class="modal-dialog">
210 <div class="modal-content">
211 <form method="post" action="returns.pl" name="mainform" id="mainform">
212 <div class="modal-header">
214 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
217 <div class="modal-body">
219 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
220 [% itembarcode | html %]: [% title | html %]
224 <div class="modal-footer">
225 <button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
226 <button type="submit" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
227 <button class="btn btn-default deny cancel-transfer" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
228 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
229 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
239 <div id="hold-found1" class="modal fade audio-alert-action">
240 <div class="modal-dialog">
241 <div class="modal-content">
242 <form method="post" action="returns.pl" class="confirm">
243 <div class="modal-header">
245 Hold found (item is already waiting):
247 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
248 [% itembarcode | html %]: [% title | html %]
253 <div class="modal-body">
254 [% IF ( reservenotes ) %]
255 <h4>Notes: [% reservenotes | html %]</h4>
261 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
262 <span class="patron-category"> - [% patron.category.description | html %]</span>
264 [% INCLUDE display_holdpatron_address %]
265 [% IF ( patron.phone ) %]
266 <li> [% patron.phone | html %]</li>
269 [% IF ( patron.email ) %]
270 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
273 [% IF ( patron.debarred ) %]
274 <li class="error">Patron is RESTRICTED</li>
277 [% IF ( patron.gonenoaddress ) %]
278 <li class="error">Patron's address is in doubt</li>
282 [% IF ( transfertodo ) %]
283 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
285 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
288 [% FOREACH inputloo IN inputloop %]
289 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
290 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
291 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
294 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
295 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
296 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
297 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
298 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
299 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
300 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
301 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
303 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
304 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
307 <div class="modal-footer">
308 <input type="hidden" name="cancel_reserve" value="0" />
310 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
311 <i class="fa fa-check"></i> Confirm hold
314 <input type="hidden" name="print_slip" value="0" />
315 <button type="submit" class="btn btn-default print">
316 <i class="fa fa-print"></i> Print slip and confirm
319 <button type="submit" class="btn btn-default deny cancel-hold">
320 <i class="fa fa-times"></i> Cancel hold
329 [% IF ( diffbranch ) %]
331 <div id="transfer-needed" class="dialog message audio-alert-action">
332 <h3>Hold needing transfer found</h3>
333 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
336 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
337 [% INCLUDE display_holdpatron_address %]
338 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
339 [% IF ( patron.email ) %]<li>[% IF ( transfertodo ) %][% patron.email | html %][% ELSE %]<a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>[% END %]</li>[% END %]
340 [% IF ( patron.debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
341 [% IF ( patron.gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
343 [% IF ( transfertodo ) %]
344 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
346 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
349 <form method="post" action="returns.pl" class="confirm">
350 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
351 <input type="hidden" name="print_slip" value="0" />
352 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
353 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
354 <button type="submit" class="print"><i class="fa fa-print"></i> Print slip and continue</button>
355 [% FOREACH inputloo IN inputloop %]
356 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
357 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
358 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
360 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
361 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
362 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
363 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
364 <input type="hidden" name="barcode" value="0" />
366 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
367 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
372 [% IF transfer || needstransfer %]
373 <div id="item-transfer-modal" class="modal fade audio-alert-action">
374 <div class="modal-dialog">
375 <div class="modal-content">
376 <form method="post" action="returns.pl" name="mainform" id="mainform">
377 <div class="modal-header">
379 Please return this item to [% Branches.GetName( returnbranch ) | html %]
382 <div class="modal-body">
384 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
385 [% itembarcode | html %]: [% title | html %]
392 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
393 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
394 <input type="hidden" name="barcode" value="0" />
397 <div class="modal-footer">
399 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
400 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button><button type="submit" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
402 <button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
403 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button>
405 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
406 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
407 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
408 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
409 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
410 [% FOREACH inputloo IN inputloop %]
411 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
412 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
413 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
422 [% IF ( diffbranch ) %]
424 <h3 class="audio-alert-action">Item consigned:</h3>
426 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a></caption>
429 <td>[% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]</td>
432 <form method="post" action="returns.pl"><input type="submit" value="OK" />
433 [% FOREACH inputloo IN inputloop %]
434 [% UNLESS ( inputloo.first ) %]
435 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
436 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
437 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
441 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
442 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
444 <input type="hidden" name="barcode" value="0" />
449 <!-- case of simple return no issue or transfer but with a reservation -->
450 [% IF ( reserved ) %]
452 <div id="hold-found2" class="modal fade audio-alert-action">
453 <div class="modal-dialog">
454 <div class="modal-content">
455 <form method="post" action="returns.pl" class="confirm">
456 <div class="modal-header">
460 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
461 [% itembarcode | html %]: [% title | html %]
465 <div class="modal-body">
466 [% IF ( reservenotes ) %]
467 <h4>Notes: [% reservenotes | html %]</h4>
471 <td>[% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]</td>
472 <span class="patron-category"> - [% patron.category.description | html %]</span>
475 [% INCLUDE display_holdpatron_address %]
477 [% IF ( patron.phone ) %]
478 <li>[% patron.phone | html %]</li>
481 [% IF ( patron.email ) %]
483 [% IF ( transfertodo ) %]
484 [% patron.email | html %]
486 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
491 [% UNLESS ( transfertodo) %]
492 [% INCLUDE display_bormessagepref %]
495 [% IF ( patron.debarred ) %]
496 <li class="error">Patron is RESTRICTED</li>
499 [% IF ( patron.gonenoaddress ) %]
500 <li class="error">Patron's address is in doubt</li>
503 [% IF ( transfertodo ) %]
504 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
506 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
509 <input type="hidden" name="print_slip" value="0" />
512 [% FOREACH inputloo IN inputloop %]
513 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
514 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
515 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
518 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
519 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
520 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
521 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
522 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
523 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
524 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
525 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
526 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
527 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
530 <div class="modal-footer">
531 [% IF ( transfertodo ) %]
532 <button type="submit" class="btn btn-default approve">
533 <i class="fa fa-check"></i> Confirm hold and transfer
535 <button type="submit" class="btn btn-default print">
536 <i class="fa fa-print"></i> Print slip, transfer, and confirm
539 <button type="submit" class="btn btn-default approve">
540 <i class="fa fa-check"></i> Confirm hold
542 <button type="submit" class="btn btn-default print">
543 <i class="fa fa-print"></i> Print slip and confirm
547 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
548 <i class="fa fa-times"></i> Ignore
558 [% IF ( errmsgloop ) %]
559 <div class="dialog alert audio-alert-warning">
560 <h3>Check in message</h3>
561 [% IF itembiblionumber %]
562 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
564 [% FOREACH errmsgloo IN errmsgloop %]
565 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
567 Not for loan status updated.
569 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
570 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
575 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
576 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
582 [% IF ( errmsgloo.ItemLocationUpdated ) %]
584 Item shelving location updated.
586 [% IF errmsgloo.ItemLocationUpdated.from %]
587 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
589 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %]
590 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
592 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %]
598 [% IF errmsgloo.ItemLocationUpdated.to %]
599 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
601 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %]
602 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
604 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %]
611 [% IF ( errmsgloo.badbarcode ) %]
612 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
614 [% IF ( errmsgloo.ispermanent ) %]
615 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
617 [% IF ( errmsgloo.notissued ) %]
618 <p class="problem">Not checked out.</p>
620 [% IF ( errmsgloo.localuse) %]
621 <p class="problem">Local use recorded</p>
623 [% IF ( errmsgloo.waslost ) %]
624 [% IF Koha.Preference('BlockReturnOfLostItems') %]
625 <p class="problem">Item is lost, cannot be checked in.</p>
627 <p class="problem">Item was lost, now found.</p>
629 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
630 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
631 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
632 <h5>Cannot check in</h5>
633 <p><strong>NOT CHECKED IN</strong></p>
635 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
638 [% IF ( errmsgloo.withdrawn ) %]
639 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
640 <h5>Cannot check in</h5>
641 <p><strong>NOT CHECKED IN</strong></p>
643 <p class="problem">Item is withdrawn.</p>
645 [% IF ( errmsgloo.debarred ) %]
646 <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
648 [% IF ( errmsgloo.prevdebarred ) %]
649 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
651 [% IF ( errmsgloo.foreverdebarred ) %]
652 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
655 [% IF errmsgloo.data_corrupted %]
656 <p class="problem">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and search for the "data problems" section</p>
662 [% IF ( checkinmsg ) %]
663 [% IF ( checkinmsgtype == 'alert' ) %]
664 <div class="dialog alert">
666 <div class="dialog message">
668 <p class="problem">[% checkinmsg | html_line_break %]</p>
672 <div id="exemptfines" class="dialog message" style="display:none;">
673 <p>Fines for returned items are forgiven.</p>
675 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
676 <p>Fines are not charged for manually cancelled holds.</p>
678 <div id="dropboxmode" class="dialog message" style="display:none;">
679 <p>Book drop mode. (Effective checkin date is [% dropboxdate | $KohaDates %] ).</p>
683 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
684 <div class="col-sm-6">
686 <legend>Check in</legend>
687 <label for="barcode">Enter item barcode: </label>
688 [% IF ( exemptfine ) %]
689 <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
690 [% ELSIF ( dropboxmode ) %]
691 <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
693 <input name="barcode" id="barcode" size="14" class="focus" type="text" />
695 <input type="submit" class="submit" value="Submit" />
697 [% IF Koha.Preference('SpecifyReturnDate') %]
698 <div class="date-select" id="return_date_override_fields">
699 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
701 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
703 <label for="return_date_override_remember"> Remember for next check in:</label>
704 [% IF ( return_date_override_remember ) %]
705 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
707 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
710 <input type="button" class="action" id="cleardate" value="Clear" name="cleardate" />
713 [% FOREACH inputloo IN inputloop %]
714 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
715 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
716 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
722 <div class="col-sm-6">
723 <fieldset id="checkin_options">
724 <legend>Options</legend>
725 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
727 [% IF ( exemptfine ) %]
728 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
730 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
732 <label for="exemptcheck">Forgive overdue charges</label>
734 [% END %] <!-- overduecharges -->
736 [% IF ( dropboxmode ) %]
737 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
739 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
741 <label for="dropboxcheck">Book drop mode</label>
743 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
745 [% IF ( forgivemanualholdsexpire ) %]
746 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
748 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
750 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
752 [% END %] <!-- overduecharges -->
759 <h2>Checked-in items</h2>
760 <table id="checkedintable">
761 <thead><tr><th class="ci-duedate">Due date</th><th class="ci-title">Title</th><th class="ci-author">Author</th><th class="ci-barcode">Barcode</th><th class="ci-homelibrary">Home library</th><th class="ci-holdinglibrary">Holding library</th><th class="ci-shelvinglocation">Shelving location</th><th class="ci-callnumber">Call number</th><th class="ci-dateaccessioned">Date acquired</th><th class="ci-type">Type</th><th class="ci-patron">Patron</th><th class="ci-note">Note</th></tr></thead>
763 [% FOREACH riloo IN riloop %]
765 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
766 [% IF ( riloo.return_overdue ) %]
767 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
768 [% ELSE %][% riloo.duedate | html %]
770 [% ELSE %]Not checked out
773 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
774 [% riloo.itemtitle | html %]
776 [% IF ( riloo.enumchron ) %]
778 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
781 <td class="ci-author">[% riloo.itemauthor | html %]</td>
782 <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a></td>
783 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
784 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
785 <td class="ci-shelvinglocation"><span class="shelvingloc">[% riloo.location | html %]</span></td>
786 <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
787 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
788 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
789 <td class="ci-patron">[% IF ( riloo.duedate ) %]
790 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
791 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
793 [% IF riloo.borissuescount %]
794 <span class="results_summary nowrap">
795 <span class="label">Checkouts:</span>
796 <span class="number_box">
797 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
801 [% ELSE %]Not checked out[% END %]</td>
803 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
804 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
805 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
812 [% IF Koha.Preference('CircSidebar') %]
813 </div> <!-- /.col-sm-10.col-sm-push-2 -->
814 <div class="col-sm-2 col-sm-pull-10">
816 [% INCLUDE 'circ-nav.inc' %]
818 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
819 </div> <!-- /.row -->
823 </div> <!-- /.col-sm-12 -->
824 </div> <!-- /.row -->
826 [% MACRO jsinclude BLOCK %]
827 [% INCLUDE 'datatables.inc' %]
828 [% INCLUDE 'columns_settings.inc' %]
829 [% INCLUDE 'calendar.inc' %]
830 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
831 [% INCLUDE 'timepicker.inc' %]
834 function Dopop(link) {
835 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
836 $("#barcode").focus();
838 $(document).ready(function () {
839 $(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() {
840 $("#barcode").prop("disabled", true);
841 }).on('hidden.bs.modal', function() {
842 $("#barcode").prop("disabled", false).focus();
845 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
847 $(".print-slip").on('click', function(e) {
849 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
853 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
856 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
857 var returns_table = KohaTable("checkedintable", {
862 "dom": 'B<"clearfix">t',
863 }, columns_settings);
865 $("#return_date_override").datetimepicker({
866 onClose: function(dateText, inst) {
867 if (validate_date(dateText, inst) ) {
868 $("#barcode").focus();
875 }).on("change", function(e, value) {
876 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
878 $("#return_date_override").on("blur", function() {
879 check_valid_return_date();
881 $("#checkin-form").submit(function( event ) {
882 if ( !check_valid_return_date() ) {
883 event.preventDefault();
887 function check_valid_return_date() {
888 if ( $("#return_date_override").val() ) {
889 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
890 var now = new Date();
891 if ( !datetime || datetime > now ) {
892 alert("Invalid return date/time!");
893 $("#return_date_override").val("")
900 $("#exemptcheck").change(function () {
901 if (this.checked == true) {
902 $("#barcode").addClass("alert");
903 $("#exemptfines").show();
905 $("#barcode").removeClass("alert");
906 $("#exemptfines").hide();
908 $("#barcode").focus();
910 $("#dropboxcheck").change(function () {
911 if (this.checked == true) {
912 $("#barcode").addClass("alert");
913 $("#dropboxmode").show();
915 $("#return_date_override_fields :input").prop('disabled', true);
916 $("#return_date_override").datetimepicker("disable");
918 $("#barcode").removeClass("alert");
919 $("#dropboxmode").hide();
921 $("#return_date_override_fields :input").prop('disabled', false);
922 $("#return_date_override").datetimepicker("enable");
924 $("#barcode").focus();
926 $("#forgivemanualholdsexpire").change(function () {
927 if (this.checked == true) {
928 $("#barcode").addClass("alert");
929 $("#forgivemanualholdsexpire-alert").show();
931 $("#barcode").removeClass("alert");
932 $("#forgivemanualholdsexpire-alert").hide();
934 $("#barcode").focus();
937 [% IF(overduecharges) %]
938 $("#barcode").focus(function () {
939 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
940 $("#barcode").addClass("alert");
942 $("#barcode").removeClass("alert");
945 $("#barcode").blur(function () {
946 $("#barcode").removeClass("alert");
950 $('.openWin').on("click",function(e){
951 Dopop( $(this).data("url") );
954 $('.print').on("click",function(e){
955 this.form.print_slip.value = 1;
959 $('.cancel-hold').on("click",function(e){
960 this.form.cancel_reserve.value = 1;
964 $('.cancel-transfer').on("click",function(e){
965 window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&canceltransfer=1'
968 $('.action').on("click",function(e){
969 this.checked = false;
970 this.form.return_date_override.value = '';
971 this.form.return_date_override_remember.checked = false;
972 this.form.barcode.focus();
979 [% INCLUDE 'intranet-bottom.inc' %]