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){
143 Dopop( $(this).data("url") );
149 <body id="circ_returns" class="circ">
150 <span class="audio-alert-success"></span>
152 [% INCLUDE 'header.inc' %]
153 [% INCLUDE 'checkin-search.inc' %]
155 <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>
157 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
161 [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
164 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
165 <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>
166 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
167 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
170 [% IF additional_materials %]
171 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
172 [% additional_materials %]
176 [% IF ( collectionItemNeedsTransferred ) %]
177 <div id="rotating-collection" class="dialog message">
178 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) %]</h3>
179 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
180 <p>This item is part of a rotating collection.</p>
181 <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>
185 <!-- Patron has fines -->
187 <div class="dialog alert">
188 <h3>Patron has outstanding fines of [% fines %].</h3>
189 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
193 <!-- Patron has waiting holds -->
194 [% IF ( waiting_holds ) %]
195 <div id="awaiting-pickup" class="dialog message">
196 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
197 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
201 <!-- Patron is restricted and checkin was backdated -->
202 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
203 <div id="restricted_backdated" class="dialog message">
205 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">
206 [% borrower.firstname %] [% borrower.surname %]
208 is restricted. Please verify this patron should still be restricted.
213 [% IF ( wrongbranch ) %]
214 <div class="dialog alert"><h3>Cannot check in</h3>
215 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
216 </p><strong>NOT CHECKED IN</strong></p>
217 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) %]</strong></p>
220 <!-- case of a mistake in transfer loop -->
221 [% IF ( WrongTransfer ) %]
222 <div id="return2" class="dialog message">
223 <!-- WrongTransfer -->
224 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) %]</h3>
225 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
226 <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>
227 <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>
228 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
229 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
230 [% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
231 <li>[% wborstnum %] [% wboraddress %][% IF ( wboraddress2 ) %]<br />
232 [% wboraddress2 %]<br />[% END %]
233 [% wborcity %] [% wborzip %]</li>
234 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
235 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
238 <form method="post" action="returns.pl" class="confirm">
239 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
240 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
241 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
242 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
243 <input type="hidden" name="print_slip" value="0" />
244 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
245 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
246 <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>
247 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
248 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
255 <div id="hold-found1" class="modal fade audio-alert-action">
256 <div class="modal-dialog">
257 <div class="modal-content">
258 <form method="post" action="returns.pl" class="confirm">
259 <div class="modal-header">
261 Hold found (item is already waiting):
263 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
264 [% itembarcode |html %]: [% title |html %]
269 <div class="modal-body">
270 [% IF ( reservenotes ) %]
271 <h4>Notes: [% reservenotes %]</h4>
277 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])
278 <span class="patron-category"> - [% borcategory %]</span>
282 [% borstnum %] [% boraddress %]<br />
283 [% IF ( boraddress2 ) %]
284 [% boraddress2 %]<br />
286 [% borcity %] [% borzip %]
289 [% IF ( borphone ) %]
290 <li> [% borphone %]</li>
293 [% IF ( boremail ) %]
294 <li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>
297 [% IF ( debarred ) %]
298 <li class="error">Patron is RESTRICTED</li>
301 [% IF ( gonenoaddress ) %]
302 <li class="error">Patron's address is in doubt</li>
305 [% IF ( transfertodo ) %]
306 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
308 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
311 [% FOREACH inputloo IN inputloop %]
312 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
313 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
314 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
317 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
318 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
319 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
320 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
321 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
322 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
323 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
324 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
326 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
327 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
330 <div class="modal-footer">
331 <input type="hidden" name="cancel_reserve" value="0" />
333 <button type="submit" class="btn btn-default approve">
334 <i class="fa fa-check"></i> Confirm
337 <input type="hidden" name="print_slip" value="0" />
338 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
339 <i class="fa fa-print"></i> Print and confirm
342 <button type="submit" class="btn btn-default deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
343 <i class="fa fa-times"></i> Cancel hold
352 [% IF ( diffbranch ) %]
354 <div id="transfer-needed" class="dialog message audio-alert-action">
355 <h3>Hold needing transfer found</h3>
356 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
359 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
360 <li>[% borstnum %] [% boraddress %]<br />
361 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
362 [% borcity %] [% borzip %]</li>
363 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
364 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
365 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
366 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
368 [% IF ( transfertodo ) %]
369 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
371 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
374 <form method="post" action="returns.pl" class="confirm">
375 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
376 <input type="hidden" name="print_slip" value="0" />
377 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
378 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
379 <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>
380 [% FOREACH inputloo IN inputloop %]
381 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
382 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
383 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
385 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
386 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
387 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
388 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
389 <input type="hidden" name="barcode" value="0" />
391 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
392 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
397 [% IF ( transfer ) %]
398 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
399 <div id="return1" class="dialog message audio-alert-action">
400 <h3>Please return item to: [% Branches.GetName( returnbranch ) %]</h3>
401 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
402 <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>
406 [% IF ( needstransfer ) %]
407 <!-- needstransfer -->
408 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) %]</h3>
410 <form method="post" action="returns.pl" name="mainform" id="mainform">
412 <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>
414 <button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
415 <button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
416 <input type="hidden" name="tobranch" value="[% returnbranch %]" />
417 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
418 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
419 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
420 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
421 [% FOREACH inputloo IN inputloop %]
422 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
423 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
424 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
426 <input type="hidden" name="barcode" value="0" />
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 %]" />
432 [% IF ( diffbranch ) %]
434 <h3 class="audio-alert-action">Item consigned:</h3>
436 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
442 <form method="post" action="returns.pl"><input type="submit" value="OK" />
443 [% FOREACH inputloo IN inputloop %]
444 [% UNLESS ( inputloo.first ) %]
445 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
446 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
447 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
451 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
452 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
454 <input type="hidden" name="barcode" value="0" />
459 <!-- case of simple return no issue or transfer but with a reservation -->
460 [% IF ( reserved ) %]
462 <div id="hold-found2" class="modal fade audio-alert-action">
463 <div class="modal-dialog">
464 <div class="modal-content">
465 <form method="post" action="returns.pl" class="confirm">
466 <div class="modal-header">
470 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
471 [% itembarcode |html %]: [% title |html %]
475 <div class="modal-body">
476 [% IF ( reservenotes ) %]
477 <h4>Notes: [% reservenotes %]</h4>
482 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
483 [% borsurname %], [% borfirstname %]
486 <span class="patron-category"> - [% borcategory %]</span>
490 [% borstnum %] [% boraddress %]<br />
491 [% IF ( boraddress2 ) %]
492 [% boraddress2 %]<br />
494 [% borcity %] [% borzip %]
497 [% IF ( borphone ) %]
498 <li>[% borphone %]</li>
501 [% IF ( boremail ) %]
503 [% IF ( transfertodo ) %]
506 <a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>
511 [% UNLESS ( transfertodo) %]
512 [% INCLUDE display_bormessagepref %]
515 [% IF ( debarred ) %]
516 <li class="error">Patron is RESTRICTED</li>
519 [% IF ( gonenoaddress ) %]
520 <li class="error">Patron's address is in doubt</li>
523 [% IF ( transfertodo ) %]
524 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
526 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
529 <input type="hidden" name="print_slip" value="0" />
532 [% FOREACH inputloo IN inputloop %]
533 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
534 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
535 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
538 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
539 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
540 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
541 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
542 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
543 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
544 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
545 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
546 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
547 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
550 <div class="modal-footer">
551 [% IF ( transfertodo ) %]
552 <button type="submit" class="btn btn-default approve">
553 <i class="fa fa-check"></i> Confirm hold and transfer
555 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit()">
556 <i class="fa fa-print"></i> Print slip, transfer, and confirm
559 <button type="submit" class="btn btn-default approve">
560 <i class="fa fa-check"></i> Confirm hold
562 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
563 <i class="fa fa-print"></i> Print slip and confirm
567 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('#barcode').focus(); return false;">
568 <i class="fa fa-times"></i> Ignore
578 [% IF ( errmsgloop ) %]
579 <div class="dialog alert audio-alert-warning">
580 <h3>Check in message</h3>
581 [% IF itembiblionumber %]
582 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
584 [% FOREACH errmsgloo IN errmsgloop %]
585 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
587 Not for loan status updated.
589 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
590 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
595 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
596 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
602 [% IF ( errmsgloo.badbarcode ) %]
603 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
605 [% IF ( errmsgloo.ispermanent ) %]
606 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) %]</p>
608 [% IF ( errmsgloo.notissued ) %]
609 <p class="problem">Not checked out.</p>
611 [% IF ( errmsgloo.localuse) %]
612 <p class="problem">Local use recorded</p>
614 [% IF ( errmsgloo.waslost ) %]
615 <p class="problem">Item was lost, now found.</p>
616 [% IF ( LostItemFeeRefunded ) %]
617 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
619 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
622 [% IF ( errmsgloo.withdrawn ) %]
623 [% IF BlockReturnOfWithdrawnItems %]
624 <h5>Cannot check in</h5>
625 <p><strong>NOT CHECKED IN</strong></p>
626 <p class="problem">Item is withdrawn.</p>
628 <p class="problem">Item is withdrawn.</p>
631 [% IF ( errmsgloo.debarred ) %]
632 <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>
634 [% IF ( errmsgloo.prevdebarred ) %]
635 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
637 [% IF ( errmsgloo.foreverdebarred ) %]
638 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
644 [% IF ( checkinmsg ) %]
645 [% IF ( checkinmsgtype == 'alert' ) %]
646 <div class="dialog alert">
648 <div class="dialog message">
650 <p class="problem">[% checkinmsg | html_line_break %]</p>
654 <div id="exemptfines" class="dialog message" style="display:none;">
655 <p>Fines for returned items are forgiven.</p>
657 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
658 <p>Fines are not charged for manually cancelled holds.</p>
660 <div id="dropboxmode" class="dialog message" style="display:none;">
661 <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
665 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
666 <div class="yui-u first">
668 <legend>Check in</legend>
669 <label for="barcode">Enter item barcode: </label>
670 [% IF ( exemptfine ) %]
671 <input name="barcode" id="barcode" size="14" class="focus alert"/>
672 [% ELSIF ( dropboxmode ) %]
673 <input name="barcode" id="barcode" size="14" class="focus alert"/>
675 <input name="barcode" id="barcode" size="14" class="focus"/>
677 <input type="submit" class="submit" value="Submit" />
679 [% IF Koha.Preference('SpecifyReturnDate') %]
680 <div class="date-select" id="return_date_override_fields">
681 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
683 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" />
685 <label for="return_date_override_remember"> Remember for next check in:</label>
686 [% IF ( return_date_override_remember ) %]
687 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
689 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
692 <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;" />
695 [% FOREACH inputloo IN inputloop %]
696 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
697 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
698 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
705 <fieldset id="checkin_options">
706 <legend>Options</legend>
707 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
709 [% IF ( exemptfine ) %]
710 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
712 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
714 <label for="exemptcheck">Forgive overdue charges</label>
716 [% END %] <!-- overduecharges -->
718 [% IF ( dropboxmode ) %]
719 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
721 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
723 <label for="dropboxcheck">Book drop mode</label>
725 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
727 [% IF ( forgivemanualholdsexpire ) %]
728 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
730 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
732 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
734 [% END %] <!-- overduecharges -->
741 <h2>Checked-in items</h2>
742 <table id="checkedintable">
743 <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>
745 [% FOREACH riloo IN riloop %]
747 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
748 [% IF ( riloo.return_overdue ) %]
749 <span class="overdue">[% riloo.duedate %] (overdue)</span>
750 [% ELSE %][% riloo.duedate %]
752 [% ELSE %]Not checked out
755 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
756 [% riloo.itemtitle |html %]
758 [% IF ( riloo.enumchron ) %]
760 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
763 <td class="ci-author">[% riloo.itemauthor %]</td>
764 <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>
765 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) %]</td>
766 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) %]</td>
767 <td class="ci-shelvinglocation">[% riloo.location %]</td>
768 <td class="ci-callnumber">[% riloo.itemcallnumber %]</td>
769 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
770 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %]</td>
771 <td class="ci-patron">[% IF ( riloo.duedate ) %]
772 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
773 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
775 [% IF riloo.borissuescount %]
776 <span class="results_summary nowrap">
777 <span class="label">Checkouts:</span>
778 <span class="number_box">
779 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.borrowernumber %]">[% riloo.borissuescount %]</a>
783 [% ELSE %]Not checked out[% END %]</td>
785 [% IF ( riloo.bornote ) %]<p><span class="circ-hlt patron-note">[% riloo.bornote %]</p></span>[% END %]
786 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote %]</p></span>[% END %]
787 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic %]</p></span>[% END %]
794 [% IF Koha.Preference('CircSidebar') %]
796 <div class="yui-b noprint">
797 [% INCLUDE 'circ-nav.inc' %]
803 [% INCLUDE 'intranet-bottom.inc' %]