5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Circulation › Check in [% title |html %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
9 [% INCLUDE 'calendar.inc' %]
10 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
12 <script type="text/javascript">
14 function Dopop(link) {
15 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
16 $("#barcode").focus();
18 $(document).ready(function () {
19 $("#return_date_override").datetimepicker({
20 onClose: function(dateText, inst) { $("#barcode").focus(); },
24 $("#exemptcheck").change(function () {
25 if (this.checked == true) {
26 $("#barcode").addClass("alert");
27 $("#exemptfines").show();
29 $("#barcode").removeClass("alert");
30 $("#exemptfines").hide();
32 $("#barcode").focus();
34 $("#dropboxcheck").change(function () {
35 if (this.checked == true) {
36 $("#barcode").addClass("alert");
37 $("#dropboxmode").show();
39 $("#return_date_override_fields :input").attr("disabled", true);
40 $("#return_date_override").datetimepicker("disable");
42 $("#barcode").removeClass("alert");
43 $("#dropboxmode").hide();
45 $("#return_date_override_fields :input").attr("disabled", false);
46 $("#return_date_override").datetimepicker("enable");
48 $("#barcode").focus();
50 [% IF(overduecharges) %] $("#barcode").focus(function () {
51 if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) {
52 $("#barcode").addClass("alert");
54 $("#barcode").removeClass("alert");
57 $("#barcode").blur(function () {
58 $("#barcode").removeClass("alert");
65 <body id="circ_returns" class="circ">
67 [% INCLUDE 'header.inc' %]
68 [% INCLUDE 'checkin-search.inc' %]
70 <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>
72 <div id="doc" class="yui-t7">
79 [% IF additional_materials %]
80 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
81 [% additional_materials %]
85 [% IF ( collectionItemNeedsTransferred ) %]
86 <div id="rotating-collection" class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
89 <!-- Patron has fines -->
91 <div class="dialog alert">
92 <h3>Patron has outstanding fines of [% fines %].</h3>
93 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
97 <!-- Patron has waiting holds -->
98 [% IF ( waiting_holds ) %]
99 <div id="awaiting-pickup" class="dialog message">
100 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
101 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
106 [% IF ( wrongbranch ) %]
107 <div class="dialog alert"><h3>Cannot check in</h3><p>This item must be checked in at its home library. <strong>NOT CHECKED IN</strong></p>
110 <!-- case of a mistake in transfer loop -->
111 [% IF ( WrongTransfer ) %]<div id="return2" class="dialog message"><!-- WrongTransfer --><h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a> to [% Branches.GetName( TransferWaitingAt ) %]</h3><h3><a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;">Print slip</a> or <a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&canceltransfer=1">Cancel transfer</a></h3>
112 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
113 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
114 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
115 <li>[% wboraddress %][% IF ( wboraddress2 ) %]<br />
116 [% wboraddress2 %]<br />[% END %]
117 [% wborcity %] [% wborzip %]</li>
118 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
119 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
122 <form method="post" action="returns.pl" class="confirm">
123 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
124 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
125 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
126 <input type="submit" class="approve" value="Confirm" />
127 <input type="submit" value="Print slip and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
134 <!-- case of a reservation found, and display info -->
139 <audio src="[% interface %]/[% theme %]/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
142 <div id="hold-found1" class="dialog message">
143 <h3>Hold found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
144 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
147 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
148 <li>[% boraddress %]<br />
149 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
150 [% borcity %] [% borzip %]</li>
151 [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
152 [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
153 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
154 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
155 [% IF ( transfertodo ) %]
156 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
158 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
160 <form method="post" action="returns.pl" class="confirm">
161 <input type="submit" class="approve" value="Confirm" />
163 <input type="submit" value="Print and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
164 [% FOREACH inputloo IN inputloop %]
165 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
166 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
167 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
169 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
170 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
171 <input type="hidden" name="resbarcode" value="[% barcode %]" />
172 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
173 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
174 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
179 [% IF ( diffbranch ) %]
182 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
184 <div id="transfer-needed" class="dialog message">
185 <h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
188 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
189 <li>[% boraddress %]<br />
190 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
191 [% borcity %] [% borzip %]</li>
192 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
193 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
194 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
195 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
197 [% IF ( transfertodo ) %]
198 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
200 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
203 <form method="post" action="returns.pl" class="confirm">
204 <input type="submit" class="approve" value="Confirm" />
205 <input type="submit" value="Print slip and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
206 [% FOREACH inputloo IN inputloop %]
207 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
208 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
209 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
211 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
212 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
213 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
214 <input type="hidden" name="barcode" value="0" />
219 [% IF ( transfer ) %]
220 <!-- transfer: item with no reservation, must be returned to its home library -->
221 <div id="return1" class="dialog message">
222 <h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% homebranchname %]<br/>( <a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&branchcode=[% homebranch %]&op=slip'); return true;">Print slip</a> )</h3>
225 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
229 [% IF ( needstransfer ) %]
230 <!-- needstransfer -->
232 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
234 <div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
236 <form method="post" action="returns.pl" name="mainform" id="mainform">
238 <input type="submit" name="dotransfer" value="Yes, Print slip" class="print" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;" />
240 <input type="submit" name="dotransfer" value="Yes" class="submit" />
241 <input type="submit" name="notransfer" value="No" class="submit" />
242 <input type="hidden" name="tobranch" value="[% homebranch %]" />
243 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
244 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
245 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
246 [% FOREACH inputloo IN inputloop %]
247 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
248 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
249 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
251 <input type="hidden" name="barcode" value="0" />
255 [% IF ( diffbranch ) %]
258 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
260 <h3>Item consigned:</h3>
262 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
268 <form method="post" action="returns.pl"><input type="submit" value="OK" />
269 [% FOREACH inputloo IN inputloop %]
270 [% UNLESS ( inputloo.first ) %]
271 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
272 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
273 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
276 <input type="hidden" name="barcode" value="0" />
281 <!-- case of simple return no issue or transfer but with a reservation -->
282 [% IF ( reserved ) %]
286 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
289 <div id="hold-found2" class="dialog message">
290 <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
291 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
294 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
295 [% borsurname %], [% borfirstname %]
296 </a> ([% borcnum %])</li>
297 <li>[% boraddress %]<br />
298 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
299 [% borcity %] [% borzip %]</li>
300 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
301 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
302 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
303 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
305 [% IF ( transfertodo ) %]
306 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
308 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
310 <form method="post" action="returns.pl" class="confirm">
311 [% IF ( transfertodo ) %]
312 <input type="submit" class="approve" value="Confirm hold and transfer" />
313 <input type="submit" value="Print slip, transfer, and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
315 <input type="submit" class="approve" value="Confirm hold" />
316 <input type="submit" value="Print slip and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
318 <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
319 [% FOREACH inputloo IN inputloop %]
320 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
321 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
322 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
323 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
324 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
325 <input type="hidden" name="resbarcode" value="[% barcode %]" />
326 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
327 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
328 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
334 [% IF ( errmsgloop ) %]
335 <div class="dialog alert">
336 <h3>Check in message</h3>
337 [% FOREACH errmsgloo IN errmsgloop %]
338 [% IF ( errmsgloo.badbarcode ) %]
339 <p class="problem">No item with barcode: [% errmsgloo.msg %]</p>
341 [% IF ( errmsgloo.ispermanent ) %]
342 <p class="problem">Please return to [% errmsgloo.msg %]</p>
344 [% IF ( errmsgloo.notissued ) %]
345 <p class="problem">Not checked out.</p>
347 [% IF ( errmsgloo.localuse) %]
348 <p class="problem">Local use recorded</p>
350 [% IF ( errmsgloo.waslost ) %]
351 <p class="problem">Item was lost, now found.</p>
352 [% IF ( LostItemFeeRefunded ) %]
353 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
355 <p class="problem">Any lost item fees for this item will remain on the patron's account</p>
358 [% IF ( errmsgloo.withdrawn ) %]
359 [% IF BlockReturnOfWithdrawnItems %]
360 <h5>Cannot check in</h5>
361 <p class="problem">Item is withdrawn. <strong>NOT CHECKED IN</strong></p>
363 <p class="problem">Item is withdrawn.</p>
366 [% IF ( errmsgloo.debarred ) %]
367 <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>
371 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
375 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
380 [% IF ( checkinmsg ) %]
381 [% IF ( checkinmsgtype == 'alert' ) %]
382 <div class="dialog alert">
384 <div class="dialog message">
386 <p class="problem">[% checkinmsg | html_line_break %]</p>
390 <div id="exemptfines" class="dialog message" style="display:none;">
391 <p>Fines for returned items are forgiven.</p>
393 <div id="dropboxmode" class="dialog message" style="display:none;">
394 <p>Book drop mode. (Effective checkin date is [% dropboxdate %] ).</p>
398 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
399 <div class="yui-u first">
401 <legend>Check in</legend>
402 <label for="barcode">Enter item barcode: </label>
403 [% IF ( exemptfine ) %]
404 <input name="barcode" id="barcode" size="14" class="focus alert"/>
405 [% ELSIF ( dropboxmode ) %]
406 <input name="barcode" id="barcode" size="14" class="focus alert"/>
408 <input name="barcode" id="barcode" size="14" class="focus"/>
410 <input type="submit" class="submit" value="Submit" />
412 [% IF Koha.Preference('SpecifyReturnDate') %]
413 <div class="date-select" id="return_date_override_fields">
414 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
416 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" readonly="readonly" />
418 <label for="return_date_override_remember"> Remember for next check in:</label>
419 [% IF ( return_date_override_remember ) %]
420 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
422 <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
425 <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;" />
428 [% FOREACH inputloo IN inputloop %]
429 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
430 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
431 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
438 <fieldset id="checkin_options">
439 <legend>Options</legend>
440 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
442 [% IF ( exemptfine ) %]
443 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
445 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
447 <label for="exemptcheck">Forgive overdue charges</label>
449 [% END %] <!-- overduecharges -->
451 [% IF ( dropboxmode ) %]
452 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
454 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
456 <label for="dropboxcheck">Book drop mode</label>
464 <h2>Checked-in items</h2>
466 <tr><th>Due date</th><th>Title</th> <th>Author</th> <th>Barcode</th><th>Home library</th><th>Holding library</th><th>Shelving location</th><th>Call number</th><th>Type</th> <th>Patron</th><th>Note</th></tr>
468 [% FOREACH riloo IN riloop %]
470 <td>[% IF ( riloo.duedate ) %]
471 [% IF ( riloo.return_overdue ) %]
472 <span class="overdue">[% riloo.duedate %] (overdue)</span>
473 [% ELSE %][% riloo.duedate %]
475 [% ELSE %]Not checked out
478 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
479 [% riloo.itemtitle |html %]</a></td>
480 <td>[% riloo.itemauthor %]</td>
481 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
482 <td>[% riloo.homebranch %]</td>
483 <td>[% riloo.holdingbranch %]</td>
484 <td>[% riloo.location %]</td>
485 <td>[% riloo.itemcallnumber %]</td>
486 <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
487 <td>[% IF ( riloo.duedate ) %]
488 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
489 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
491 [% ELSE %]Not checked out[% END %]</td>
492 <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
493 [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
502 [% INCLUDE 'intranet-bottom.inc' %]