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 [% Asset.css("css/datatables.css") | $raw %]
37 [% INCLUDE 'doc-head-close.inc' %]
40 <body id="circ_returns" class="circ">
41 <span class="audio-alert-success"></span>
43 [% INCLUDE 'header.inc' %]
44 [% INCLUDE 'checkin-search.inc' %]
46 <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>
48 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
52 [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
55 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
56 <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>
57 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
58 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
61 [% IF additional_materials %]
62 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
63 [% additional_materials | html %]
67 [% IF ( collectionItemNeedsTransferred ) %]
68 <div id="rotating-collection" class="dialog message">
69 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
70 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
71 <p>This item is part of a rotating collection.</p>
72 <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>
76 <!-- Patron has added an issue note -->
77 [% IF ( issue.note) %]
78 <div class="dialog message">
80 <p>[% issue.notedate | $KohaDates %]</p>
81 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | html %]"> [% title | html %]</a> [% author | html %]</p>
82 <p>[% issue.note | html %]</p>
86 <!-- Patron has fines -->
88 <div class="dialog alert">
89 <h3>Patron has outstanding fines of [% fines | html %].</h3>
90 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | html %]">Make payment</a>.</p>
94 <!-- Patron has waiting holds -->
95 [% IF ( waiting_holds ) %]
96 <div id="awaiting-pickup" class="dialog message">
97 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
98 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | html %]">Check out to this patron</a>.</p>
102 <!-- Patron is restricted and checkin was backdated -->
103 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
104 <div id="restricted_backdated" class="dialog message">
106 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">
107 [% patron.firstname | html %] [% patron.surname | html %]
109 is restricted. Please verify this patron should still be restricted.
114 [% IF ( wrongbranch ) %]
115 <div class="dialog alert"><h3>Cannot check in</h3>
116 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
117 </p><strong>NOT CHECKED IN</strong></p>
118 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) | html %]</strong></p>
122 <!-- case of a mistake in transfer loop -->
123 [% IF ( WrongTransfer ) %]
124 <div id="return2" class="dialog message">
125 <!-- WrongTransfer -->
126 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]</h3>
127 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
128 <button type="submit" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
129 <button class="deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button>
130 [% IF ( patron.cardnumber ) %]<h5>Hold for:</h5>
132 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">
133 [% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
134 [% INCLUDE display_holdpatron_address %]
135 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
136 [% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>[% END %]
139 <form method="post" action="returns.pl" class="confirm">
140 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem | html %]" />
141 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt | html %]" />
142 <input type="hidden" name="WT-From" value="[% wtransfertFrom | html %]" />
143 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
144 <input type="hidden" name="print_slip" value="0" />
145 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
146 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
147 <button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();"><i class="fa fa-print"></i> Print slip and confirm</button>
148 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
149 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
156 <div id="hold-found1" class="modal fade audio-alert-action">
157 <div class="modal-dialog">
158 <div class="modal-content">
159 <form method="post" action="returns.pl" class="confirm">
160 <div class="modal-header">
162 Hold found (item is already waiting):
164 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">
165 [% itembarcode | html %]: [% title | html %]
170 <div class="modal-body">
171 [% IF ( reservenotes ) %]
172 <h4>Notes: [% reservenotes | html %]</h4>
178 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
179 <span class="patron-category"> - [% patron.category.description | html %]</span>
181 [% INCLUDE display_holdpatron_address %]
182 [% IF ( patron.phone ) %]
183 <li> [% patron.phone | html %]</li>
186 [% IF ( patron.email ) %]
187 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
190 [% IF ( patron.debarred ) %]
191 <li class="error">Patron is RESTRICTED</li>
194 [% IF ( patron.gonenoaddress ) %]
195 <li class="error">Patron's address is in doubt</li>
199 [% IF ( transfertodo ) %]
200 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
202 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
205 [% FOREACH inputloo IN inputloop %]
206 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
207 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
208 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
211 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
212 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
213 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
214 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
215 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
216 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
217 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
218 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
220 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
221 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
224 <div class="modal-footer">
225 <input type="hidden" name="cancel_reserve" value="0" />
227 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
228 <i class="fa fa-check"></i> Confirm
231 <input type="hidden" name="print_slip" value="0" />
232 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
233 <i class="fa fa-print"></i> Print and confirm
236 <button type="submit" class="btn btn-default deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
237 <i class="fa fa-times"></i> Cancel hold
246 [% IF ( diffbranch ) %]
248 <div id="transfer-needed" class="dialog message audio-alert-action">
249 <h3>Hold needing transfer found</h3>
250 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
253 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
254 [% INCLUDE display_holdpatron_address %]
255 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
256 [% 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 %]
257 [% IF ( patron.debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
258 [% IF ( patron.gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
260 [% IF ( transfertodo ) %]
261 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
263 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
266 <form method="post" action="returns.pl" class="confirm">
267 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
268 <input type="hidden" name="print_slip" value="0" />
269 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
270 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
271 <button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();"><i class="fa fa-print"></i> Print slip and continue</button>
272 [% FOREACH inputloo IN inputloop %]
273 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
274 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
275 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
277 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
278 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
279 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
280 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
281 <input type="hidden" name="barcode" value="0" />
283 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
284 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
289 [% IF ( transfer ) %]
290 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
291 <div id="return1" class="dialog message audio-alert-action">
292 <h3>Please return item to: [% Branches.GetName( returnbranch ) | html %]</h3>
293 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
294 <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
298 [% IF ( needstransfer ) %]
299 <!-- needstransfer -->
300 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) | html %]</h3>
302 <form method="post" action="returns.pl" name="mainform" id="mainform">
304 <button type="submit" name="dotransfer" value="Yes" class="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>
306 <button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
307 <button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
308 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
309 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
310 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
311 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
312 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
313 [% FOREACH inputloo IN inputloop %]
314 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
315 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
316 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
318 <input type="hidden" name="barcode" value="0" />
319 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
320 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
324 [% IF ( diffbranch ) %]
326 <h3 class="audio-alert-action">Item consigned:</h3>
328 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% title | html %]</a></caption>
331 <td>[% INCLUDE 'patron-title.inc' patron=patron %]</td>
334 <form method="post" action="returns.pl"><input type="submit" value="OK" />
335 [% FOREACH inputloo IN inputloop %]
336 [% UNLESS ( inputloo.first ) %]
337 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
338 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
339 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
343 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
344 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
346 <input type="hidden" name="barcode" value="0" />
351 <!-- case of simple return no issue or transfer but with a reservation -->
352 [% IF ( reserved ) %]
354 <div id="hold-found2" class="modal fade audio-alert-action">
355 <div class="modal-dialog">
356 <div class="modal-content">
357 <form method="post" action="returns.pl" class="confirm">
358 <div class="modal-header">
362 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">
363 [% itembarcode | html %]: [% title | html %]
367 <div class="modal-body">
368 [% IF ( reservenotes ) %]
369 <h4>Notes: [% reservenotes | html %]</h4>
373 [% INCLUDE 'patron-title.inc' patron=patron %]
374 <span class="patron-category"> - [% patron.category.description | html %]</span>
377 [% INCLUDE display_holdpatron_address %]
379 [% IF ( patron.phone ) %]
380 <li>[% patron.phone | html %]</li>
383 [% IF ( patron.email ) %]
385 [% IF ( transfertodo ) %]
386 [% patron.email | html %]
388 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
393 [% UNLESS ( transfertodo) %]
394 [% INCLUDE display_bormessagepref %]
397 [% IF ( patron.debarred ) %]
398 <li class="error">Patron is RESTRICTED</li>
401 [% IF ( patron.gonenoaddress ) %]
402 <li class="error">Patron's address is in doubt</li>
405 [% IF ( transfertodo ) %]
406 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
408 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
411 <input type="hidden" name="print_slip" value="0" />
414 [% FOREACH inputloo IN inputloop %]
415 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
416 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
417 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
420 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
421 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
422 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
423 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
424 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
425 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
426 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
427 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
428 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
429 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
432 <div class="modal-footer">
433 [% IF ( transfertodo ) %]
434 <button type="submit" class="btn btn-default approve">
435 <i class="fa fa-check"></i> Confirm hold and transfer
437 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit()">
438 <i class="fa fa-print"></i> Print slip, transfer, and confirm
441 <button type="submit" class="btn btn-default approve">
442 <i class="fa fa-check"></i> Confirm hold
444 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
445 <i class="fa fa-print"></i> Print slip and confirm
449 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('#barcode').focus(); return false;">
450 <i class="fa fa-times"></i> Ignore
460 [% IF ( errmsgloop ) %]
461 <div class="dialog alert audio-alert-warning">
462 <h3>Check in message</h3>
463 [% IF itembiblionumber %]
464 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
466 [% FOREACH errmsgloo IN errmsgloop %]
467 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
469 Not for loan status updated.
471 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
472 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
477 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
478 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
484 [% IF ( errmsgloo.badbarcode ) %]
485 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
487 [% IF ( errmsgloo.ispermanent ) %]
488 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
490 [% IF ( errmsgloo.notissued ) %]
491 <p class="problem">Not checked out.</p>
493 [% IF ( errmsgloo.localuse) %]
494 <p class="problem">Local use recorded</p>
496 [% IF ( errmsgloo.waslost ) %]
497 <p class="problem">Item was lost, now found.</p>
498 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
499 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
500 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
501 <h5>Cannot check in</h5>
502 <p><strong>NOT CHECKED IN</strong></p>
504 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
507 [% IF ( errmsgloo.withdrawn ) %]
508 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
509 <h5>Cannot check in</h5>
510 <p><strong>NOT CHECKED IN</strong></p>
512 <p class="problem">Item is withdrawn.</p>
514 [% IF ( errmsgloo.debarred ) %]
515 <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | html %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
517 [% IF ( errmsgloo.prevdebarred ) %]
518 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
520 [% IF ( errmsgloo.foreverdebarred ) %]
521 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
524 [% IF errmsgloo.data_corrupted %]
525 <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>
531 [% IF ( checkinmsg ) %]
532 [% IF ( checkinmsgtype == 'alert' ) %]
533 <div class="dialog alert">
535 <div class="dialog message">
537 <p class="problem">[% checkinmsg | html_line_break %]</p>
541 <div id="exemptfines" class="dialog message" style="display:none;">
542 <p>Fines for returned items are forgiven.</p>
544 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
545 <p>Fines are not charged for manually cancelled holds.</p>
547 <div id="dropboxmode" class="dialog message" style="display:none;">
548 <p>Book drop mode. (Effective checkin date is [% dropboxdate | html %] ).</p>
552 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
553 <div class="yui-u first">
555 <legend>Check in</legend>
556 <label for="barcode">Enter item barcode: </label>
557 [% IF ( exemptfine ) %]
558 <input name="barcode" id="barcode" size="14" class="focus alert"/>
559 [% ELSIF ( dropboxmode ) %]
560 <input name="barcode" id="barcode" size="14" class="focus alert"/>
562 <input name="barcode" id="barcode" size="14" class="focus"/>
564 <input type="submit" class="submit" value="Submit" />
566 [% IF Koha.Preference('SpecifyReturnDate') %]
567 <div class="date-select" id="return_date_override_fields">
568 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
570 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
572 <label for="return_date_override_remember"> Remember for next check in:</label>
573 [% IF ( return_date_override_remember ) %]
574 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
576 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
579 <input type="button" class="action" id="cleardate" value="Clear" name="cleardate" onclick="this.checked = false; this.form.return_date_override.value = ''; this.form.return_date_override_remember.checked = false; this.form.barcode.focus(); return false;" />
582 [% FOREACH inputloo IN inputloop %]
583 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
584 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
585 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
592 <fieldset id="checkin_options">
593 <legend>Options</legend>
594 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
596 [% IF ( exemptfine ) %]
597 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
599 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
601 <label for="exemptcheck">Forgive overdue charges</label>
603 [% END %] <!-- overduecharges -->
605 [% IF ( dropboxmode ) %]
606 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
608 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
610 <label for="dropboxcheck">Book drop mode</label>
612 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
614 [% IF ( forgivemanualholdsexpire ) %]
615 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
617 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
619 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
621 [% END %] <!-- overduecharges -->
628 <h2>Checked-in items</h2>
629 <table id="checkedintable">
630 <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>
632 [% FOREACH riloo IN riloop %]
634 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
635 [% IF ( riloo.return_overdue ) %]
636 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
637 [% ELSE %][% riloo.duedate | html %]
639 [% ELSE %]Not checked out
642 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | html %]">
643 [% riloo.itemtitle | html %]
645 [% IF ( riloo.enumchron ) %]
647 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
650 <td class="ci-author">[% riloo.itemauthor | html %]</td>
651 <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | html %]&itemnumber=[% riloo.itemnumber | html %]#item[% riloo.itemnumber | html %]">[% riloo.barcode | html %]</a></td>
652 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
653 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
654 <td class="ci-shelvinglocation">[% riloo.location | html %]</td>
655 <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
656 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
657 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
658 <td class="ci-patron">[% IF ( riloo.duedate ) %]
659 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">
660 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
662 [% IF riloo.borissuescount %]
663 <span class="results_summary nowrap">
664 <span class="label">Checkouts:</span>
665 <span class="number_box">
666 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">[% riloo.borissuescount | html %]</a>
670 [% ELSE %]Not checked out[% END %]</td>
672 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
673 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
674 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
681 [% IF Koha.Preference('CircSidebar') %]
683 <div class="yui-b noprint">
684 [% INCLUDE 'circ-nav.inc' %]
691 [% MACRO jsinclude BLOCK %]
692 [% INCLUDE 'datatables.inc' %]
693 [% INCLUDE 'columns_settings.inc' %]
694 [% INCLUDE 'calendar.inc' %]
695 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
696 [% INCLUDE 'timepicker.inc' %]
698 <script type="text/javascript">
699 function Dopop(link) {
700 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
701 $("#barcode").focus();
703 $(document).ready(function () {
704 $(".modal").modal({ backdrop: 'static' }).on('shown', function() {
705 $("#barcode").prop("disabled", true);
706 }).on('hidden', function() {
707 $("#barcode").prop("disabled", false).focus();
710 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
713 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
716 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
717 var returns_table = KohaTable("checkedintable", {
722 "dom": 'B<"clearfix">t',
723 }, columns_settings);
725 $("#return_date_override").datetimepicker({
726 onClose: function(dateText, inst) {
727 if (validate_date(dateText, inst) ) {
728 $("#barcode").focus();
735 }).on("change", function(e, value) {
736 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
738 $("#return_date_override").on("blur", function() {
739 check_valid_return_date();
741 $("#checkin-form").submit(function( event ) {
742 if ( !check_valid_return_date() ) {
743 event.preventDefault();
747 function check_valid_return_date() {
748 if ( $("#return_date_override").val() ) {
749 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
750 var now = new Date();
751 if ( !datetime || datetime > now ) {
752 alert("Invalid return date/time!");
753 $("#return_date_override").val("")
760 $("#exemptcheck").change(function () {
761 if (this.checked == true) {
762 $("#barcode").addClass("alert");
763 $("#exemptfines").show();
765 $("#barcode").removeClass("alert");
766 $("#exemptfines").hide();
768 $("#barcode").focus();
770 $("#dropboxcheck").change(function () {
771 if (this.checked == true) {
772 $("#barcode").addClass("alert");
773 $("#dropboxmode").show();
775 $("#return_date_override_fields :input").prop('disabled', true);
776 $("#return_date_override").datetimepicker("disable");
778 $("#barcode").removeClass("alert");
779 $("#dropboxmode").hide();
781 $("#return_date_override_fields :input").prop('disabled', false);
782 $("#return_date_override").datetimepicker("enable");
784 $("#barcode").focus();
786 $("#forgivemanualholdsexpire").change(function () {
787 if (this.checked == true) {
788 $("#barcode").addClass("alert");
789 $("#forgivemanualholdsexpire-alert").show();
791 $("#barcode").removeClass("alert");
792 $("#forgivemanualholdsexpire-alert").hide();
794 $("#barcode").focus();
797 [% IF(overduecharges) %]
798 $("#barcode").focus(function () {
799 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
800 $("#barcode").addClass("alert");
802 $("#barcode").removeClass("alert");
805 $("#barcode").blur(function () {
806 $("#barcode").removeClass("alert");
810 $('.openWin').on("click",function(e){
811 Dopop( $(this).data("url") );
817 [% INCLUDE 'intranet-bottom.inc' %]