6 [% USE AuthorisedValues %]
7 [% USE ColumnsSettings %]
9 [% BLOCK display_bormessagepref %]
10 [% IF ( bormessagepref ) %]
11 <li>Patron notification:
12 [% FOREACH mtt IN bormessagepref.keys %]
13 [%~ IF ( mtt == 'email' ) %] Email[% END ~%]
14 [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%]
15 [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%]
16 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
20 <li>Patron is not notified.</li>
24 [% INCLUDE 'doc-head-open.inc' %]
25 <title>Koha › Circulation › Check in [% title |html %]</title>
26 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
27 [% INCLUDE 'doc-head-close.inc' %]
28 [% INCLUDE 'datatables.inc' %]
29 [% INCLUDE 'columns_settings.inc' %]
30 [% INCLUDE 'calendar.inc' %]
31 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
32 [% INCLUDE 'timepicker.inc' %]
34 <script type="text/javascript">
36 function Dopop(link) {
37 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
38 $("#barcode").focus();
40 $(document).ready(function () {
41 $(".modal").modal({ backdrop: 'static' }).on('shown', function() {
42 $("#barcode").prop("disabled", true);
43 }).on('hidden', function() {
44 $("#barcode").prop("disabled", false).focus();
48 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]');
51 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %]
52 var returns_table = KohaTable("#checkedintable", {
57 "dom": 'B<"clearfix">t',
60 $("#return_date_override").datetimepicker({
61 onClose: function(dateText, inst) {
62 if (validate_date(dateText, inst) ) {
63 $("#barcode").focus();
70 }).on("change", function(e, value) {
71 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
73 $("#return_date_override").on("blur", function() {
74 check_valid_return_date();
76 $("#checkin-form").submit(function( event ) {
77 if ( !check_valid_return_date() ) {
78 event.preventDefault();
82 function check_valid_return_date() {
83 if ( $("#return_date_override").val() ) {
84 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
86 if ( !datetime || datetime > now ) {
87 alert("Invalid return date/time!");
88 $("#return_date_override").val("")
95 $("#exemptcheck").change(function () {
96 if (this.checked == true) {
97 $("#barcode").addClass("alert");
98 $("#exemptfines").show();
100 $("#barcode").removeClass("alert");
101 $("#exemptfines").hide();
103 $("#barcode").focus();
105 $("#dropboxcheck").change(function () {
106 if (this.checked == true) {
107 $("#barcode").addClass("alert");
108 $("#dropboxmode").show();
110 $("#return_date_override_fields :input").prop('disabled', true);
111 $("#return_date_override").datetimepicker("disable");
113 $("#barcode").removeClass("alert");
114 $("#dropboxmode").hide();
116 $("#return_date_override_fields :input").prop('disabled', false);
117 $("#return_date_override").datetimepicker("enable");
119 $("#barcode").focus();
121 $("#forgivemanualholdsexpire").change(function () {
122 if (this.checked == true) {
123 $("#barcode").addClass("alert");
124 $("#forgivemanualholdsexpire-alert").show();
126 $("#barcode").removeClass("alert");
127 $("#forgivemanualholdsexpire-alert").hide();
129 $("#barcode").focus();
131 [% IF(overduecharges) %] $("#barcode").focus(function () {
132 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
133 $("#barcode").addClass("alert");
135 $("#barcode").removeClass("alert");
138 $("#barcode").blur(function () {
139 $("#barcode").removeClass("alert");
142 $('.openWin').on("click",function(e){
144 Dopop( $(this).data("url") );
150 <body id="circ_returns" class="circ">
151 <span class="audio-alert-success"></span>
153 [% INCLUDE 'header.inc' %]
154 [% INCLUDE 'checkin-search.inc' %]
156 <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>
158 <div id="doc" class="yui-t7">
165 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
166 <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>
167 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
168 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
171 [% IF additional_materials %]
172 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
173 [% additional_materials %]
177 [% IF ( collectionItemNeedsTransferred ) %]
178 <div id="rotating-collection" class="dialog message">
179 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) %]</h3>
180 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
181 <p>This item is part of a rotating collection.</p>
182 <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>
186 <!-- Patron has fines -->
188 <div class="dialog alert">
189 <h3>Patron has outstanding fines of [% fines %].</h3>
190 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
194 <!-- Patron has waiting holds -->
195 [% IF ( waiting_holds ) %]
196 <div id="awaiting-pickup" class="dialog message">
197 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
198 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
202 <!-- Patron is restricted and checkin was backdated -->
203 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
204 <div id="restricted_backdated" class="dialog message">
206 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">
207 [% borrower.firstname %] [% borrower.surname %]
209 is restricted. Please verify this patron should still be restricted.
214 [% IF ( wrongbranch ) %]
215 <div class="dialog alert"><h3>Cannot check in</h3>
216 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
217 </p><strong>NOT CHECKED IN</strong></p>
218 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) %]</strong></p>
221 <!-- case of a mistake in transfer loop -->
222 [% IF ( WrongTransfer ) %]
223 <div id="return2" class="dialog message">
224 <!-- WrongTransfer -->
225 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) %]</h3>
226 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
227 <button type="submit" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
228 <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>
229 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
230 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
231 [% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
232 <li>[% wborstnum %] [% wboraddress %][% IF ( wboraddress2 ) %]<br />
233 [% wboraddress2 %]<br />[% END %]
234 [% wborcity %] [% wborzip %]</li>
235 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
236 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
239 <form method="post" action="returns.pl" class="confirm">
240 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
241 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
242 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
243 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
244 <input type="hidden" name="print_slip" value="0" />
245 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
246 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
247 <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>
248 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
249 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
256 <div id="hold-found1" class="modal fade audio-alert-action">
257 <form method="post" action="returns.pl" class="confirm">
258 <div class="modal-header">
260 Hold found (item is already waiting):
262 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
263 [% itembarcode |html %]: [% title |html %]
268 <div class="modal-body">
269 [% IF ( reservenotes ) %]
270 <h4>Notes: [% reservenotes %]</h4>
276 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])
277 <span class="patron-category"> - [% borcategory %]</span>
281 [% borstnum %] [% boraddress %]<br />
282 [% IF ( boraddress2 ) %]
283 [% boraddress2 %]<br />
285 [% borcity %] [% borzip %]
288 [% IF ( borphone ) %]
289 <li> [% borphone %]</li>
292 [% IF ( boremail ) %]
293 <li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>
296 [% IF ( debarred ) %]
297 <li class="error">Patron is RESTRICTED</li>
300 [% IF ( gonenoaddress ) %]
301 <li class="error">Patron's address is in doubt</li>
304 [% IF ( transfertodo ) %]
305 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
307 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
310 [% FOREACH inputloo IN inputloop %]
311 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
312 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
313 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
316 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
317 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
318 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
319 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
320 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
321 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
322 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
323 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
325 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
326 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
329 <div class="modal-footer">
330 <input type="hidden" name="cancel_reserve" value="0" />
332 <button type="submit" class="btn approve">
333 <i class="fa fa-check"></i> Confirm
336 <input type="hidden" name="print_slip" value="0" />
337 <button type="submit" class="btn print" onclick="this.form.print_slip.value = 1; this.form.submit();">
338 <i class="fa fa-print"></i> Print and confirm
341 <button type="submit" class="btn deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
342 <i class="fa fa-times"></i> Cancel hold
349 [% IF ( diffbranch ) %]
351 <div id="transfer-needed" class="dialog message audio-alert-action">
352 <h3>Hold needing transfer found</h3>
353 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
356 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
357 <li>[% borstnum %] [% boraddress %]<br />
358 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
359 [% borcity %] [% borzip %]</li>
360 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
361 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
362 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
363 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
365 [% IF ( transfertodo ) %]
366 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
368 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
371 <form method="post" action="returns.pl" class="confirm">
372 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
373 <input type="hidden" name="print_slip" value="0" />
374 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
375 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
376 <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>
377 [% FOREACH inputloo IN inputloop %]
378 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
379 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
380 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
382 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
383 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
384 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
385 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
386 <input type="hidden" name="barcode" value="0" />
388 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
389 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
394 [% IF ( transfer ) %]
395 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
396 <div id="return1" class="dialog message audio-alert-action">
397 <h3>Please return item to: [% Branches.GetName( returnbranch ) %]</h3>
398 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
399 <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>
403 [% IF ( needstransfer ) %]
404 <!-- needstransfer -->
405 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) %]</h3>
407 <form method="post" action="returns.pl" name="mainform" id="mainform">
409 <button type="submit" name="dotransfer" class="print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% returnbranch %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
411 <button type="submit" name="dotransfer" class="submit"><i class="fa fa-check"></i> Yes</button>
412 <button type="submit" name="notransfer" class="submit"><i class="fa fa-times"></i> No</button>
413 <input type="hidden" name="tobranch" value="[% returnbranch %]" />
414 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
415 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
416 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
417 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
418 [% FOREACH inputloo IN inputloop %]
419 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
420 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
421 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
423 <input type="hidden" name="barcode" value="0" />
424 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
425 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
429 [% IF ( diffbranch ) %]
431 <h3 class="audio-alert-action">Item consigned:</h3>
433 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
439 <form method="post" action="returns.pl"><input type="submit" value="OK" />
440 [% FOREACH inputloo IN inputloop %]
441 [% UNLESS ( inputloo.first ) %]
442 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
443 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
444 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
448 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
449 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
451 <input type="hidden" name="barcode" value="0" />
456 <!-- case of simple return no issue or transfer but with a reservation -->
457 [% IF ( reserved ) %]
459 <div id="hold-found2" class="modal fade audio-alert-action">
460 <form method="post" action="returns.pl" class="confirm">
461 <div class="modal-header">
465 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
466 [% itembarcode |html %]: [% title |html %]
470 <div class="modal-body">
471 [% IF ( reservenotes ) %]
472 <h4>Notes: [% reservenotes %]</h4>
477 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
478 [% borsurname %], [% borfirstname %]
481 <span class="patron-category"> - [% borcategory %]</span>
485 [% borstnum %] [% boraddress %]<br />
486 [% IF ( boraddress2 ) %]
487 [% boraddress2 %]<br />
489 [% borcity %] [% borzip %]
492 [% IF ( borphone ) %]
493 <li>[% borphone %]</li>
496 [% IF ( boremail ) %]
498 [% IF ( transfertodo ) %]
501 <a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>
506 [% UNLESS ( transfertodo) %]
507 [% INCLUDE display_bormessagepref %]
510 [% IF ( debarred ) %]
511 <li class="error">Patron is RESTRICTED</li>
514 [% IF ( gonenoaddress ) %]
515 <li class="error">Patron's address is in doubt</li>
518 [% IF ( transfertodo ) %]
519 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
521 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
524 <input type="hidden" name="print_slip" value="0" />
527 [% FOREACH inputloo IN inputloop %]
528 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
529 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
530 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
533 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
534 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
535 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
536 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
537 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
538 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
539 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
540 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
541 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
542 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
545 <div class="modal-footer">
546 [% IF ( transfertodo ) %]
547 <button type="submit" class="btn approve">
548 <i class="fa fa-check"></i> Confirm hold and transfer
550 <button type="submit" class="btn print" onclick="this.form.print_slip.value = 1; this.form.submit()">
551 <i class="fa fa-print"></i> Print slip, transfer, and confirm
554 <button type="submit" class="btn approve">
555 <i class="fa fa-check"></i> Confirm hold
557 <button type="submit" class="btn print" onclick="this.form.print_slip.value = 1; this.form.submit();">
558 <i class="fa fa-print"></i> Print slip and confirm
562 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('#barcode').focus(); return false;">
563 <i class="fa fa-times"></i> Ignore
571 [% IF ( errmsgloop ) %]
572 <div class="dialog alert audio-alert-warning">
573 <h3>Check in message</h3>
574 [% IF itembiblionumber %]
575 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
577 [% FOREACH errmsgloo IN errmsgloop %]
578 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
580 Not for loan status updated.
582 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
583 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
588 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
589 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
595 [% IF ( errmsgloo.badbarcode ) %]
596 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
598 [% IF ( errmsgloo.ispermanent ) %]
599 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) %]</p>
601 [% IF ( errmsgloo.notissued ) %]
602 <p class="problem">Not checked out.</p>
604 [% IF ( errmsgloo.localuse) %]
605 <p class="problem">Local use recorded</p>
607 [% IF ( errmsgloo.waslost ) %]
608 <p class="problem">Item was lost, now found.</p>
609 [% IF ( LostItemFeeRefunded ) %]
610 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
612 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
615 [% IF ( errmsgloo.withdrawn ) %]
616 [% IF BlockReturnOfWithdrawnItems %]
617 <h5>Cannot check in</h5>
618 <p><strong>NOT CHECKED IN</strong></p>
619 <p class="problem">Item is withdrawn.</p>
621 <p class="problem">Item is withdrawn.</p>
624 [% IF ( errmsgloo.debarred ) %]
625 <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>
627 [% IF ( errmsgloo.prevdebarred ) %]
628 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
630 [% IF ( errmsgloo.foreverdebarred ) %]
631 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
639 [% IF ( checkinmsg ) %]
640 [% IF ( checkinmsgtype == 'alert' ) %]
641 <div class="dialog alert">
643 <div class="dialog message">
645 <p class="problem">[% checkinmsg | html_line_break %]</p>
649 <div id="exemptfines" class="dialog message" style="display:none;">
650 <p>Fines for returned items are forgiven.</p>
652 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
653 <p>Fines are not charged for manually cancelled holds.</p>
655 <div id="dropboxmode" class="dialog message" style="display:none;">
656 <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
660 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
661 <div class="yui-u first">
663 <legend>Check in</legend>
664 <label for="barcode">Enter item barcode: </label>
665 [% IF ( exemptfine ) %]
666 <input name="barcode" id="barcode" size="14" class="focus alert"/>
667 [% ELSIF ( dropboxmode ) %]
668 <input name="barcode" id="barcode" size="14" class="focus alert"/>
670 <input name="barcode" id="barcode" size="14" class="focus"/>
672 <input type="submit" class="submit" value="Submit" />
674 [% IF Koha.Preference('SpecifyReturnDate') %]
675 <div class="date-select" id="return_date_override_fields">
676 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
678 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" />
680 <label for="return_date_override_remember"> Remember for next check in:</label>
681 [% IF ( return_date_override_remember ) %]
682 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
684 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
687 <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;" />
690 [% FOREACH inputloo IN inputloop %]
691 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
692 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
693 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
700 <fieldset id="checkin_options">
701 <legend>Options</legend>
702 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
704 [% IF ( exemptfine ) %]
705 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
707 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
709 <label for="exemptcheck">Forgive overdue charges</label>
711 [% END %] <!-- overduecharges -->
713 [% IF ( dropboxmode ) %]
714 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
716 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
718 <label for="dropboxcheck">Book drop mode</label>
720 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
722 [% IF ( forgivemanualholdsexpire ) %]
723 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
725 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
727 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
729 [% END %] <!-- overduecharges -->
736 <h2>Checked-in items</h2>
737 <table id="checkedintable">
738 <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>
740 [% FOREACH riloo IN riloop %]
742 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
743 [% IF ( riloo.return_overdue ) %]
744 <span class="overdue">[% riloo.duedate %] (overdue)</span>
745 [% ELSE %][% riloo.duedate %]
747 [% ELSE %]Not checked out
750 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
751 [% riloo.itemtitle |html %]
753 [% IF ( riloo.enumchron ) %]
755 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
758 <td class="ci-author">[% riloo.itemauthor %]</td>
759 <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>
760 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) %]</td>
761 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) %]</td>
762 <td class="ci-shelvinglocation">[% riloo.location %]</td>
763 <td class="ci-callnumber">[% riloo.itemcallnumber %]</td>
764 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
765 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %]</td>
766 <td class="ci-patron">[% IF ( riloo.duedate ) %]
767 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
768 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
770 [% IF riloo.borissuescount %]
771 <span class="results_summary nowrap">
772 <span class="label">Checkouts:</span>
773 <span class="number_box">
774 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.borrowernumber %]">[% riloo.borissuescount %]</a>
778 [% ELSE %]Not checked out[% END %]</td>
780 [% IF ( riloo.bornote ) %]<p><span class="circ-hlt patron-note">[% riloo.bornote %]</p></span>[% END %]
781 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote %]</p></span>[% END %]
782 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic %]</p></span>[% END %]
791 [% INCLUDE 'intranet-bottom.inc' %]