6 [% USE AuthorisedValues %]
7 [% USE ColumnsSettings %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha › Circulation › Check in [% title |html %]</title>
11 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% INCLUDE 'datatables.inc' %]
14 [% INCLUDE 'columns_settings.inc' %]
15 [% INCLUDE 'calendar.inc' %]
16 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
17 [% INCLUDE 'timepicker.inc' %]
19 <script type="text/javascript">
21 function Dopop(link) {
22 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
23 $("#barcode").focus();
25 $(document).ready(function () {
28 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]');
31 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %]
32 var returns_table = KohaTable("#checkedintable", {
37 "dom": 'B<"clearfix">t',
40 $("#return_date_override").datetimepicker({
41 onClose: function(dateText, inst) { $("#barcode").focus(); },
47 $("#return_date_override").on("blur", function() {
48 check_valid_return_date();
50 $("#checkin-form").submit(function( event ) {
51 if ( !check_valid_return_date() ) {
52 event.preventDefault();
56 function check_valid_return_date() {
57 if ( $("#return_date_override").val() ) {
58 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
60 if ( !datetime || datetime > now ) {
61 alert("Invalid return date/time!");
62 $("#return_date_override").val("")
69 $("#exemptcheck").change(function () {
70 if (this.checked == true) {
71 $("#barcode").addClass("alert");
72 $("#exemptfines").show();
74 $("#barcode").removeClass("alert");
75 $("#exemptfines").hide();
77 $("#barcode").focus();
79 $("#dropboxcheck").change(function () {
80 if (this.checked == true) {
81 $("#barcode").addClass("alert");
82 $("#dropboxmode").show();
84 $("#return_date_override_fields :input").prop('disabled', true);
85 $("#return_date_override").datetimepicker("disable");
87 $("#barcode").removeClass("alert");
88 $("#dropboxmode").hide();
90 $("#return_date_override_fields :input").prop('disabled', false);
91 $("#return_date_override").datetimepicker("enable");
93 $("#barcode").focus();
95 $("#forgivemanualholdsexpire").change(function () {
96 if (this.checked == true) {
97 $("#barcode").addClass("alert");
98 $("#forgivemanualholdsexpire-alert").show();
100 $("#barcode").removeClass("alert");
101 $("#forgivemanualholdsexpire-alert").hide();
103 $("#barcode").focus();
105 [% IF(overduecharges) %] $("#barcode").focus(function () {
106 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
107 $("#barcode").addClass("alert");
109 $("#barcode").removeClass("alert");
112 $("#barcode").blur(function () {
113 $("#barcode").removeClass("alert");
116 $('.openWin').on("click",function(e){
118 Dopop( $(this).data("url") );
124 <body id="circ_returns" class="circ">
125 <span class="audio-alert-success"></span>
127 [% INCLUDE 'header.inc' %]
128 [% INCLUDE 'checkin-search.inc' %]
130 <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>
132 <div id="doc" class="yui-t7">
139 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
140 <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>
141 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
142 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
145 [% IF additional_materials %]
146 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
147 [% additional_materials %]
151 [% IF ( collectionItemNeedsTransferred ) %]
152 <div id="rotating-collection" class="dialog message">
153 <h3>Please transfer item to: [% collectionBranchName %]</h3>
154 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
155 <p>This item is part of a rotating collection.</p>
156 <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>
160 <!-- Patron has fines -->
162 <div class="dialog alert">
163 <h3>Patron has outstanding fines of [% fines %].</h3>
164 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
168 <!-- Patron has waiting holds -->
169 [% IF ( waiting_holds ) %]
170 <div id="awaiting-pickup" class="dialog message">
171 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
172 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
176 <!-- Patron is restricted and checkin was backdated -->
177 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
178 <div id="restricted_backdated" class="dialog message">
180 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">
181 [% borrower.firstname %] [% borrower.surname %]
183 is restricted. Please verify this patron should still be restricted.
188 [% IF ( wrongbranch ) %]
189 <div class="dialog alert"><h3>Cannot check in</h3>
190 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
191 </p><strong>NOT CHECKED IN</strong></p>
192 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) %]</strong></p>
195 <!-- case of a mistake in transfer loop -->
196 [% IF ( WrongTransfer ) %]
197 <div id="return2" class="dialog message">
198 <!-- WrongTransfer -->
199 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) %]</h3>
200 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
201 <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>
202 <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>
203 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
204 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
205 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
206 <li>[% wborstnum %] [% wboraddress %][% IF ( wboraddress2 ) %]<br />
207 [% wboraddress2 %]<br />[% END %]
208 [% wborcity %] [% wborzip %]</li>
209 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
210 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
213 <form method="post" action="returns.pl" class="confirm">
214 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
215 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
216 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
217 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
218 <input type="hidden" name="print_slip" value="0" />
219 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
220 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
221 <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>
222 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
223 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
230 <!-- case of a reservation found, and display info -->
234 <div id="hold-found1" class="dialog message audio-alert-action">
235 <h3>Hold found (item is already waiting)</h3>
236 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
237 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
240 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
241 <li>[% borstnum %] [% boraddress %]<br />
242 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
243 [% borcity %] [% borzip %]</li>
244 [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
245 [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
246 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
247 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
248 [% IF ( transfertodo ) %]
249 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
251 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
253 <form method="post" action="returns.pl" class="confirm">
254 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
256 <input type="hidden" name="cancel_reserve" value="0" />
257 <button type="submit" class="deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();"><i class="fa fa-times"></i> Cancel</button>
259 <input type="hidden" name="print_slip" value="0" />
260 <button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit();"><i class="fa fa-print"></i> Print and confirm</button>
261 [% FOREACH inputloo IN inputloop %]
262 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
263 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
264 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
266 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
267 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
268 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
269 <input type="hidden" name="resbarcode" value="[% barcode | html %]" />
270 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
271 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
272 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
273 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
275 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
276 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
281 [% IF ( diffbranch ) %]
283 <div id="transfer-needed" class="dialog message audio-alert-action">
284 <h3>Hold needing transfer found</h3>
285 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
288 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
289 <li>[% borstnum %] [% boraddress %]<br />
290 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
291 [% borcity %] [% borzip %]</li>
292 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
293 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
294 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
295 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
297 [% IF ( transfertodo ) %]
298 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
300 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
303 <form method="post" action="returns.pl" class="confirm">
304 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
305 <input type="hidden" name="print_slip" value="0" />
306 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
307 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
308 <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>
309 [% FOREACH inputloo IN inputloop %]
310 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
311 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
312 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
314 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
315 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
316 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
317 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
318 <input type="hidden" name="barcode" value="0" />
320 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
321 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
326 [% IF ( transfer ) %]
327 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
328 <div id="return1" class="dialog message audio-alert-action">
329 <h3>Please return item to: [% Branches.GetName( returnbranch ) %]</h3>
330 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
331 <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>
335 [% IF ( needstransfer ) %]
336 <!-- needstransfer -->
337 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) %]</h3>
339 <form method="post" action="returns.pl" name="mainform" id="mainform">
341 <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>
343 <button type="submit" name="dotransfer" class="submit"><i class="fa fa-check"></i> Yes</button>
344 <button type="submit" name="notransfer" class="submit"><i class="fa fa-times"></i> No</button>
345 <input type="hidden" name="tobranch" value="[% returnbranch %]" />
346 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
347 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
348 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
349 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
350 [% FOREACH inputloo IN inputloop %]
351 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
352 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
353 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
355 <input type="hidden" name="barcode" value="0" />
356 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
357 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
361 [% IF ( diffbranch ) %]
363 <h3 class="audio-alert-action">Item consigned:</h3>
365 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
371 <form method="post" action="returns.pl"><input type="submit" value="OK" />
372 [% FOREACH inputloo IN inputloop %]
373 [% UNLESS ( inputloo.first ) %]
374 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
375 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
376 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
380 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
381 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
383 <input type="hidden" name="barcode" value="0" />
388 <!-- case of simple return no issue or transfer but with a reservation -->
389 [% IF ( reserved ) %]
392 <div id="hold-found2" class="dialog message audio-alert-action">
394 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
395 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
398 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
399 [% borsurname %], [% borfirstname %]
400 </a> ([% borcnum %])</li>
401 <li>[% borstnum %] [% boraddress %]<br />
402 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
403 [% borcity %] [% borzip %]</li>
404 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
405 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
406 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
407 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
409 [% IF ( transfertodo ) %]
410 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
412 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
414 <form method="post" action="returns.pl" class="confirm">
415 <input type="hidden" name="print_slip" value="0" />
416 [% IF ( transfertodo ) %]
417 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm hold and transfer</button>
418 <button type="submit" class="print" onclick="this.form.print_slip.value = 1; this.form.submit()"><i class="fa fa-print"></i> Print slip, transfer, and confirm</button>
420 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm hold</button>
421 <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>
423 <button type="submit" class="deny" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;"><i class="fa fa-times"></i> Ignore</button>
424 [% FOREACH inputloo IN inputloop %]
425 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
426 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
427 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
428 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
429 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
430 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
431 <input type="hidden" name="resbarcode" value="[% barcode | html %]" />
432 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
433 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
434 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
435 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
436 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
437 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
443 [% IF ( errmsgloop ) %]
444 <div class="dialog alert audio-alert-warning">
445 <h3>Check in message</h3>
446 [% IF itembiblionumber %]
447 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
449 [% FOREACH errmsgloo IN errmsgloop %]
450 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
452 Not for loan status updated.
454 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
455 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
460 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
461 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
467 [% IF ( errmsgloo.badbarcode ) %]
468 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
470 [% IF ( errmsgloo.ispermanent ) %]
471 <p class="problem">Please return item to: [% errmsgloo.msg %]</p>
473 [% IF ( errmsgloo.notissued ) %]
474 <p class="problem">Not checked out.</p>
476 [% IF ( errmsgloo.localuse) %]
477 <p class="problem">Local use recorded</p>
479 [% IF ( errmsgloo.waslost ) %]
480 <p class="problem">Item was lost, now found.</p>
481 [% IF ( LostItemFeeRefunded ) %]
482 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
484 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
487 [% IF ( errmsgloo.withdrawn ) %]
488 [% IF BlockReturnOfWithdrawnItems %]
489 <h5>Cannot check in</h5>
490 <p><strong>NOT CHECKED IN</strong></p>
491 <p class="problem">Item is withdrawn.</p>
493 <p class="problem">Item is withdrawn.</p>
496 [% IF ( errmsgloo.debarred ) %]
497 <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>
499 [% IF ( errmsgloo.prevdebarred ) %]
500 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
502 [% IF ( errmsgloo.foreverdebarred ) %]
503 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
511 [% IF ( checkinmsg ) %]
512 [% IF ( checkinmsgtype == 'alert' ) %]
513 <div class="dialog alert">
515 <div class="dialog message">
517 <p class="problem">[% checkinmsg | html_line_break %]</p>
521 <div id="exemptfines" class="dialog message" style="display:none;">
522 <p>Fines for returned items are forgiven.</p>
524 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
525 <p>Fines are not charged for manually cancelled holds.</p>
527 <div id="dropboxmode" class="dialog message" style="display:none;">
528 <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
532 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
533 <div class="yui-u first">
535 <legend>Check in</legend>
536 <label for="barcode">Enter item barcode: </label>
537 [% IF ( exemptfine ) %]
538 <input name="barcode" id="barcode" size="14" class="focus alert"/>
539 [% ELSIF ( dropboxmode ) %]
540 <input name="barcode" id="barcode" size="14" class="focus alert"/>
542 <input name="barcode" id="barcode" size="14" class="focus"/>
544 <input type="submit" class="submit" value="Submit" />
546 [% IF Koha.Preference('SpecifyReturnDate') %]
547 <div class="date-select" id="return_date_override_fields">
548 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
550 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" />
552 <label for="return_date_override_remember"> Remember for next check in:</label>
553 [% IF ( return_date_override_remember ) %]
554 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
556 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
559 <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;" />
562 [% FOREACH inputloo IN inputloop %]
563 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
564 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
565 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
572 <fieldset id="checkin_options">
573 <legend>Options</legend>
574 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
576 [% IF ( exemptfine ) %]
577 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
579 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
581 <label for="exemptcheck">Forgive overdue charges</label>
583 [% END %] <!-- overduecharges -->
585 [% IF ( dropboxmode ) %]
586 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
588 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
590 <label for="dropboxcheck">Book drop mode</label>
592 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
594 [% IF ( forgivemanualholdsexpire ) %]
595 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
597 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
599 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
601 [% END %] <!-- overduecharges -->
608 <h2>Checked-in items</h2>
609 <table id="checkedintable">
610 <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>
612 [% FOREACH riloo IN riloop %]
614 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
615 [% IF ( riloo.return_overdue ) %]
616 <span class="overdue">[% riloo.duedate %] (overdue)</span>
617 [% ELSE %][% riloo.duedate %]
619 [% ELSE %]Not checked out
622 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
623 [% riloo.itemtitle |html %]
625 [% IF ( riloo.enumchron ) %]
627 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
630 <td class="ci-author">[% riloo.itemauthor %]</td>
631 <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>
632 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) %]</td>
633 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) %]</td>
634 <td class="ci-shelvinglocation">[% riloo.location %]</td>
635 <td class="ci-callnumber">[% riloo.itemcallnumber %]</td>
636 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
637 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %]</td>
638 <td class="ci-patron">[% IF ( riloo.duedate ) %]
639 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
640 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
642 [% ELSE %]Not checked out[% END %]</td>
644 [% IF ( riloo.bornote ) %]<p><span class="circ-hlt">[% riloo.bornote %]</p></span>[% END %]
645 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt">[% riloo.itemnote %]</p></span>[% END %]
646 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt">[% riloo.itemnotes_nonpublic %]</p></span>[% END %]
655 [% INCLUDE 'intranet-bottom.inc' %]