2 [% USE KohaBranchName %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Circulation › Check in [% title |html %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <script type="text/javascript">
10 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
11 $("#barcode").focus();
13 $(document).ready(function () {
14 $("#exemptcheck").change(function () {
15 if (this.checked == true) {
16 $("#barcode").addClass("alert");
17 $("#exemptfines").show();
19 $("#barcode").removeClass("alert");
20 $("#exemptfines").hide();
22 $("#barcode").focus();
24 $("#dropboxcheck").change(function () {
25 if (this.checked == true) {
26 $("#barcode").addClass("alert");
27 $("#dropboxmode").show();
29 $("#barcode").removeClass("alert");
30 $("#dropboxmode").hide();
32 $("#barcode").focus();
34 [% IF(overduecharges) %] $("#barcode").focus(function () {
35 if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) {
36 $("#barcode").addClass("alert");
38 $("#barcode").removeClass("alert");
41 $("#barcode").blur(function () {
42 $("#barcode").removeClass("alert");
49 <body id="circ_returns" class="circ">
51 [% INCLUDE 'header.inc' %]
52 [% INCLUDE 'checkin-search.inc' %]
54 <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>
56 <div id="doc" class="yui-t7">
63 [% IF additional_materials %]
64 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
65 [% additional_materials %]
69 [% IF ( collectionItemNeedsTransferred ) %]
70 <div id="rotating-collection" class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
73 <!-- Patron has fines -->
75 <div class="dialog alert">
76 <h3>Patron has outstanding fines of [% fines %].</h3>
77 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
81 <!-- Patron has waiting holds -->
82 [% IF ( waiting_holds ) %]
83 <div id="awaiting-pickup" class="dialog message">
84 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
85 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
90 [% IF ( wrongbranch ) %]
91 <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>
94 <!-- case of a mistake in transfer loop -->
95 [% 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 [% TransferWaitingAt | $KohaBranchName %]</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>
96 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
97 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
98 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
99 <li>[% wboraddress %][% IF ( wboraddress2 ) %]<br />
100 [% wboraddress2 %]<br />[% END %]
101 [% wborcity %] [% wborzip %]</li>
102 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
103 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
106 <form method="post" action="returns.pl" class="confirm">
107 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
108 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
109 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
110 <input type="submit" class="approve" value="Confirm" />
111 <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();" />
118 <!-- case of a reservation found, and display info -->
123 <audio src="[% interface %]/[% theme %]/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
126 <div id="hold-found1" class="dialog message">
127 <h3>Hold found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
128 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
131 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
132 <li>[% boraddress %]<br />
133 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
134 [% borcity %] [% borzip %]</li>
135 [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
136 [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
137 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
138 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
139 [% IF ( transfertodo ) %]
140 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
142 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
144 <form method="post" action="returns.pl" class="confirm">
145 <input type="submit" class="approve" value="Confirm" />
147 <input type="submit" value="Print and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
148 [% FOREACH inputloo IN inputloop %]
149 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
150 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
151 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
153 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
154 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
155 <input type="hidden" name="resbarcode" value="[% barcode %]" />
156 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
157 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
158 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
163 [% IF ( diffbranch ) %]
166 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
168 <div id="transfer-needed" class="dialog message">
169 <h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
172 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
173 <li>[% boraddress %]<br />
174 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
175 [% borcity %] [% borzip %]</li>
176 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
177 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
178 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
179 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
181 [% IF ( transfertodo ) %]
182 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
184 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
187 <form method="post" action="returns.pl" class="confirm">
188 <input type="submit" class="approve" value="Confirm" />
189 <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();" />
190 [% FOREACH inputloo IN inputloop %]
191 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
192 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
193 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
195 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
196 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
197 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
198 <input type="hidden" name="barcode" value="0" />
203 [% IF ( transfer ) %]
204 <!-- transfer: item with no reservation, must be returned to its home library -->
205 <div id="return1" class="dialog message">
206 <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>
209 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
213 [% IF ( needstransfer ) %]
214 <!-- needstransfer -->
216 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
218 <div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
220 <form method="post" action="returns.pl" name="mainform" id="mainform">
222 <input type="submit" name="dotransfer" value="Yes, Print slip" class="print" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;" />
224 <input type="submit" name="dotransfer" value="Yes" class="submit" />
225 <input type="submit" name="notransfer" value="No" class="submit" />
226 <input type="hidden" name="tobranch" value="[% homebranch %]" />
227 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
228 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
229 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
230 [% FOREACH inputloo IN inputloop %]
231 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
232 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
233 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
235 <input type="hidden" name="barcode" value="0" />
239 [% IF ( diffbranch ) %]
242 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
244 <h3>Item consigned:</h3>
246 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
252 <form method="post" action="returns.pl"><input type="submit" value="OK" />
253 [% FOREACH inputloo IN inputloop %]
254 [% UNLESS ( inputloo.first ) %]
255 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
256 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
257 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
260 <input type="hidden" name="barcode" value="0" />
265 <!-- case of simple return no issue or transfer but with a reservation -->
266 [% IF ( reserved ) %]
270 <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
273 <div id="hold-found2" class="dialog message">
274 <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
275 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
278 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
279 [% borsurname %], [% borfirstname %]
280 </a> ([% borcnum %])</li>
281 <li>[% boraddress %]<br />
282 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
283 [% borcity %] [% borzip %]</li>
284 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
285 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
286 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
287 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
289 [% IF ( transfertodo ) %]
290 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
292 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
294 <form method="post" action="returns.pl" class="confirm">
295 [% IF ( transfertodo ) %]
296 <input type="submit" class="approve" value="Confirm hold and transfer" />
297 <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();" />
299 <input type="submit" class="approve" value="Confirm hold" />
300 <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();" />
302 <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
303 [% FOREACH inputloo IN inputloop %]
304 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
305 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
306 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
307 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
308 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
309 <input type="hidden" name="resbarcode" value="[% barcode %]" />
310 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
311 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
312 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
318 [% IF ( errmsgloop ) %]
319 <div class="dialog alert">
320 <h3>Check in message</h3>
321 [% FOREACH errmsgloo IN errmsgloop %]
322 [% IF ( errmsgloo.badbarcode ) %]
323 <p class="problem">No item with barcode: [% errmsgloo.msg %]</p>
325 [% IF ( errmsgloo.ispermanent ) %]
326 <p class="problem">Please return to [% errmsgloo.msg %]</p>
328 [% IF ( errmsgloo.notissued ) %]
329 <p class="problem">Not checked out.</p>
331 [% IF ( errmsgloo.localuse) %]
332 <p class="problem">Local use recorded</p>
334 [% IF ( errmsgloo.waslost ) %]
335 <p class="problem">Item was lost, now found.</p>
336 [% IF ( LostItemFeeRefunded ) %]
337 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
339 <p class="problem">Any lost item fees for this item will remain on the patron's account</p>
342 [% IF ( errmsgloo.withdrawn ) %]
343 [% IF BlockReturnOfWithdrawnItems %]
344 <h5>Cannot check in</h5>
345 <p class="problem">Item is withdrawn. <strong>NOT CHECKED IN</strong></p>
347 <p class="problem">Item is withdrawn.</p>
350 [% IF ( errmsgloo.debarred ) %]
351 <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>
355 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
359 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
364 [% IF ( checkinmsg ) %]
365 [% IF ( checkinmsgtype == 'alert' ) %]
366 <div class="dialog alert">
368 <div class="dialog message">
370 <p class="problem">[% checkinmsg %]</p>
374 <div id="exemptfines" class="dialog message" style="display:none;">
375 <p>Fines for returned items are forgiven.</p>
377 <div id="dropboxmode" class="dialog message" style="display:none;">
378 <p>Dropbox Mode. (Effective checkin date is [% dropboxdate %] ).</p>
382 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
383 <div class="yui-u first">
385 <legend>Check In</legend>
386 <label for="barcode">Enter item barcode: </label>
387 [% IF ( exemptfine ) %]
388 <input name="barcode" id="barcode" size="14" class="focus alert"/>
389 [% ELSIF ( dropboxmode ) %]
390 <input name="barcode" id="barcode" size="14" class="focus alert"/>
392 <input name="barcode" id="barcode" size="14" class="focus"/>
394 <input type="submit" class="submit" value="Submit" />
395 [% FOREACH inputloo IN inputloop %]
396 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
397 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
398 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
405 <fieldset id="checkin_options">
406 <legend>Options</legend>
407 [% IF ( overduecharges ) %]
409 [% IF ( exemptfine ) %]
410 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
412 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
414 <label for="exemptcheck">Forgive overdue charges</label>
416 [% END %] <!-- overduecharges -->
418 [% IF ( dropboxmode ) %]
419 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
421 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
423 <label for="dropboxcheck">Dropbox mode</label>
431 <h2>Checked-in items</h2>
433 <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>
435 [% FOREACH riloo IN riloop %]
437 <td>[% IF ( riloo.duedate ) %]
438 [% IF ( riloo.return_overdue ) %]
439 <span class="overdue">[% riloo.duedate %] (overdue)</span>
440 [% ELSE %][% riloo.duedate %]
442 [% ELSE %]Not checked out
445 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
446 [% riloo.itemtitle |html %]</a></td>
447 <td>[% riloo.itemauthor %]</td>
448 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
449 <td>[% riloo.homebranch %]</td>
450 <td>[% riloo.holdingbranch %]</td>
451 <td>[% riloo.location %]</td>
452 <td>[% riloo.itemcallnumber %]</td>
453 <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
454 <td>[% IF ( riloo.duedate ) %]
455 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
456 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
458 [% ELSE %]Not checked out[% END %]</td>
459 <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
460 [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
469 [% INCLUDE 'intranet-bottom.inc' %]