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 [% IF Koha.Preference('BlockReturnOfLostItems') %]
498 <p class="problem">Item is lost, cannot be checked in.</p>
500 <p class="problem">Item was lost, now found.</p>
503 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
504 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
505 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
506 <h5>Cannot check in</h5>
507 <p><strong>NOT CHECKED IN</strong></p>
509 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
512 [% IF ( errmsgloo.withdrawn ) %]
513 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
514 <h5>Cannot check in</h5>
515 <p><strong>NOT CHECKED IN</strong></p>
517 <p class="problem">Item is withdrawn.</p>
519 [% IF ( errmsgloo.debarred ) %]
520 <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>
522 [% IF ( errmsgloo.prevdebarred ) %]
523 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
525 [% IF ( errmsgloo.foreverdebarred ) %]
526 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
529 [% IF errmsgloo.data_corrupted %]
530 <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>
536 [% IF ( checkinmsg ) %]
537 [% IF ( checkinmsgtype == 'alert' ) %]
538 <div class="dialog alert">
540 <div class="dialog message">
542 <p class="problem">[% checkinmsg | html_line_break %]</p>
546 <div id="exemptfines" class="dialog message" style="display:none;">
547 <p>Fines for returned items are forgiven.</p>
549 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
550 <p>Fines are not charged for manually cancelled holds.</p>
552 <div id="dropboxmode" class="dialog message" style="display:none;">
553 <p>Book drop mode. (Effective checkin date is [% dropboxdate | html %] ).</p>
557 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
558 <div class="yui-u first">
560 <legend>Check in</legend>
561 <label for="barcode">Enter item barcode: </label>
562 [% IF ( exemptfine ) %]
563 <input name="barcode" id="barcode" size="14" class="focus alert"/>
564 [% ELSIF ( dropboxmode ) %]
565 <input name="barcode" id="barcode" size="14" class="focus alert"/>
567 <input name="barcode" id="barcode" size="14" class="focus"/>
569 <input type="submit" class="submit" value="Submit" />
571 [% IF Koha.Preference('SpecifyReturnDate') %]
572 <div class="date-select" id="return_date_override_fields">
573 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
575 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
577 <label for="return_date_override_remember"> Remember for next check in:</label>
578 [% IF ( return_date_override_remember ) %]
579 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
581 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
584 <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;" />
587 [% FOREACH inputloo IN inputloop %]
588 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
589 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
590 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
597 <fieldset id="checkin_options">
598 <legend>Options</legend>
599 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
601 [% IF ( exemptfine ) %]
602 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
604 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
606 <label for="exemptcheck">Forgive overdue charges</label>
608 [% END %] <!-- overduecharges -->
610 [% IF ( dropboxmode ) %]
611 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
613 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
615 <label for="dropboxcheck">Book drop mode</label>
617 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
619 [% IF ( forgivemanualholdsexpire ) %]
620 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
622 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
624 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
626 [% END %] <!-- overduecharges -->
633 <h2>Checked-in items</h2>
634 <table id="checkedintable">
635 <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>
637 [% FOREACH riloo IN riloop %]
639 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
640 [% IF ( riloo.return_overdue ) %]
641 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
642 [% ELSE %][% riloo.duedate | html %]
644 [% ELSE %]Not checked out
647 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | html %]">
648 [% riloo.itemtitle | html %]
650 [% IF ( riloo.enumchron ) %]
652 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
655 <td class="ci-author">[% riloo.itemauthor | html %]</td>
656 <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>
657 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
658 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
659 <td class="ci-shelvinglocation">[% riloo.location | html %]</td>
660 <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
661 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
662 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
663 <td class="ci-patron">[% IF ( riloo.duedate ) %]
664 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">
665 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
667 [% IF riloo.borissuescount %]
668 <span class="results_summary nowrap">
669 <span class="label">Checkouts:</span>
670 <span class="number_box">
671 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">[% riloo.borissuescount | html %]</a>
675 [% ELSE %]Not checked out[% END %]</td>
677 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
678 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
679 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
686 [% IF Koha.Preference('CircSidebar') %]
688 <div class="yui-b noprint">
689 [% INCLUDE 'circ-nav.inc' %]
696 [% MACRO jsinclude BLOCK %]
697 [% INCLUDE 'datatables.inc' %]
698 [% INCLUDE 'columns_settings.inc' %]
699 [% INCLUDE 'calendar.inc' %]
700 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
701 [% INCLUDE 'timepicker.inc' %]
703 <script type="text/javascript">
704 function Dopop(link) {
705 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
706 $("#barcode").focus();
708 $(document).ready(function () {
709 $(".modal").modal({ backdrop: 'static' }).on('shown', function() {
710 $("#barcode").prop("disabled", true);
711 }).on('hidden', function() {
712 $("#barcode").prop("disabled", false).focus();
715 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
718 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
721 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
722 var returns_table = KohaTable("checkedintable", {
727 "dom": 'B<"clearfix">t',
728 }, columns_settings);
730 $("#return_date_override").datetimepicker({
731 onClose: function(dateText, inst) {
732 if (validate_date(dateText, inst) ) {
733 $("#barcode").focus();
740 }).on("change", function(e, value) {
741 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
743 $("#return_date_override").on("blur", function() {
744 check_valid_return_date();
746 $("#checkin-form").submit(function( event ) {
747 if ( !check_valid_return_date() ) {
748 event.preventDefault();
752 function check_valid_return_date() {
753 if ( $("#return_date_override").val() ) {
754 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
755 var now = new Date();
756 if ( !datetime || datetime > now ) {
757 alert("Invalid return date/time!");
758 $("#return_date_override").val("")
765 $("#exemptcheck").change(function () {
766 if (this.checked == true) {
767 $("#barcode").addClass("alert");
768 $("#exemptfines").show();
770 $("#barcode").removeClass("alert");
771 $("#exemptfines").hide();
773 $("#barcode").focus();
775 $("#dropboxcheck").change(function () {
776 if (this.checked == true) {
777 $("#barcode").addClass("alert");
778 $("#dropboxmode").show();
780 $("#return_date_override_fields :input").prop('disabled', true);
781 $("#return_date_override").datetimepicker("disable");
783 $("#barcode").removeClass("alert");
784 $("#dropboxmode").hide();
786 $("#return_date_override_fields :input").prop('disabled', false);
787 $("#return_date_override").datetimepicker("enable");
789 $("#barcode").focus();
791 $("#forgivemanualholdsexpire").change(function () {
792 if (this.checked == true) {
793 $("#barcode").addClass("alert");
794 $("#forgivemanualholdsexpire-alert").show();
796 $("#barcode").removeClass("alert");
797 $("#forgivemanualholdsexpire-alert").hide();
799 $("#barcode").focus();
802 [% IF(overduecharges) %]
803 $("#barcode").focus(function () {
804 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
805 $("#barcode").addClass("alert");
807 $("#barcode").removeClass("alert");
810 $("#barcode").blur(function () {
811 $("#barcode").removeClass("alert");
815 $('.openWin').on("click",function(e){
816 Dopop( $(this).data("url") );
822 [% INCLUDE 'intranet-bottom.inc' %]