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 hold_auto_filled %]
56 <div class="dialog alert hold-auto-filled">
57 [% IF ( reservenotes ) %]
58 <h4>Notes: [% reservenotes %]</h4>
60 <h3>Hold filled for:</h3>
62 [% INCLUDE 'patron-title.inc' patron=patron %]
63 <span class="patron-category"> - [% patron.category.description %]</span>
66 [% INCLUDE display_holdpatron_address %]
68 [% IF ( patron.phone ) %]
69 <li>[% patron.phone %]</li>
72 [% IF ( patron.email ) %]
74 [% IF ( transfertodo ) %]
77 <a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a>
82 [% UNLESS ( transfertodo) %]
83 [% INCLUDE display_bormessagepref %]
86 [% IF ( patron.debarred ) %]
87 <li class="error">Patron is RESTRICTED</li>
90 [% IF ( patron.gonenoaddress ) %]
91 <li class="error">Patron's address is in doubt</li>
94 [% IF ( transfertodo ) %]
95 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
97 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
100 <a href="#" class="btn btn-default print print-slip">
101 <i class="fa fa-print"></i> Print
106 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
107 <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>
108 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
109 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
112 [% IF additional_materials %]
113 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
114 [% additional_materials | html %]
118 [% IF ( collectionItemNeedsTransferred ) %]
119 <div id="rotating-collection" class="dialog message">
120 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
121 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
122 <p>This item is part of a rotating collection.</p>
123 <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>
127 <!-- Patron has added an issue note -->
128 [% IF ( issue.note) %]
129 <div class="dialog message">
131 <p>[% issue.notedate | $KohaDates %]</p>
132 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | html %]"> [% title | html %]</a> [% author | html %]</p>
133 <p>[% issue.note | html %]</p>
137 <!-- Patron has fines -->
139 <div class="dialog alert">
140 <h3>Patron has outstanding fines of [% fines | html %].</h3>
141 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | html %]">Make payment</a>.</p>
145 <!-- Patron has waiting holds -->
146 [% IF ( waiting_holds ) %]
147 <div id="awaiting-pickup" class="dialog message">
148 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
149 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | html %]">Check out to this patron</a>.</p>
153 <!-- Patron is restricted and checkin was backdated -->
154 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
155 <div id="restricted_backdated" class="dialog message">
157 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">
158 [% patron.firstname | html %] [% patron.surname | html %]
160 is restricted. Please verify this patron should still be restricted.
165 [% IF ( wrongbranch ) %]
166 <div class="dialog alert"><h3>Cannot check in</h3>
167 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
168 </p><strong>NOT CHECKED IN</strong></p>
169 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) | html %]</strong></p>
173 <!-- case of a mistake in transfer loop -->
174 [% IF ( WrongTransfer ) %]
175 <div id="return2" class="dialog message">
176 <!-- WrongTransfer -->
177 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]</h3>
178 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
179 <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>
180 <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>
181 [% IF ( patron.cardnumber ) %]<h5>Hold for:</h5>
183 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">
184 [% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
185 [% INCLUDE display_holdpatron_address %]
186 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
187 [% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>[% END %]
190 <form method="post" action="returns.pl" class="confirm">
191 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem | html %]" />
192 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt | html %]" />
193 <input type="hidden" name="WT-From" value="[% wtransfertFrom | html %]" />
194 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
195 <input type="hidden" name="print_slip" value="0" />
196 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
197 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
198 <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>
199 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
200 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
207 <div id="hold-found1" class="modal fade audio-alert-action">
208 <div class="modal-dialog">
209 <div class="modal-content">
210 <form method="post" action="returns.pl" class="confirm">
211 <div class="modal-header">
213 Hold found (item is already waiting):
215 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">
216 [% itembarcode | html %]: [% title | html %]
221 <div class="modal-body">
222 [% IF ( reservenotes ) %]
223 <h4>Notes: [% reservenotes | html %]</h4>
229 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
230 <span class="patron-category"> - [% patron.category.description | html %]</span>
232 [% INCLUDE display_holdpatron_address %]
233 [% IF ( patron.phone ) %]
234 <li> [% patron.phone | html %]</li>
237 [% IF ( patron.email ) %]
238 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
241 [% IF ( patron.debarred ) %]
242 <li class="error">Patron is RESTRICTED</li>
245 [% IF ( patron.gonenoaddress ) %]
246 <li class="error">Patron's address is in doubt</li>
250 [% IF ( transfertodo ) %]
251 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
253 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
256 [% FOREACH inputloo IN inputloop %]
257 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
258 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
259 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
262 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
263 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
264 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
265 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
266 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
267 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
268 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
269 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
271 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
272 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
275 <div class="modal-footer">
276 <input type="hidden" name="cancel_reserve" value="0" />
278 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
279 <i class="fa fa-check"></i> Confirm
282 <input type="hidden" name="print_slip" value="0" />
283 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
284 <i class="fa fa-print"></i> Print and confirm
287 <button type="submit" class="btn btn-default deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
288 <i class="fa fa-times"></i> Cancel hold
297 [% IF ( diffbranch ) %]
299 <div id="transfer-needed" class="dialog message audio-alert-action">
300 <h3>Hold needing transfer found</h3>
301 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
304 <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>
305 [% INCLUDE display_holdpatron_address %]
306 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
307 [% 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 %]
308 [% IF ( patron.debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
309 [% IF ( patron.gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
311 [% IF ( transfertodo ) %]
312 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
314 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
317 <form method="post" action="returns.pl" class="confirm">
318 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
319 <input type="hidden" name="print_slip" value="0" />
320 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
321 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
322 <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>
323 [% FOREACH inputloo IN inputloop %]
324 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
325 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
326 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
328 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
329 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
330 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
331 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
332 <input type="hidden" name="barcode" value="0" />
334 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
335 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
340 [% IF ( transfer ) %]
341 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
342 <div id="return1" class="dialog message audio-alert-action">
343 <h3>Please return item to: [% Branches.GetName( returnbranch ) | html %]</h3>
344 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
345 <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>
349 [% IF ( needstransfer ) %]
350 <!-- needstransfer -->
351 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) | html %]</h3>
353 <form method="post" action="returns.pl" name="mainform" id="mainform">
355 <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>
357 <button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
358 <button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
359 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
360 <input type="hidden" name="transferitem" value="[% itemnumber | 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 [% FOREACH inputloo IN inputloop %]
365 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
366 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
367 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
369 <input type="hidden" name="barcode" value="0" />
370 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
371 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
375 [% IF ( diffbranch ) %]
377 <h3 class="audio-alert-action">Item consigned:</h3>
379 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% title | html %]</a></caption>
382 <td>[% INCLUDE 'patron-title.inc' patron=patron %]</td>
385 <form method="post" action="returns.pl"><input type="submit" value="OK" />
386 [% FOREACH inputloo IN inputloop %]
387 [% UNLESS ( inputloo.first ) %]
388 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
389 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
390 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
394 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
395 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
397 <input type="hidden" name="barcode" value="0" />
402 <!-- case of simple return no issue or transfer but with a reservation -->
403 [% IF ( reserved ) %]
405 <div id="hold-found2" class="modal fade audio-alert-action">
406 <div class="modal-dialog">
407 <div class="modal-content">
408 <form method="post" action="returns.pl" class="confirm">
409 <div class="modal-header">
413 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">
414 [% itembarcode | html %]: [% title | html %]
418 <div class="modal-body">
419 [% IF ( reservenotes ) %]
420 <h4>Notes: [% reservenotes | html %]</h4>
424 [% INCLUDE 'patron-title.inc' patron=patron %]
425 <span class="patron-category"> - [% patron.category.description | html %]</span>
428 [% INCLUDE display_holdpatron_address %]
430 [% IF ( patron.phone ) %]
431 <li>[% patron.phone | html %]</li>
434 [% IF ( patron.email ) %]
436 [% IF ( transfertodo ) %]
437 [% patron.email | html %]
439 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
444 [% UNLESS ( transfertodo) %]
445 [% INCLUDE display_bormessagepref %]
448 [% IF ( patron.debarred ) %]
449 <li class="error">Patron is RESTRICTED</li>
452 [% IF ( patron.gonenoaddress ) %]
453 <li class="error">Patron's address is in doubt</li>
456 [% IF ( transfertodo ) %]
457 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
459 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
462 <input type="hidden" name="print_slip" value="0" />
465 [% FOREACH inputloo IN inputloop %]
466 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
467 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
468 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
471 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
472 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
473 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
474 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
475 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
476 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
477 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
478 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
479 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
480 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
483 <div class="modal-footer">
484 [% IF ( transfertodo ) %]
485 <button type="submit" class="btn btn-default approve">
486 <i class="fa fa-check"></i> Confirm hold and transfer
488 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit()">
489 <i class="fa fa-print"></i> Print slip, transfer, and confirm
492 <button type="submit" class="btn btn-default approve">
493 <i class="fa fa-check"></i> Confirm hold
495 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
496 <i class="fa fa-print"></i> Print slip and confirm
500 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('#barcode').focus(); return false;">
501 <i class="fa fa-times"></i> Ignore
511 [% IF ( errmsgloop ) %]
512 <div class="dialog alert audio-alert-warning">
513 <h3>Check in message</h3>
514 [% IF itembiblionumber %]
515 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | html %]">[% itembarcode | html %]: [% title | html %]</a></p>
517 [% FOREACH errmsgloo IN errmsgloop %]
518 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
520 Not for loan status updated.
522 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
523 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
528 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
529 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
535 [% IF ( errmsgloo.badbarcode ) %]
536 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
538 [% IF ( errmsgloo.ispermanent ) %]
539 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
541 [% IF ( errmsgloo.notissued ) %]
542 <p class="problem">Not checked out.</p>
544 [% IF ( errmsgloo.localuse) %]
545 <p class="problem">Local use recorded</p>
547 [% IF ( errmsgloo.waslost ) %]
548 [% IF Koha.Preference('BlockReturnOfLostItems') %]
549 <p class="problem">Item is lost, cannot be checked in.</p>
551 <p class="problem">Item was lost, now found.</p>
554 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
555 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
556 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
557 <h5>Cannot check in</h5>
558 <p><strong>NOT CHECKED IN</strong></p>
560 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
563 [% IF ( errmsgloo.withdrawn ) %]
564 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
565 <h5>Cannot check in</h5>
566 <p><strong>NOT CHECKED IN</strong></p>
568 <p class="problem">Item is withdrawn.</p>
570 [% IF ( errmsgloo.debarred ) %]
571 <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>
573 [% IF ( errmsgloo.prevdebarred ) %]
574 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
576 [% IF ( errmsgloo.foreverdebarred ) %]
577 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
580 [% IF errmsgloo.data_corrupted %]
581 <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>
587 [% IF ( checkinmsg ) %]
588 [% IF ( checkinmsgtype == 'alert' ) %]
589 <div class="dialog alert">
591 <div class="dialog message">
593 <p class="problem">[% checkinmsg | html_line_break %]</p>
597 <div id="exemptfines" class="dialog message" style="display:none;">
598 <p>Fines for returned items are forgiven.</p>
600 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
601 <p>Fines are not charged for manually cancelled holds.</p>
603 <div id="dropboxmode" class="dialog message" style="display:none;">
604 <p>Book drop mode. (Effective checkin date is [% dropboxdate | html %] ).</p>
608 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
609 <div class="yui-u first">
611 <legend>Check in</legend>
612 <label for="barcode">Enter item barcode: </label>
613 [% IF ( exemptfine ) %]
614 <input name="barcode" id="barcode" size="14" class="focus alert"/>
615 [% ELSIF ( dropboxmode ) %]
616 <input name="barcode" id="barcode" size="14" class="focus alert"/>
618 <input name="barcode" id="barcode" size="14" class="focus"/>
620 <input type="submit" class="submit" value="Submit" />
622 [% IF Koha.Preference('SpecifyReturnDate') %]
623 <div class="date-select" id="return_date_override_fields">
624 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
626 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
628 <label for="return_date_override_remember"> Remember for next check in:</label>
629 [% IF ( return_date_override_remember ) %]
630 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
632 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
635 <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;" />
638 [% FOREACH inputloo IN inputloop %]
639 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
640 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
641 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
648 <fieldset id="checkin_options">
649 <legend>Options</legend>
650 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
652 [% IF ( exemptfine ) %]
653 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
655 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
657 <label for="exemptcheck">Forgive overdue charges</label>
659 [% END %] <!-- overduecharges -->
661 [% IF ( dropboxmode ) %]
662 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
664 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
666 <label for="dropboxcheck">Book drop mode</label>
668 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
670 [% IF ( forgivemanualholdsexpire ) %]
671 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
673 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
675 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
677 [% END %] <!-- overduecharges -->
684 <h2>Checked-in items</h2>
685 <table id="checkedintable">
686 <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>
688 [% FOREACH riloo IN riloop %]
690 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
691 [% IF ( riloo.return_overdue ) %]
692 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
693 [% ELSE %][% riloo.duedate | html %]
695 [% ELSE %]Not checked out
698 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | html %]">
699 [% riloo.itemtitle | html %]
701 [% IF ( riloo.enumchron ) %]
703 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
706 <td class="ci-author">[% riloo.itemauthor | html %]</td>
707 <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>
708 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
709 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
710 <td class="ci-shelvinglocation">[% riloo.location | html %]</td>
711 <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
712 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
713 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
714 <td class="ci-patron">[% IF ( riloo.duedate ) %]
715 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">
716 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
718 [% IF riloo.borissuescount %]
719 <span class="results_summary nowrap">
720 <span class="label">Checkouts:</span>
721 <span class="number_box">
722 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | html %]">[% riloo.borissuescount | html %]</a>
726 [% ELSE %]Not checked out[% END %]</td>
728 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
729 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
730 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
737 [% IF Koha.Preference('CircSidebar') %]
739 <div class="yui-b noprint">
740 [% INCLUDE 'circ-nav.inc' %]
747 [% MACRO jsinclude BLOCK %]
748 [% INCLUDE 'datatables.inc' %]
749 [% INCLUDE 'columns_settings.inc' %]
750 [% INCLUDE 'calendar.inc' %]
751 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
752 [% INCLUDE 'timepicker.inc' %]
754 <script type="text/javascript">
755 function Dopop(link) {
756 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
757 $("#barcode").focus();
759 $(document).ready(function () {
760 $(".modal").modal({ backdrop: 'static' }).on('shown', function() {
761 $("#barcode").prop("disabled", true);
762 }).on('hidden', function() {
763 $("#barcode").prop("disabled", false).focus();
766 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
768 $(".print-slip").on('click', function(e) {
770 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber %]&biblionumber=[% biblionumber %]');
774 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
777 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
778 var returns_table = KohaTable("checkedintable", {
783 "dom": 'B<"clearfix">t',
784 }, columns_settings);
786 $("#return_date_override").datetimepicker({
787 onClose: function(dateText, inst) {
788 if (validate_date(dateText, inst) ) {
789 $("#barcode").focus();
796 }).on("change", function(e, value) {
797 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
799 $("#return_date_override").on("blur", function() {
800 check_valid_return_date();
802 $("#checkin-form").submit(function( event ) {
803 if ( !check_valid_return_date() ) {
804 event.preventDefault();
808 function check_valid_return_date() {
809 if ( $("#return_date_override").val() ) {
810 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
811 var now = new Date();
812 if ( !datetime || datetime > now ) {
813 alert("Invalid return date/time!");
814 $("#return_date_override").val("")
821 $("#exemptcheck").change(function () {
822 if (this.checked == true) {
823 $("#barcode").addClass("alert");
824 $("#exemptfines").show();
826 $("#barcode").removeClass("alert");
827 $("#exemptfines").hide();
829 $("#barcode").focus();
831 $("#dropboxcheck").change(function () {
832 if (this.checked == true) {
833 $("#barcode").addClass("alert");
834 $("#dropboxmode").show();
836 $("#return_date_override_fields :input").prop('disabled', true);
837 $("#return_date_override").datetimepicker("disable");
839 $("#barcode").removeClass("alert");
840 $("#dropboxmode").hide();
842 $("#return_date_override_fields :input").prop('disabled', false);
843 $("#return_date_override").datetimepicker("enable");
845 $("#barcode").focus();
847 $("#forgivemanualholdsexpire").change(function () {
848 if (this.checked == true) {
849 $("#barcode").addClass("alert");
850 $("#forgivemanualholdsexpire-alert").show();
852 $("#barcode").removeClass("alert");
853 $("#forgivemanualholdsexpire-alert").hide();
855 $("#barcode").focus();
858 [% IF(overduecharges) %]
859 $("#barcode").focus(function () {
860 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
861 $("#barcode").addClass("alert");
863 $("#barcode").removeClass("alert");
866 $("#barcode").blur(function () {
867 $("#barcode").removeClass("alert");
871 $('.openWin').on("click",function(e){
872 Dopop( $(this).data("url") );
878 [% INCLUDE 'intranet-bottom.inc' %]