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) { $("#barcode").focus(); },
67 $("#return_date_override").on("blur", function() {
68 check_valid_return_date();
70 $("#checkin-form").submit(function( event ) {
71 if ( !check_valid_return_date() ) {
72 event.preventDefault();
76 function check_valid_return_date() {
77 if ( $("#return_date_override").val() ) {
78 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
80 if ( !datetime || datetime > now ) {
81 alert("Invalid return date/time!");
82 $("#return_date_override").val("")
89 $("#exemptcheck").change(function () {
90 if (this.checked == true) {
91 $("#barcode").addClass("alert");
92 $("#exemptfines").show();
94 $("#barcode").removeClass("alert");
95 $("#exemptfines").hide();
97 $("#barcode").focus();
99 $("#dropboxcheck").change(function () {
100 if (this.checked == true) {
101 $("#barcode").addClass("alert");
102 $("#dropboxmode").show();
104 $("#return_date_override_fields :input").prop('disabled', true);
105 $("#return_date_override").datetimepicker("disable");
107 $("#barcode").removeClass("alert");
108 $("#dropboxmode").hide();
110 $("#return_date_override_fields :input").prop('disabled', false);
111 $("#return_date_override").datetimepicker("enable");
113 $("#barcode").focus();
115 $("#forgivemanualholdsexpire").change(function () {
116 if (this.checked == true) {
117 $("#barcode").addClass("alert");
118 $("#forgivemanualholdsexpire-alert").show();
120 $("#barcode").removeClass("alert");
121 $("#forgivemanualholdsexpire-alert").hide();
123 $("#barcode").focus();
125 [% IF(overduecharges) %] $("#barcode").focus(function () {
126 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
127 $("#barcode").addClass("alert");
129 $("#barcode").removeClass("alert");
132 $("#barcode").blur(function () {
133 $("#barcode").removeClass("alert");
136 $('.openWin').on("click",function(e){
138 Dopop( $(this).data("url") );
144 <body id="circ_returns" class="circ">
145 <span class="audio-alert-success"></span>
147 [% INCLUDE 'header.inc' %]
148 [% INCLUDE 'checkin-search.inc' %]
150 <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>
152 <div id="doc" class="yui-t7">
159 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
160 <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>
161 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
162 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
165 [% IF additional_materials %]
166 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
167 [% additional_materials %]
171 [% IF ( collectionItemNeedsTransferred ) %]
172 <div id="rotating-collection" class="dialog message">
173 <h3>Please transfer item to: [% collectionBranchName %]</h3>
174 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
175 <p>This item is part of a rotating collection.</p>
176 <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>
180 <!-- Patron has fines -->
182 <div class="dialog alert">
183 <h3>Patron has outstanding fines of [% fines %].</h3>
184 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
188 <!-- Patron has waiting holds -->
189 [% IF ( waiting_holds ) %]
190 <div id="awaiting-pickup" class="dialog message">
191 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
192 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
196 <!-- Patron is restricted and checkin was backdated -->
197 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
198 <div id="restricted_backdated" class="dialog message">
200 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">
201 [% borrower.firstname %] [% borrower.surname %]
203 is restricted. Please verify this patron should still be restricted.
208 [% IF ( wrongbranch ) %]
209 <div class="dialog alert"><h3>Cannot check in</h3>
210 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
211 </p><strong>NOT CHECKED IN</strong></p>
212 <p>This item must be checked in at following library: <strong>[% Branches.GetName( rightbranch ) %]</strong></p>
215 <!-- case of a mistake in transfer loop -->
216 [% IF ( WrongTransfer ) %]
217 <div id="return2" class="dialog message">
218 <!-- WrongTransfer -->
219 <h3>Please return item to: [% Branches.GetName( TransferWaitingAt ) %]</h3>
220 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
221 <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>
222 <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>
223 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
224 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
225 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
226 <li>[% wborstnum %] [% wboraddress %][% IF ( wboraddress2 ) %]<br />
227 [% wboraddress2 %]<br />[% END %]
228 [% wborcity %] [% wborzip %]</li>
229 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
230 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
233 <form method="post" action="returns.pl" class="confirm">
234 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
235 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
236 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
237 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
238 <input type="hidden" name="print_slip" value="0" />
239 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
240 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
241 <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>
242 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
243 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
250 <div id="hold-found1" class="modal fade audio-alert-action">
251 <form method="post" action="returns.pl" class="confirm">
252 <div class="modal-header">
254 Hold found (item is already waiting):
255 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
256 [% itembarcode |html %]: [% title |html %]
261 <div class="modal-body">
262 [% IF ( reservenotes ) %]
263 <h4>Notes: [% reservenotes %]</h4>
269 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])
273 [% borstnum %] [% boraddress %]<br />
274 [% IF ( boraddress2 ) %]
275 [% boraddress2 %]<br />
277 [% borcity %] [% borzip %]
280 [% IF ( borphone ) %]
281 <li> [% borphone %]</li>
284 [% IF ( boremail ) %]
285 <li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>
288 [% IF ( debarred ) %]
289 <li class="error">Patron is RESTRICTED</li>
292 [% IF ( gonenoaddress ) %]
293 <li class="error">Patron's address is in doubt</li>
296 [% IF ( transfertodo ) %]
297 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
299 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
302 [% FOREACH inputloo IN inputloop %]
303 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
304 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
305 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
308 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
309 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
310 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
311 <input type="hidden" name="resbarcode" value="[% barcode | html %]" />
312 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
313 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
314 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
315 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
317 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
318 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
321 <div class="modal-footer">
322 <input type="hidden" name="cancel_reserve" value="0" />
323 <button type="submit" class="btn btn-danger deny" onclick="this.form.cancel_reserve.value = 1; this.form.submit();">
324 <i class="fa fa-times"></i> Cancel hold
327 <button type="submit" class="btn approve">
328 <i class="fa fa-check"></i> Confirm
331 <input type="hidden" name="print_slip" value="0" />
332 <button type="submit" class="btn btn-primary print" onclick="this.form.print_slip.value = 1; this.form.submit();">
333 <i class="fa fa-print"></i> Print and confirm
340 [% IF ( diffbranch ) %]
342 <div id="transfer-needed" class="dialog message audio-alert-action">
343 <h3>Hold needing transfer found</h3>
344 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
347 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
348 <li>[% borstnum %] [% boraddress %]<br />
349 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
350 [% borcity %] [% borzip %]</li>
351 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
352 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
353 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
354 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
356 [% IF ( transfertodo ) %]
357 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
359 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
362 <form method="post" action="returns.pl" class="confirm">
363 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
364 <input type="hidden" name="print_slip" value="0" />
365 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
366 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
367 <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>
368 [% FOREACH inputloo IN inputloop %]
369 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
370 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
371 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
373 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
374 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
375 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
376 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
377 <input type="hidden" name="barcode" value="0" />
379 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
380 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
385 [% IF ( transfer ) %]
386 <!-- transfer: item with no reservation, must be returned according to home library circulation rules -->
387 <div id="return1" class="dialog message audio-alert-action">
388 <h3>Please return item to: [% Branches.GetName( returnbranch ) %]</h3>
389 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
390 <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>
394 [% IF ( needstransfer ) %]
395 <!-- needstransfer -->
396 <div id="item-transfer" class="dialog message audio-alert-action"><h3> This item needs to be transferred to [% Branches.GetName( returnbranch ) %]</h3>
398 <form method="post" action="returns.pl" name="mainform" id="mainform">
400 <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>
402 <button type="submit" name="dotransfer" class="submit"><i class="fa fa-check"></i> Yes</button>
403 <button type="submit" name="notransfer" class="submit"><i class="fa fa-times"></i> No</button>
404 <input type="hidden" name="tobranch" value="[% returnbranch %]" />
405 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
406 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
407 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
408 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
409 [% FOREACH inputloo IN inputloop %]
410 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
411 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
412 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
414 <input type="hidden" name="barcode" value="0" />
415 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
416 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
420 [% IF ( diffbranch ) %]
422 <h3 class="audio-alert-action">Item consigned:</h3>
424 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
430 <form method="post" action="returns.pl"><input type="submit" value="OK" />
431 [% FOREACH inputloo IN inputloop %]
432 [% UNLESS ( inputloo.first ) %]
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 %]" />
439 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
440 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
442 <input type="hidden" name="barcode" value="0" />
447 <!-- case of simple return no issue or transfer but with a reservation -->
448 [% IF ( reserved ) %]
450 <div id="hold-found2" class="modal fade audio-alert-action">
451 <form method="post" action="returns.pl" class="confirm">
452 <div class="modal-header">
455 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">
456 [% itembarcode |html %]: [% title |html %]
460 <div class="modal-body">
461 [% IF ( reservenotes ) %]
462 <h4>Notes: [% reservenotes %]</h4>
467 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
468 [% borsurname %], [% borfirstname %]
474 [% borstnum %] [% boraddress %]<br />
475 [% IF ( boraddress2 ) %]
476 [% boraddress2 %]<br />
478 [% borcity %] [% borzip %]
482 <div id="hold-found2" class="dialog message audio-alert-action">
484 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
485 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
488 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
489 [% borsurname %], [% borfirstname %]
490 </a> ([% borcnum %])</li>
491 <li>[% borstnum %] [% boraddress %]<br />
492 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
493 [% borcity %] [% borzip %]</li>
494 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
495 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
496 [% UNLESS ( transfertodo) %]
497 [% INCLUDE display_bormessagepref %]
499 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
500 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
502 [% IF ( transfertodo ) %]
503 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
505 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
507 <form method="post" action="returns.pl" class="confirm">
508 <input type="hidden" name="print_slip" value="0" />
509 [% IF ( transfertodo ) %]
510 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm hold and transfer</button>
511 <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>
513 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm hold</button>
514 <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>
516 <button type="submit" class="deny" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;"><i class="fa fa-times"></i> Ignore</button>
517 [% FOREACH inputloo IN inputloop %]
518 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
519 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
520 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
521 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
522 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
523 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
524 <input type="hidden" name="resbarcode" value="[% barcode | html %]" />
525 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
526 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
527 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
528 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
529 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
530 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
534 [% IF ( borphone ) %]
535 <li>[% borphone %]</li>
538 [% IF ( boremail ) %]
540 [% IF ( transfertodo ) %]
543 <a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>
548 [% IF ( debarred ) %]
549 <li class="error">Patron is RESTRICTED</li>
552 [% IF ( gonenoaddress ) %]
553 <li class="error">Patron's address is in doubt</li>
556 [% IF ( transfertodo ) %]
557 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
559 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
562 <input type="hidden" name="print_slip" value="0" />
565 [% FOREACH inputloo IN inputloop %]
566 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
567 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
568 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
571 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
572 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
573 <input type="hidden" name="biblionumber" value="[% itembiblionumber %]" />
574 <input type="hidden" name="resbarcode" value="[% barcode %]" />
575 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
576 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
577 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
578 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire %]" />
579 <input type="hidden" name="return_date_override" value="[% return_date_override %]" />
580 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember %]" />
583 <div class="modal-footer">
584 [% IF ( transfertodo ) %]
585 <button type="submit" class="btn approve">
586 <i class="fa fa-check"></i> Confirm hold and transfer
588 <button type="submit" class="btn btn-primary print" onclick="this.form.print_slip.value = 1; this.form.submit()">
589 <i class="fa fa-print"></i> Print slip, transfer, and confirm
592 <button type="submit" class="btn approve">
593 <i class="fa fa-check"></i> Confirm hold
595 <button type="submit" class="btn btn-primary print" onclick="this.form.print_slip.value = 1; this.form.submit();">
596 <i class="fa fa-print"></i> Print slip and confirm
600 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-danger deny" onclick="$('#barcode').focus(); return false;">
601 <i class="fa fa-times"></i> Ignore
606 >>>>>>> Bug 11360 - Disable barcode field and submit button when a hold is found
610 [% IF ( errmsgloop ) %]
611 <div class="dialog alert audio-alert-warning">
612 <h3>Check in message</h3>
613 [% IF itembiblionumber %]
614 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% itembarcode |html %]: [% title |html %]</a></p>
616 [% FOREACH errmsgloo IN errmsgloop %]
617 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
619 Not for loan status updated.
621 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
622 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) %].
627 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
628 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) %].
634 [% IF ( errmsgloo.badbarcode ) %]
635 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
637 [% IF ( errmsgloo.ispermanent ) %]
638 <p class="problem">Please return item to: [% errmsgloo.msg %]</p>
640 [% IF ( errmsgloo.notissued ) %]
641 <p class="problem">Not checked out.</p>
643 [% IF ( errmsgloo.localuse) %]
644 <p class="problem">Local use recorded</p>
646 [% IF ( errmsgloo.waslost ) %]
647 <p class="problem">Item was lost, now found.</p>
648 [% IF ( LostItemFeeRefunded ) %]
649 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
651 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
654 [% IF ( errmsgloo.withdrawn ) %]
655 [% IF BlockReturnOfWithdrawnItems %]
656 <h5>Cannot check in</h5>
657 <p><strong>NOT CHECKED IN</strong></p>
658 <p class="problem">Item is withdrawn.</p>
660 <p class="problem">Item is withdrawn.</p>
663 [% IF ( errmsgloo.debarred ) %]
664 <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>
666 [% IF ( errmsgloo.prevdebarred ) %]
667 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
669 [% IF ( errmsgloo.foreverdebarred ) %]
670 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
678 [% IF ( checkinmsg ) %]
679 [% IF ( checkinmsgtype == 'alert' ) %]
680 <div class="dialog alert">
682 <div class="dialog message">
684 <p class="problem">[% checkinmsg | html_line_break %]</p>
688 <div id="exemptfines" class="dialog message" style="display:none;">
689 <p>Fines for returned items are forgiven.</p>
691 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
692 <p>Fines are not charged for manually cancelled holds.</p>
694 <div id="dropboxmode" class="dialog message" style="display:none;">
695 <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
699 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
700 <div class="yui-u first">
702 <legend>Check in</legend>
703 <label for="barcode">Enter item barcode: </label>
704 [% IF ( exemptfine ) %]
705 <input name="barcode" id="barcode" size="14" class="focus alert"/>
706 [% ELSIF ( dropboxmode ) %]
707 <input name="barcode" id="barcode" size="14" class="focus alert"/>
709 <input name="barcode" id="barcode" size="14" class="focus"/>
711 <input type="submit" class="submit" value="Submit" />
713 [% IF Koha.Preference('SpecifyReturnDate') %]
714 <div class="date-select" id="return_date_override_fields">
715 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
717 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" />
719 <label for="return_date_override_remember"> Remember for next check in:</label>
720 [% IF ( return_date_override_remember ) %]
721 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
723 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
726 <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;" />
729 [% FOREACH inputloo IN inputloop %]
730 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
731 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
732 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
739 <fieldset id="checkin_options">
740 <legend>Options</legend>
741 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
743 [% IF ( exemptfine ) %]
744 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
746 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
748 <label for="exemptcheck">Forgive overdue charges</label>
750 [% END %] <!-- overduecharges -->
752 [% IF ( dropboxmode ) %]
753 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
755 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
757 <label for="dropboxcheck">Book drop mode</label>
759 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
761 [% IF ( forgivemanualholdsexpire ) %]
762 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
764 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
766 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
768 [% END %] <!-- overduecharges -->
775 <h2>Checked-in items</h2>
776 <table id="checkedintable">
777 <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>
779 [% FOREACH riloo IN riloop %]
781 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
782 [% IF ( riloo.return_overdue ) %]
783 <span class="overdue">[% riloo.duedate %] (overdue)</span>
784 [% ELSE %][% riloo.duedate %]
786 [% ELSE %]Not checked out
789 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
790 [% riloo.itemtitle |html %]
792 [% IF ( riloo.enumchron ) %]
794 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron %]</span>
797 <td class="ci-author">[% riloo.itemauthor %]</td>
798 <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>
799 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) %]</td>
800 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) %]</td>
801 <td class="ci-shelvinglocation">[% riloo.location %]</td>
802 <td class="ci-callnumber">[% riloo.itemcallnumber %]</td>
803 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
804 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %]</td>
805 <td class="ci-patron">[% IF ( riloo.duedate ) %]
806 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
807 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
809 [% ELSE %]Not checked out[% END %]</td>
811 [% IF ( riloo.bornote ) %]<p><span class="circ-hlt patron-note">[% riloo.bornote %]</p></span>[% END %]
812 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote %]</p></span>[% END %]
813 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic %]</p></span>[% END %]
822 [% INCLUDE 'intranet-bottom.inc' %]