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 [% BLOCK display_holdpatron_address %]
25 [% IF Koha.Preference( 'AddressFormat' ) %]
26 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
28 [% INCLUDE 'member-display-address-style-us.inc' %]
32 [% INCLUDE 'doc-head-open.inc' %]
33 <title>Koha › Circulation › Check in [% title |html %]</title>
34 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
35 [% INCLUDE 'doc-head-close.inc' %]
36 [% INCLUDE 'datatables.inc' %]
37 [% INCLUDE 'columns_settings.inc' %]
38 [% INCLUDE 'calendar.inc' %]
39 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
40 [% INCLUDE 'timepicker.inc' %]
42 <script type="text/javascript">
44 function Dopop(link) {
45 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
46 $("#barcode").focus();
48 $(document).ready(function () {
49 $(".modal").modal({ backdrop: 'static' }).on('shown', function() {
50 $("#barcode").prop("disabled", true);
51 }).on('hidden', function() {
52 $("#barcode").prop("disabled", false).focus();
55 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
58 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]');
61 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %]
62 var returns_table = KohaTable("#checkedintable", {
67 "dom": 'B<"clearfix">t',
70 $("#return_date_override").datetimepicker({
71 onClose: function(dateText, inst) {
72 if (validate_date(dateText, inst) ) {
73 $("#barcode").focus();
80 }).on("change", function(e, value) {
81 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
83 $("#return_date_override").on("blur", function() {
84 check_valid_return_date();
86 $("#checkin-form").submit(function( event ) {
87 if ( !check_valid_return_date() ) {
88 event.preventDefault();
92 function check_valid_return_date() {
93 if ( $("#return_date_override").val() ) {
94 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
96 if ( !datetime || datetime > now ) {
97 alert("Invalid return date/time!");
98 $("#return_date_override").val("")
105 $("#exemptcheck").change(function () {
106 if (this.checked == true) {
107 $("#barcode").addClass("alert");
108 $("#exemptfines").show();
110 $("#barcode").removeClass("alert");
111 $("#exemptfines").hide();
113 $("#barcode").focus();
115 $("#dropboxcheck").change(function () {
116 if (this.checked == true) {
117 $("#barcode").addClass("alert");
118 $("#dropboxmode").show();
120 $("#return_date_override_fields :input").prop('disabled', true);
121 $("#return_date_override").datetimepicker("disable");
123 $("#barcode").removeClass("alert");
124 $("#dropboxmode").hide();
126 $("#return_date_override_fields :input").prop('disabled', false);
127 $("#return_date_override").datetimepicker("enable");
129 $("#barcode").focus();
131 $("#forgivemanualholdsexpire").change(function () {
132 if (this.checked == true) {
133 $("#barcode").addClass("alert");
134 $("#forgivemanualholdsexpire-alert").show();
136 $("#barcode").removeClass("alert");
137 $("#forgivemanualholdsexpire-alert").hide();
139 $("#barcode").focus();
141 [% IF(overduecharges) %] $("#barcode").focus(function () {
142 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
143 $("#barcode").addClass("alert");
145 $("#barcode").removeClass("alert");
148 $("#barcode").blur(function () {
149 $("#barcode").removeClass("alert");
152 $('.openWin').on("click",function(e){
153 Dopop( $(this).data("url") );
159 <body id="circ_returns" class="circ">
160 <span class="audio-alert-success"></span>
162 [% INCLUDE 'header.inc' %]
163 [% INCLUDE 'checkin-search.inc' %]
165 <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>
167 [% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
171 [% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
174 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
175 <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>
176 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
177 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
180 [% IF additional_materials %]
181 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
182 [% additional_materials %]
186 [% IF ( collectionItemNeedsTransferred ) %]
187 <div id="rotating-collection" class="dialog message">
188 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) %]</h3>
189 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
190 <p>This item is part of a rotating collection.</p>
191 <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>
195 <!-- Patron has added an issue note -->
196 [% IF ( issue.note) %]
197 <div class="dialog message">
199 <p>[% issue.notedate | $KohaDates %]</p>
200 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]"> [% title |html %]</a> [% author %]</p>
201 <p>[% issue.note %]</p>
205 <!-- Patron has fines -->
207 <div class="dialog alert">
208 <h3>Patron has outstanding fines of [% fines %].</h3>
209 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
213 <!-- Patron has waiting holds -->
214 [% IF ( waiting_holds ) %]
215 <div id="awaiting-pickup" class="dialog message">
216 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
217 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
221 <!-- Patron is restricted and checkin was backdated -->
222 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
223 <div id="restricted_backdated" class="dialog message">
225 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">
226 [% borrower.firstname %] [% borrower.surname %]
228 is restricted. Please verify this patron should still be restricted.
233 [% IF ( wrongbranch ) %]
234 <div class="dialog alert"><h3>Cannot check in</h3>
235 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
236 </p><strong>NOT CHECKED IN</strong></p>
237 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) %]</strong></p>
241 <!-- case of a mistake in transfer loop -->
242 [% IF ( WrongTransfer ) %]
243 <div id="return2" class="dialog message">
244 <!-- WrongTransfer -->
245 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) %]</h3>
246 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
247 <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>
248 <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>
249 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
251 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
252 [% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
253 [% INCLUDE display_holdpatron_address %]
254 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
255 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
258 <form method="post" action="returns.pl" class="confirm">
259 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
260 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
261 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
262 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
263 <input type="hidden" name="print_slip" value="0" />
264 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
265 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
266 <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>
267 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
268 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
275 <div id="hold-found1" class="modal fade audio-alert-action">
276 <div class="modal-dialog">
277 <div class="modal-content">
278 <form method="post" action="returns.pl" class="confirm">
279 <div class="modal-header">
281 Hold found (item is already waiting):
283 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
284 [% itembarcode |html %]: [% title |html %]
289 <div class="modal-body">
290 [% IF ( reservenotes ) %]
291 <h4>Notes: [% reservenotes %]</h4>
297 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])
298 <span class="patron-category"> - [% borcategory %]</span>
300 [% INCLUDE display_holdpatron_address %]
301 [% IF ( borphone ) %]
302 <li> [% borphone %]</li>
305 [% IF ( boremail ) %]
306 <li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>
309 [% IF ( debarred ) %]
310 <li class="error">Patron is RESTRICTED</li>
313 [% IF ( gonenoaddress ) %]
314 <li class="error">Patron's address is in doubt</li>
318 [% IF ( transfertodo ) %]
319 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
321 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
324 [% FOREACH inputloo IN inputloop %]
325 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
326 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
327 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
330 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
331 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
332 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
333 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
334 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
335 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
336 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
337 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
339 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
340 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
343 <div class="modal-footer">
344 <input type="hidden" name="cancel_reserve" value="0" />
346 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
347 <i class="fa fa-check"></i> Confirm
350 <input type="hidden" name="print_slip" value="0" />
351 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
352 <i class="fa fa-print"></i> Print and confirm
355 <button type="submit" class="btn btn-default deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
356 <i class="fa fa-times"></i> Cancel hold
365 [% IF ( diffbranch ) %]
367 <div id="transfer-needed" class="dialog message audio-alert-action">
368 <h3>Hold needing transfer found</h3>
369 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
372 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %]) <span class="patron-category"> - [% wborcategory %]</span> </li>
373 [% INCLUDE display_holdpatron_address %]
374 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
375 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
376 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
377 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
379 [% IF ( transfertodo ) %]
380 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
382 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
385 <form method="post" action="returns.pl" class="confirm">
386 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
387 <input type="hidden" name="print_slip" value="0" />
388 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
389 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
390 <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>
391 [% FOREACH inputloo IN inputloop %]
392 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
393 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
394 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
396 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
397 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
398 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
399 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
400 <input type="hidden" name="barcode" value="0" />
402 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
403 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
408 [% IF ( transfer ) %]
409 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
410 <div id="return1" class="dialog message audio-alert-action">
411 <h3>Please return item to: [% Branches.GetName( returnbranch ) %]</h3>
412 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
413 <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>
417 [% IF ( needstransfer ) %]
418 <!-- needstransfer -->
419 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) %]</h3>
421 <form method="post" action="returns.pl" name="mainform" id="mainform">
423 <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>
425 <button type="submit" name="dotransfer" value="Yes" class="submit"><i class="fa fa-check"></i> Yes</button>
426 <button type="submit" name="notransfer" value="No" class="submit"><i class="fa fa-times"></i> No</button>
427 <input type="hidden" name="tobranch" value="[% returnbranch %]" />
428 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
429 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
430 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
431 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
432 [% FOREACH inputloo IN inputloop %]
433 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
434 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
435 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
437 <input type="hidden" name="barcode" value="0" />
438 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
439 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
443 [% IF ( diffbranch ) %]
445 <h3 class="audio-alert-action">Item consigned:</h3>
447 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
453 <form method="post" action="returns.pl"><input type="submit" value="OK" />
454 [% FOREACH inputloo IN inputloop %]
455 [% UNLESS ( inputloo.first ) %]
456 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
457 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
458 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
462 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
463 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
465 <input type="hidden" name="barcode" value="0" />
470 <!-- case of simple return no issue or transfer but with a reservation -->
471 [% IF ( reserved ) %]
473 <div id="hold-found2" class="modal fade audio-alert-action">
474 <div class="modal-dialog">
475 <div class="modal-content">
476 <form method="post" action="returns.pl" class="confirm">
477 <div class="modal-header">
481 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
482 [% itembarcode |html %]: [% title |html %]
486 <div class="modal-body">
487 [% IF ( reservenotes ) %]
488 <h4>Notes: [% reservenotes %]</h4>
492 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
493 [% borsurname %], [% borfirstname %]
496 <span class="patron-category"> - [% borcategory %]</span>
499 [% INCLUDE display_holdpatron_address %]
501 [% IF ( borphone ) %]
502 <li>[% borphone %]</li>
505 [% IF ( boremail ) %]
507 [% IF ( transfertodo ) %]
510 <a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>
515 [% UNLESS ( transfertodo) %]
516 [% INCLUDE display_bormessagepref %]
519 [% IF ( debarred ) %]
520 <li class="error">Patron is RESTRICTED</li>
523 [% IF ( gonenoaddress ) %]
524 <li class="error">Patron's address is in doubt</li>
527 [% IF ( transfertodo ) %]
528 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) %]</h4>
530 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) %]</h4>
533 <input type="hidden" name="print_slip" value="0" />
536 [% FOREACH inputloo IN inputloop %]
537 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
538 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
539 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
542 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
543 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
544 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
545 <input type="hidden" name="reserve_id" value="[% reserve_id %]" />
546 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
547 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
548 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
549 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
550 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
551 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
554 <div class="modal-footer">
555 [% IF ( transfertodo ) %]
556 <button type="submit" class="btn btn-default approve">
557 <i class="fa fa-check"></i> Confirm hold and transfer
559 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit()">
560 <i class="fa fa-print"></i> Print slip, transfer, and confirm
563 <button type="submit" class="btn btn-default approve">
564 <i class="fa fa-check"></i> Confirm hold
566 <button type="submit" class="btn btn-default print" onclick="this.form.print_slip.value = 1; this.form.submit();">
567 <i class="fa fa-print"></i> Print slip and confirm
571 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('#barcode').focus(); return false;">
572 <i class="fa fa-times"></i> Ignore
582 [% IF ( errmsgloop ) %]
583 <div class="dialog alert audio-alert-warning">
584 <h3>Check in message</h3>
585 [% IF itembiblionumber %]
586 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
588 [% FOREACH errmsgloo IN errmsgloop %]
589 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
591 Not for loan status updated.
593 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
594 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
599 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
600 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
606 [% IF ( errmsgloo.badbarcode ) %]
607 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
609 [% IF ( errmsgloo.ispermanent ) %]
610 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) %]</p>
612 [% IF ( errmsgloo.notissued ) %]
613 <p class="problem">Not checked out.</p>
615 [% IF ( errmsgloo.localuse) %]
616 <p class="problem">Local use recorded</p>
618 [% IF ( errmsgloo.waslost ) %]
619 <p class="problem">Item was lost, now found.</p>
620 [% IF ( LostItemFeeRefunded ) %]
621 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
623 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
626 [% IF ( errmsgloo.withdrawn ) %]
627 [% IF BlockReturnOfWithdrawnItems %]
628 <h5>Cannot check in</h5>
629 <p><strong>NOT CHECKED IN</strong></p>
630 <p class="problem">Item is withdrawn.</p>
632 <p class="problem">Item is withdrawn.</p>
635 [% IF ( errmsgloo.debarred ) %]
636 <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>
638 [% IF ( errmsgloo.prevdebarred ) %]
639 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
641 [% IF ( errmsgloo.foreverdebarred ) %]
642 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
645 [% IF errmsgloo.data_corrupted %]
646 <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>
652 [% IF ( checkinmsg ) %]
653 [% IF ( checkinmsgtype == 'alert' ) %]
654 <div class="dialog alert">
656 <div class="dialog message">
658 <p class="problem">[% checkinmsg | html_line_break %]</p>
662 <div id="exemptfines" class="dialog message" style="display:none;">
663 <p>Fines for returned items are forgiven.</p>
665 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
666 <p>Fines are not charged for manually cancelled holds.</p>
668 <div id="dropboxmode" class="dialog message" style="display:none;">
669 <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
673 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
674 <div class="yui-u first">
676 <legend>Check in</legend>
677 <label for="barcode">Enter item barcode: </label>
678 [% IF ( exemptfine ) %]
679 <input name="barcode" id="barcode" size="14" class="focus alert"/>
680 [% ELSIF ( dropboxmode ) %]
681 <input name="barcode" id="barcode" size="14" class="focus alert"/>
683 <input name="barcode" id="barcode" size="14" class="focus"/>
685 <input type="submit" class="submit" value="Submit" />
687 [% IF Koha.Preference('SpecifyReturnDate') %]
688 <div class="date-select" id="return_date_override_fields">
689 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
691 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" />
693 <label for="return_date_override_remember"> Remember for next check in:</label>
694 [% IF ( return_date_override_remember ) %]
695 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
697 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
700 <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;" />
703 [% FOREACH inputloo IN inputloop %]
704 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
705 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
706 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
713 <fieldset id="checkin_options">
714 <legend>Options</legend>
715 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
717 [% IF ( exemptfine ) %]
718 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
720 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
722 <label for="exemptcheck">Forgive overdue charges</label>
724 [% END %] <!-- overduecharges -->
726 [% IF ( dropboxmode ) %]
727 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
729 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
731 <label for="dropboxcheck">Book drop mode</label>
733 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
735 [% IF ( forgivemanualholdsexpire ) %]
736 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
738 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
740 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
742 [% END %] <!-- overduecharges -->
749 <h2>Checked-in items</h2>
750 <table id="checkedintable">
751 <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>
753 [% FOREACH riloo IN riloop %]
755 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
756 [% IF ( riloo.return_overdue ) %]
757 <span class="overdue">[% riloo.duedate %] (overdue)</span>
758 [% ELSE %][% riloo.duedate %]
760 [% ELSE %]Not checked out
763 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
764 [% riloo.itemtitle |html %]
766 [% IF ( riloo.enumchron ) %]
768 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
771 <td class="ci-author">[% riloo.itemauthor %]</td>
772 <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>
773 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) %]</td>
774 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) %]</td>
775 <td class="ci-shelvinglocation">[% riloo.location %]</td>
776 <td class="ci-callnumber">[% riloo.itemcallnumber %]</td>
777 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
778 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %]</td>
779 <td class="ci-patron">[% IF ( riloo.duedate ) %]
780 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
781 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
783 [% IF riloo.borissuescount %]
784 <span class="results_summary nowrap">
785 <span class="label">Checkouts:</span>
786 <span class="number_box">
787 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.borrowernumber %]">[% riloo.borissuescount %]</a>
791 [% ELSE %]Not checked out[% END %]</td>
793 [% IF ( riloo.bornote ) %]<p><span class="circ-hlt patron-note">[% riloo.bornote %]</p></span>[% END %]
794 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote %]</p></span>[% END %]
795 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic %]</p></span>[% END %]
802 [% IF Koha.Preference('CircSidebar') %]
804 <div class="yui-b noprint">
805 [% INCLUDE 'circ-nav.inc' %]
811 [% INCLUDE 'intranet-bottom.inc' %]