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 <div class="main container-fluid">
50 <div class="col-sm-12">
54 [% IF Koha.Preference('CircSidebar') %]
55 <div class="col-sm-10 col-sm-push-2">
57 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
60 [% IF hold_auto_filled %]
61 <div class="dialog alert hold-auto-filled">
62 [% IF ( reservenotes ) %]
63 <h4>Notes: [% reservenotes | html %]</h4>
65 <h3>Hold filled for:</h3>
67 [% INCLUDE 'patron-title.inc' patron=patron %]
68 <span class="patron-category"> - [% patron.category.description | html %]</span>
71 [% INCLUDE display_holdpatron_address %]
73 [% IF ( patron.phone ) %]
74 <li>[% patron.phone | html %]</li>
77 [% IF ( patron.email ) %]
79 [% IF ( transfertodo ) %]
80 [% patron.email | html %]
82 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
87 [% UNLESS ( transfertodo) %]
88 [% INCLUDE display_bormessagepref %]
91 [% IF ( patron.debarred ) %]
92 <li class="error">Patron is RESTRICTED</li>
95 [% IF ( patron.gonenoaddress ) %]
96 <li class="error">Patron's address is in doubt</li>
99 [% IF ( transfertodo ) %]
100 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
102 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
105 <a href="#" class="btn btn-default print print-slip">
106 <i class="fa fa-print"></i> Print
111 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
112 <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>
113 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
114 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
117 [% IF additional_materials %]
118 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
119 [% additional_materials | html %]
123 [% IF ( collectionItemNeedsTransferred ) %]
124 <div id="rotating-collection" class="dialog message">
125 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
126 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
127 <p>This item is part of a rotating collection.</p>
128 <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>
132 <!-- Patron has added an issue note -->
133 [% IF ( issue.note) %]
134 <div class="dialog message">
136 <p>[% issue.notedate | $KohaDates %]</p>
137 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
138 <p>[% issue.note | html %]</p>
142 <!-- Patron has fines -->
144 <div class="dialog alert">
145 <h3>Patron has outstanding fines of [% fines | html %].</h3>
146 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
150 <!-- Patron has waiting holds -->
151 [% IF ( waiting_holds ) %]
152 <div id="awaiting-pickup" class="dialog message">
153 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
154 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
158 <!-- Patron is restricted and checkin was backdated -->
159 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
160 <div id="restricted_backdated" class="dialog message">
162 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
163 [% patron.firstname | html %] [% patron.surname | html %]
165 is restricted. Please verify this patron should still be restricted.
170 [% IF ( wrongbranch ) %]
171 <div class="dialog alert"><h3>Cannot check in</h3>
172 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
173 </p><strong>NOT CHECKED IN</strong></p>
174 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) | html %]</strong></p>
178 <!-- case of a mistake in transfer loop -->
179 [% IF ( WrongTransfer ) %]
180 <div id="return2" class="dialog message">
181 <!-- WrongTransfer -->
182 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]</h3>
183 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
184 <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>
185 <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>
186 [% IF ( patron.cardnumber ) %]<h5>Hold for:</h5>
188 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
189 [% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
190 [% INCLUDE display_holdpatron_address %]
191 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
192 [% IF ( patron.email ) %]<li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>[% END %]
195 <form method="post" action="returns.pl" class="confirm">
196 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem | html %]" />
197 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt | html %]" />
198 <input type="hidden" name="WT-From" value="[% wtransfertFrom | html %]" />
199 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
200 <input type="hidden" name="print_slip" value="0" />
201 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
202 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
203 <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>
204 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
205 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
212 <div id="hold-found1" class="modal fade audio-alert-action">
213 <div class="modal-dialog">
214 <div class="modal-content">
215 <form method="post" action="returns.pl" class="confirm">
216 <div class="modal-header">
218 Hold found (item is already waiting):
220 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
221 [% itembarcode | html %]: [% title | html %]
226 <div class="modal-body">
227 [% IF ( reservenotes ) %]
228 <h4>Notes: [% reservenotes | html %]</h4>
234 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
235 <span class="patron-category"> - [% patron.category.description | html %]</span>
237 [% INCLUDE display_holdpatron_address %]
238 [% IF ( patron.phone ) %]
239 <li> [% patron.phone | html %]</li>
242 [% IF ( patron.email ) %]
243 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
246 [% IF ( patron.debarred ) %]
247 <li class="error">Patron is RESTRICTED</li>
250 [% IF ( patron.gonenoaddress ) %]
251 <li class="error">Patron's address is in doubt</li>
255 [% IF ( transfertodo ) %]
256 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
258 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
261 [% FOREACH inputloo IN inputloop %]
262 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
263 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
264 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
267 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
268 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
269 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
270 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
271 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
272 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
273 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
274 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
276 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
277 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
280 <div class="modal-footer">
281 <input type="hidden" name="cancel_reserve" value="0" />
283 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
284 <i class="fa fa-check"></i> Confirm hold
287 <input type="hidden" name="print_slip" value="0" />
288 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
289 <i class="fa fa-print"></i> Print slip and confirm
292 <button type="submit" class="btn btn-default deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
293 <i class="fa fa-times"></i> Cancel hold
302 [% IF ( diffbranch ) %]
304 <div id="transfer-needed" class="dialog message audio-alert-action">
305 <h3>Hold needing transfer found</h3>
306 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
309 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
310 [% INCLUDE display_holdpatron_address %]
311 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
312 [% 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 %]
313 [% IF ( patron.debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
314 [% IF ( patron.gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
316 [% IF ( transfertodo ) %]
317 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
319 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
322 <form method="post" action="returns.pl" class="confirm">
323 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
324 <input type="hidden" name="print_slip" value="0" />
325 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
326 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
327 <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>
328 [% FOREACH inputloo IN inputloop %]
329 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
330 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
331 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
333 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
334 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
335 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
336 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
337 <input type="hidden" name="barcode" value="0" />
339 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
340 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
345 [% IF ( transfer ) %]
346 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
347 <div id="return1" class="dialog message audio-alert-action">
348 <h3>Please return item to: [% Branches.GetName( returnbranch ) | html %]</h3>
349 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
350 <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>
354 [% IF ( needstransfer ) %]
355 <!-- needstransfer -->
356 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) | html %]</h3>
358 <form method="post" action="returns.pl" name="mainform" id="mainform">
360 <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>
362 <button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
363 <button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
364 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
365 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
366 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
367 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
368 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
369 [% FOREACH inputloo IN inputloop %]
370 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
371 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
372 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
374 <input type="hidden" name="barcode" value="0" />
375 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
376 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
380 [% IF ( diffbranch ) %]
382 <h3 class="audio-alert-action">Item consigned:</h3>
384 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a></caption>
387 <td>[% INCLUDE 'patron-title.inc' patron=patron %]</td>
390 <form method="post" action="returns.pl"><input type="submit" value="OK" />
391 [% FOREACH inputloo IN inputloop %]
392 [% UNLESS ( inputloo.first ) %]
393 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
394 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
395 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
399 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
400 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
402 <input type="hidden" name="barcode" value="0" />
407 <!-- case of simple return no issue or transfer but with a reservation -->
408 [% IF ( reserved ) %]
410 <div id="hold-found2" class="modal fade audio-alert-action">
411 <div class="modal-dialog">
412 <div class="modal-content">
413 <form method="post" action="returns.pl" class="confirm">
414 <div class="modal-header">
418 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
419 [% itembarcode | html %]: [% title | html %]
423 <div class="modal-body">
424 [% IF ( reservenotes ) %]
425 <h4>Notes: [% reservenotes | html %]</h4>
429 [% INCLUDE 'patron-title.inc' patron=patron %]
430 <span class="patron-category"> - [% patron.category.description | html %]</span>
433 [% INCLUDE display_holdpatron_address %]
435 [% IF ( patron.phone ) %]
436 <li>[% patron.phone | html %]</li>
439 [% IF ( patron.email ) %]
441 [% IF ( transfertodo ) %]
442 [% patron.email | html %]
444 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
449 [% UNLESS ( transfertodo) %]
450 [% INCLUDE display_bormessagepref %]
453 [% IF ( patron.debarred ) %]
454 <li class="error">Patron is RESTRICTED</li>
457 [% IF ( patron.gonenoaddress ) %]
458 <li class="error">Patron's address is in doubt</li>
461 [% IF ( transfertodo ) %]
462 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
464 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
467 <input type="hidden" name="print_slip" value="0" />
470 [% FOREACH inputloo IN inputloop %]
471 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
472 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
473 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
476 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
477 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
478 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
479 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
480 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
481 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
482 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
483 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
484 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
485 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
488 <div class="modal-footer">
489 [% IF ( transfertodo ) %]
490 <button type="submit" class="btn btn-default approve">
491 <i class="fa fa-check"></i> Confirm hold and transfer
493 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit()">
494 <i class="fa fa-print"></i> Print slip, transfer, and confirm
497 <button type="submit" class="btn btn-default approve">
498 <i class="fa fa-check"></i> Confirm hold
500 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
501 <i class="fa fa-print"></i> Print slip and confirm
505 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny" onclick="$('#barcode').focus(); return false;">
506 <i class="fa fa-times"></i> Ignore
516 [% IF ( errmsgloop ) %]
517 <div class="dialog alert audio-alert-warning">
518 <h3>Check in message</h3>
519 [% IF itembiblionumber %]
520 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
522 [% FOREACH errmsgloo IN errmsgloop %]
523 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
525 Not for loan status updated.
527 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
528 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
533 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
534 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
540 [% IF ( errmsgloo.badbarcode ) %]
541 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
543 [% IF ( errmsgloo.ispermanent ) %]
544 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
546 [% IF ( errmsgloo.notissued ) %]
547 <p class="problem">Not checked out.</p>
549 [% IF ( errmsgloo.localuse) %]
550 <p class="problem">Local use recorded</p>
552 [% IF ( errmsgloo.waslost ) %]
553 [% IF Koha.Preference('BlockReturnOfLostItems') %]
554 <p class="problem">Item is lost, cannot be checked in.</p>
556 <p class="problem">Item was lost, now found.</p>
559 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
560 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
561 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
562 <h5>Cannot check in</h5>
563 <p><strong>NOT CHECKED IN</strong></p>
565 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
568 [% IF ( errmsgloo.withdrawn ) %]
569 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
570 <h5>Cannot check in</h5>
571 <p><strong>NOT CHECKED IN</strong></p>
573 <p class="problem">Item is withdrawn.</p>
575 [% IF ( errmsgloo.debarred ) %]
576 <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
578 [% IF ( errmsgloo.prevdebarred ) %]
579 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
581 [% IF ( errmsgloo.foreverdebarred ) %]
582 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
585 [% IF errmsgloo.data_corrupted %]
586 <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>
592 [% IF ( checkinmsg ) %]
593 [% IF ( checkinmsgtype == 'alert' ) %]
594 <div class="dialog alert">
596 <div class="dialog message">
598 <p class="problem">[% checkinmsg | html_line_break %]</p>
602 <div id="exemptfines" class="dialog message" style="display:none;">
603 <p>Fines for returned items are forgiven.</p>
605 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
606 <p>Fines are not charged for manually cancelled holds.</p>
608 <div id="dropboxmode" class="dialog message" style="display:none;">
609 <p>Book drop mode. (Effective checkin date is [% dropboxdate | html %] ).</p>
613 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
614 <div class="col-sm-6">
616 <legend>Check in</legend>
617 <label for="barcode">Enter item barcode: </label>
618 [% IF ( exemptfine ) %]
619 <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
620 [% ELSIF ( dropboxmode ) %]
621 <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
623 <input name="barcode" id="barcode" size="14" class="focus" type="text" />
625 <input type="submit" class="submit" value="Submit" />
627 [% IF Koha.Preference('SpecifyReturnDate') %]
628 <div class="date-select" id="return_date_override_fields">
629 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
631 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
633 <label for="return_date_override_remember"> Remember for next check in:</label>
634 [% IF ( return_date_override_remember ) %]
635 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
637 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
640 <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;" />
643 [% FOREACH inputloo IN inputloop %]
644 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
645 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
646 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
652 <div class="col-sm-6">
653 <fieldset id="checkin_options">
654 <legend>Options</legend>
655 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
657 [% IF ( exemptfine ) %]
658 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
660 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
662 <label for="exemptcheck">Forgive overdue charges</label>
664 [% END %] <!-- overduecharges -->
666 [% IF ( dropboxmode ) %]
667 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
669 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
671 <label for="dropboxcheck">Book drop mode</label>
673 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
675 [% IF ( forgivemanualholdsexpire ) %]
676 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
678 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
680 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
682 [% END %] <!-- overduecharges -->
689 <h2>Checked-in items</h2>
690 <table id="checkedintable">
691 <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>
693 [% FOREACH riloo IN riloop %]
695 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
696 [% IF ( riloo.return_overdue ) %]
697 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
698 [% ELSE %][% riloo.duedate | html %]
700 [% ELSE %]Not checked out
703 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
704 [% riloo.itemtitle | html %]
706 [% IF ( riloo.enumchron ) %]
708 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
711 <td class="ci-author">[% riloo.itemauthor | html %]</td>
712 <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a></td>
713 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
714 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
715 <td class="ci-shelvinglocation">[% riloo.location | html %]</td>
716 <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
717 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
718 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
719 <td class="ci-patron">[% IF ( riloo.duedate ) %]
720 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
721 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
723 [% IF riloo.borissuescount %]
724 <span class="results_summary nowrap">
725 <span class="label">Checkouts:</span>
726 <span class="number_box">
727 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
731 [% ELSE %]Not checked out[% END %]</td>
733 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
734 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
735 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
742 [% IF Koha.Preference('CircSidebar') %]
743 </div> <!-- /.col-sm-10.col-sm-push-2 -->
744 <div class="col-sm-2 col-sm-pull-10">
746 [% INCLUDE 'circ-nav.inc' %]
748 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
749 </div> <!-- /.row -->
753 </div> <!-- /.col-sm-12 -->
754 </div> <!-- /.row -->
756 [% MACRO jsinclude BLOCK %]
757 [% INCLUDE 'datatables.inc' %]
758 [% INCLUDE 'columns_settings.inc' %]
759 [% INCLUDE 'calendar.inc' %]
760 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
761 [% INCLUDE 'timepicker.inc' %]
764 function Dopop(link) {
765 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
766 $("#barcode").focus();
768 $(document).ready(function () {
769 $(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() {
770 $("#barcode").prop("disabled", true);
771 }).on('hidden.bs.modal', function() {
772 $("#barcode").prop("disabled", false).focus();
775 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
777 $(".print-slip").on('click', function(e) {
779 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
783 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
786 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
787 var returns_table = KohaTable("checkedintable", {
792 "dom": 'B<"clearfix">t',
793 }, columns_settings);
795 $("#return_date_override").datetimepicker({
796 onClose: function(dateText, inst) {
797 if (validate_date(dateText, inst) ) {
798 $("#barcode").focus();
805 }).on("change", function(e, value) {
806 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
808 $("#return_date_override").on("blur", function() {
809 check_valid_return_date();
811 $("#checkin-form").submit(function( event ) {
812 if ( !check_valid_return_date() ) {
813 event.preventDefault();
817 function check_valid_return_date() {
818 if ( $("#return_date_override").val() ) {
819 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
820 var now = new Date();
821 if ( !datetime || datetime > now ) {
822 alert("Invalid return date/time!");
823 $("#return_date_override").val("")
830 $("#exemptcheck").change(function () {
831 if (this.checked == true) {
832 $("#barcode").addClass("alert");
833 $("#exemptfines").show();
835 $("#barcode").removeClass("alert");
836 $("#exemptfines").hide();
838 $("#barcode").focus();
840 $("#dropboxcheck").change(function () {
841 if (this.checked == true) {
842 $("#barcode").addClass("alert");
843 $("#dropboxmode").show();
845 $("#return_date_override_fields :input").prop('disabled', true);
846 $("#return_date_override").datetimepicker("disable");
848 $("#barcode").removeClass("alert");
849 $("#dropboxmode").hide();
851 $("#return_date_override_fields :input").prop('disabled', false);
852 $("#return_date_override").datetimepicker("enable");
854 $("#barcode").focus();
856 $("#forgivemanualholdsexpire").change(function () {
857 if (this.checked == true) {
858 $("#barcode").addClass("alert");
859 $("#forgivemanualholdsexpire-alert").show();
861 $("#barcode").removeClass("alert");
862 $("#forgivemanualholdsexpire-alert").hide();
864 $("#barcode").focus();
867 [% IF(overduecharges) %]
868 $("#barcode").focus(function () {
869 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
870 $("#barcode").addClass("alert");
872 $("#barcode").removeClass("alert");
875 $("#barcode").blur(function () {
876 $("#barcode").removeClass("alert");
880 $('.openWin').on("click",function(e){
881 Dopop( $(this).data("url") );
887 [% INCLUDE 'intranet-bottom.inc' %]