7 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
10 [% BLOCK display_bormessagepref %]
11 [% IF ( bormessagepref ) %]
12 <li>Patron notification:
13 [% FOREACH mtt IN bormessagepref.keys %]
14 [%~ IF ( mtt == 'email' ) %] Email[% END ~%]
15 [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%]
16 [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%]
17 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
21 <li>Patron is not notified.</li>
25 [% BLOCK display_holdpatron_address %]
26 [% IF Koha.Preference( 'AddressFormat' ) %]
27 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
29 [% INCLUDE 'member-display-address-style-us.inc' %]
33 [% INCLUDE 'doc-head-open.inc' %]
34 <title>Koha › Circulation › Check in [% title |html %]</title>
35 [% Asset.css("css/datatables.css") %]
36 [% INCLUDE 'doc-head-close.inc' %]
39 <body id="circ_returns" class="circ">
40 <span class="audio-alert-success"></span>
42 [% INCLUDE 'header.inc' %]
43 [% INCLUDE 'checkin-search.inc' %]
45 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Check in</div>
47 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
51 [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
54 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
55 <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>
56 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
57 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
60 [% IF additional_materials %]
61 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
62 [% additional_materials %]
66 [% IF ( collectionItemNeedsTransferred ) %]
67 <div id="rotating-collection" class="dialog message">
68 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) %]</h3>
69 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
70 <p>This item is part of a rotating collection.</p>
71 <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% collectionBranch %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
75 <!-- Patron has added an issue note -->
76 [% IF ( issue.note) %]
77 <div class="dialog message">
79 <p>[% issue.notedate | $KohaDates %]</p>
80 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]"> [% title |html %]</a> [% author %]</p>
81 <p>[% issue.note | html %]</p>
85 <!-- Patron has fines -->
87 <div class="dialog alert">
88 <h3>Patron has outstanding fines of [% fines %].</h3>
89 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
93 <!-- Patron has waiting holds -->
94 [% IF ( waiting_holds ) %]
95 <div id="awaiting-pickup" class="dialog message">
96 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
97 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
101 <!-- Patron is restricted and checkin was backdated -->
102 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
103 <div id="restricted_backdated" class="dialog message">
105 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">
106 [% patron.firstname %] [% patron.surname %]
108 is restricted. Please verify this patron should still be restricted.
113 [% IF ( wrongbranch ) %]
114 <div class="dialog alert"><h3>Cannot check in</h3>
115 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
116 </p><strong>NOT CHECKED IN</strong></p>
117 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) %]</strong></p>
121 <!-- case of a mistake in transfer loop -->
122 [% IF ( WrongTransfer ) %]
123 <div id="return2" class="dialog message">
124 <!-- WrongTransfer -->
125 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) %]</h3>
126 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
127 <button type="submit" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% TransferWaitingAt %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
128 <button class="deny" type="submit" onclick="window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&canceltransfer=1'"><i class="fa fa-times"></i> Cancel transfer</button>
129 [% IF ( patron.cardnumber ) %]<h5>Hold for:</h5>
131 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">
132 [% patron.surname %], [% patron.firstname %]</a> ([% patron.cardnumber %]) <span class="patron-category"> - [% patron.category.description %]</span> </li>
133 [% INCLUDE display_holdpatron_address %]
134 [% IF ( patron.phone ) %]<li>[% patron.phone %]</li>[% END %]
135 [% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a></li>[% END %]
138 <form method="post" action="returns.pl" class="confirm">
139 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
140 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
141 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
142 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
143 <input type="hidden" name="print_slip" value="0" />
144 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
145 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
146 <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>
147 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
148 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
155 <div id="hold-found1" class="modal fade audio-alert-action">
156 <div class="modal-dialog">
157 <div class="modal-content">
158 <form method="post" action="returns.pl" class="confirm">
159 <div class="modal-header">
161 Hold found (item is already waiting):
163 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
164 [% itembarcode |html %]: [% title |html %]
169 <div class="modal-body">
170 [% IF ( reservenotes ) %]
171 <h4>Notes: [% reservenotes %]</h4>
177 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.surname %], [% patron.firstname %]</a> ([% patron.cardnumber %])
178 <span class="patron-category"> - [% patron.category.description %]</span>
180 [% INCLUDE display_holdpatron_address %]
181 [% IF ( patron.phone ) %]
182 <li> [% patron.phone %]</li>
185 [% IF ( patron.email ) %]
186 <li><a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a></li>
189 [% IF ( patron.debarred ) %]
190 <li class="error">Patron is RESTRICTED</li>
193 [% IF ( patron.gonenoaddress ) %]
194 <li class="error">Patron's address is in doubt</li>
198 [% IF ( transfertodo ) %]
199 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
201 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
204 [% FOREACH inputloo IN inputloop %]
205 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
206 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
207 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
210 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
211 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
212 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
213 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
214 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
215 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
216 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
217 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
219 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
220 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
223 <div class="modal-footer">
224 <input type="hidden" name="cancel_reserve" value="0" />
226 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
227 <i class="fa fa-check"></i> Confirm
230 <input type="hidden" name="print_slip" value="0" />
231 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
232 <i class="fa fa-print"></i> Print and confirm
235 <button type="submit" class="btn btn-default deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
236 <i class="fa fa-times"></i> Cancel hold
245 [% IF ( diffbranch ) %]
247 <div id="transfer-needed" class="dialog message audio-alert-action">
248 <h3>Hold needing transfer found</h3>
249 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
252 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.surname %], [% patron.firstname %]</a> ([% patron.cardnumber %]) <span class="patron-category"> - [% patron.category.description %]</span> </li>
253 [% INCLUDE display_holdpatron_address %]
254 [% IF ( patron.phone ) %]<li>[% patron.phone %]</li>[% END %]
255 [% IF ( patron.email ) %]<li>[% IF ( transfertodo ) %][% patron.email %][% ELSE %]<a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a>[% END %]</li>[% END %]
256 [% IF ( patron.debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
257 [% IF ( patron.gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
259 [% IF ( transfertodo ) %]
260 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
262 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
265 <form method="post" action="returns.pl" class="confirm">
266 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
267 <input type="hidden" name="print_slip" value="0" />
268 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
269 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
270 <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>
271 [% FOREACH inputloo IN inputloop %]
272 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
273 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
274 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
276 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
277 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
278 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
279 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
280 <input type="hidden" name="barcode" value="0" />
282 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
283 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
288 [% IF ( transfer ) %]
289 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
290 <div id="return1" class="dialog message audio-alert-action">
291 <h3>Please return item to: [% Branches.GetName( returnbranch ) %]</h3>
292 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
293 <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% returnbranch %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
297 [% IF ( needstransfer ) %]
298 <!-- needstransfer -->
299 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) %]</h3>
301 <form method="post" action="returns.pl" name="mainform" id="mainform">
303 <button type="submit" name="dotransfer" value="Yes" class="print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% returnbranch %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
305 <button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
306 <button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
307 <input type="hidden" name="tobranch" value="[% returnbranch %]" />
308 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
309 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
310 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
311 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
312 [% FOREACH inputloo IN inputloop %]
313 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
314 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
315 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
317 <input type="hidden" name="barcode" value="0" />
318 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
319 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
323 [% IF ( diffbranch ) %]
325 <h3 class="audio-alert-action">Item consigned:</h3>
327 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
330 <td>[% INCLUDE 'patron-title.inc' patron=patron %]</td>
333 <form method="post" action="returns.pl"><input type="submit" value="OK" />
334 [% FOREACH inputloo IN inputloop %]
335 [% UNLESS ( inputloo.first ) %]
336 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
337 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
338 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
342 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
343 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
345 <input type="hidden" name="barcode" value="0" />
350 <!-- case of simple return no issue or transfer but with a reservation -->
351 [% IF ( reserved ) %]
353 <div id="hold-found2" class="modal fade audio-alert-action">
354 <div class="modal-dialog">
355 <div class="modal-content">
356 <form method="post" action="returns.pl" class="confirm">
357 <div class="modal-header">
361 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
362 [% itembarcode |html %]: [% title |html %]
366 <div class="modal-body">
367 [% IF ( reservenotes ) %]
368 <h4>Notes: [% reservenotes %]</h4>
372 [% INCLUDE 'patron-title.inc' patron=patron %]
373 <span class="patron-category"> - [% patron.category.description %]</span>
376 [% INCLUDE display_holdpatron_address %]
378 [% IF ( patron.phone ) %]
379 <li>[% patron.phone %]</li>
382 [% IF ( patron.email ) %]
384 [% IF ( transfertodo ) %]
387 <a id="boremail" href="mailto:[% patron.email %]">[% patron.email %]</a>
392 [% UNLESS ( transfertodo) %]
393 [% INCLUDE display_bormessagepref %]
396 [% IF ( patron.debarred ) %]
397 <li class="error">Patron is RESTRICTED</li>
400 [% IF ( patron.gonenoaddress ) %]
401 <li class="error">Patron's address is in doubt</li>
404 [% IF ( transfertodo ) %]
405 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
407 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
410 <input type="hidden" name="print_slip" value="0" />
413 [% FOREACH inputloo IN inputloop %]
414 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
415 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
416 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
419 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
420 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
421 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
422 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
423 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
424 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
425 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
426 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
427 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
428 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
431 <div class="modal-footer">
432 [% IF ( transfertodo ) %]
433 <button type="submit" class="btn btn-default approve">
434 <i class="fa fa-check"></i> Confirm hold and transfer
436 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit()">
437 <i class="fa fa-print"></i> Print slip, transfer, and confirm
440 <button type="submit" class="btn btn-default approve">
441 <i class="fa fa-check"></i> Confirm hold
443 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
444 <i class="fa fa-print"></i> Print slip and confirm
448 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('#barcode').focus(); return false;">
449 <i class="fa fa-times"></i> Ignore
459 [% IF ( errmsgloop ) %]
460 <div class="dialog alert audio-alert-warning">
461 <h3>Check in message</h3>
462 [% IF itembiblionumber %]
463 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
465 [% FOREACH errmsgloo IN errmsgloop %]
466 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
468 Not for loan status updated.
470 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
471 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
476 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
477 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
483 [% IF ( errmsgloo.badbarcode ) %]
484 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
486 [% IF ( errmsgloo.ispermanent ) %]
487 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) %]</p>
489 [% IF ( errmsgloo.notissued ) %]
490 <p class="problem">Not checked out.</p>
492 [% IF ( errmsgloo.localuse) %]
493 <p class="problem">Local use recorded</p>
495 [% IF ( errmsgloo.waslost ) %]
496 [% IF Koha.Preference('BlockReturnOfLostItems') %]
497 <p class="problem">Item is lost, cannot be checked in.</p>
499 <p class="problem">Item was lost, now found.</p>
502 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
503 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
504 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
505 <h5>Cannot check in</h5>
506 <p><strong>NOT CHECKED IN</strong></p>
508 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
511 [% IF ( errmsgloo.withdrawn ) %]
512 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
513 <h5>Cannot check in</h5>
514 <p><strong>NOT CHECKED IN</strong></p>
516 <p class="problem">Item is withdrawn.</p>
518 [% IF ( errmsgloo.debarred ) %]
519 <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber %]">[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
521 [% IF ( errmsgloo.prevdebarred ) %]
522 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
524 [% IF ( errmsgloo.foreverdebarred ) %]
525 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
528 [% IF errmsgloo.data_corrupted %]
529 <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>
535 [% IF ( checkinmsg ) %]
536 [% IF ( checkinmsgtype == 'alert' ) %]
537 <div class="dialog alert">
539 <div class="dialog message">
541 <p class="problem">[% checkinmsg | html_line_break %]</p>
545 <div id="exemptfines" class="dialog message" style="display:none;">
546 <p>Fines for returned items are forgiven.</p>
548 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
549 <p>Fines are not charged for manually cancelled holds.</p>
551 <div id="dropboxmode" class="dialog message" style="display:none;">
552 <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
556 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
557 <div class="yui-u first">
559 <legend>Check in</legend>
560 <label for="barcode">Enter item barcode: </label>
561 [% IF ( exemptfine ) %]
562 <input name="barcode" id="barcode" size="14" class="focus alert"/>
563 [% ELSIF ( dropboxmode ) %]
564 <input name="barcode" id="barcode" size="14" class="focus alert"/>
566 <input name="barcode" id="barcode" size="14" class="focus"/>
568 <input type="submit" class="submit" value="Submit" />
570 [% IF Koha.Preference('SpecifyReturnDate') %]
571 <div class="date-select" id="return_date_override_fields">
572 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
574 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" />
576 <label for="return_date_override_remember"> Remember for next check in:</label>
577 [% IF ( return_date_override_remember ) %]
578 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
580 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
583 <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;" />
586 [% FOREACH inputloo IN inputloop %]
587 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
588 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
589 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
596 <fieldset id="checkin_options">
597 <legend>Options</legend>
598 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
600 [% IF ( exemptfine ) %]
601 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
603 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
605 <label for="exemptcheck">Forgive overdue charges</label>
607 [% END %] <!-- overduecharges -->
609 [% IF ( dropboxmode ) %]
610 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
612 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
614 <label for="dropboxcheck">Book drop mode</label>
616 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
618 [% IF ( forgivemanualholdsexpire ) %]
619 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
621 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
623 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
625 [% END %] <!-- overduecharges -->
632 <h2>Checked-in items</h2>
633 <table id="checkedintable">
634 <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>
636 [% FOREACH riloo IN riloop %]
638 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
639 [% IF ( riloo.return_overdue ) %]
640 <span class="overdue">[% riloo.duedate %] (overdue)</span>
641 [% ELSE %][% riloo.duedate %]
643 [% ELSE %]Not checked out
646 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
647 [% riloo.itemtitle |html %]
649 [% IF ( riloo.enumchron ) %]
651 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
654 <td class="ci-author">[% riloo.itemauthor %]</td>
655 <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
656 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) %]</td>
657 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) %]</td>
658 <td class="ci-shelvinglocation">[% riloo.location %]</td>
659 <td class="ci-callnumber">[% riloo.itemcallnumber %]</td>
660 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
661 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %]</td>
662 <td class="ci-patron">[% IF ( riloo.duedate ) %]
663 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber %]">
664 [% riloo.patron.surname %], [% riloo.patron.firstname %] ([% riloo.patron.category.description %])
666 [% IF riloo.borissuescount %]
667 <span class="results_summary nowrap">
668 <span class="label">Checkouts:</span>
669 <span class="number_box">
670 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber %]">[% riloo.borissuescount %]</a>
674 [% ELSE %]Not checked out[% END %]</td>
676 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes %]</p></span>[% END %]
677 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote %]</p></span>[% END %]
678 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic %]</p></span>[% END %]
685 [% IF Koha.Preference('CircSidebar') %]
687 <div class="yui-b noprint">
688 [% INCLUDE 'circ-nav.inc' %]
695 [% MACRO jsinclude BLOCK %]
696 [% INCLUDE 'datatables.inc' %]
697 [% INCLUDE 'columns_settings.inc' %]
698 [% INCLUDE 'calendar.inc' %]
699 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") %]
700 [% INCLUDE 'timepicker.inc' %]
702 <script type="text/javascript">
703 function Dopop(link) {
704 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
705 $("#barcode").focus();
707 $(document).ready(function () {
708 $(".modal").modal({ backdrop: 'static' }).on('shown', function() {
709 $("#barcode").prop("disabled", true);
710 }).on('hidden', function() {
711 $("#barcode").prop("disabled", false).focus();
714 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
717 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]&itemnumber=[% itemnumber %]');
720 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %]
721 var returns_table = KohaTable("checkedintable", {
726 "dom": 'B<"clearfix">t',
727 }, columns_settings);
729 $("#return_date_override").datetimepicker({
730 onClose: function(dateText, inst) {
731 if (validate_date(dateText, inst) ) {
732 $("#barcode").focus();
739 }).on("change", function(e, value) {
740 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
742 $("#return_date_override").on("blur", function() {
743 check_valid_return_date();
745 $("#checkin-form").submit(function( event ) {
746 if ( !check_valid_return_date() ) {
747 event.preventDefault();
751 function check_valid_return_date() {
752 if ( $("#return_date_override").val() ) {
753 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
754 var now = new Date();
755 if ( !datetime || datetime > now ) {
756 alert("Invalid return date/time!");
757 $("#return_date_override").val("")
764 $("#exemptcheck").change(function () {
765 if (this.checked == true) {
766 $("#barcode").addClass("alert");
767 $("#exemptfines").show();
769 $("#barcode").removeClass("alert");
770 $("#exemptfines").hide();
772 $("#barcode").focus();
774 $("#dropboxcheck").change(function () {
775 if (this.checked == true) {
776 $("#barcode").addClass("alert");
777 $("#dropboxmode").show();
779 $("#return_date_override_fields :input").prop('disabled', true);
780 $("#return_date_override").datetimepicker("disable");
782 $("#barcode").removeClass("alert");
783 $("#dropboxmode").hide();
785 $("#return_date_override_fields :input").prop('disabled', false);
786 $("#return_date_override").datetimepicker("enable");
788 $("#barcode").focus();
790 $("#forgivemanualholdsexpire").change(function () {
791 if (this.checked == true) {
792 $("#barcode").addClass("alert");
793 $("#forgivemanualholdsexpire-alert").show();
795 $("#barcode").removeClass("alert");
796 $("#forgivemanualholdsexpire-alert").hide();
798 $("#barcode").focus();
801 [% IF(overduecharges) %]
802 $("#barcode").focus(function () {
803 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
804 $("#barcode").addClass("alert");
806 $("#barcode").removeClass("alert");
809 $("#barcode").blur(function () {
810 $("#barcode").removeClass("alert");
814 $('.openWin').on("click",function(e){
815 Dopop( $(this).data("url") );
821 [% INCLUDE 'intranet-bottom.inc' %]