2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Circulation › Check In [% title |html %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript">
8 var newin=window.open(link,'popup','width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
10 $(document).ready(function() {
11 $("#exemptcheck").change(function(){
12 if(this.checked == true) {
13 $("#barcode").addClass("alert");
14 $("#exemptfines").show();
16 $("#barcode").removeClass("alert");
17 $("#exemptfines").hide();
19 $("#barcode").focus();
21 $("#dropboxcheck").change(function(){
22 if (this.checked == true) {
23 $("#barcode").addClass("alert");
24 $("#dropboxmode").show();
26 $("#barcode").removeClass("alert");
27 $("#dropboxmode").hide();
29 $("#barcode").focus();
31 [% IF ( overduecharges ) %]$("#barcode").focus(function(){
32 if(($("#exemptcheck").attr("checked") == true)||($("#dropboxcheck").attr("checked") == true)){
33 $("#barcode").addClass("alert");
35 $("#barcode").removeClass("alert");
38 $("#barcode").blur(function(){
39 $("#barcode").removeClass("alert");
45 <body id="circ_returns" class="circ">
46 [% INCLUDE 'header.inc' %]
47 [% INCLUDE 'checkin-search.inc' %]
49 <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>
51 <div id="doc" class="yui-t7">
58 [% IF additional_materials %]
59 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
60 [% additional_materials %]
64 [% IF ( collectionItemNeedsTransferred ) %]
65 <div id="rotating-collection" class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
68 <!-- Patron has fines -->
70 <div class="dialog alert">
71 <h3>Patron has outstanding fines of [% fines %].</h3>
72 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
76 <!-- Patron has waiting holds -->
77 [% IF ( waiting_holds ) %]
78 <div id="awaiting-pickup" class="dialog message">
79 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
80 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
85 [% IF ( wrongbranch ) %]
86 <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>
89 <!-- case of a mistake in transfer loop -->
90 [% 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 %]</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>
91 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
92 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
93 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
94 <li>[% wboraddress %][% IF ( wboraddress2 ) %]<br />
95 [% wboraddress2 %]<br />[% END %]
96 [% wborcity %] [% wborzip %]</li>
97 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
98 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
101 <form method="post" action="returns.pl" class="confirm">
102 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
103 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
104 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
105 <input type="submit" class="approve" value="Confirm" />
106 <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();" />
113 <!-- case of a reservation found, and display info -->
118 <audio src="/intranet-tmpl/prog/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
121 <div id="hold-found1" class="dialog message">
122 <h3>Hold Found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
123 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
126 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
127 <li>[% boraddress %]<br />
128 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
129 [% borcity %] [% borzip %]</li>
130 [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
131 [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
132 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
133 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
134 [% IF ( transfertodo ) %]
135 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
137 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
139 <form method="post" action="returns.pl" class="confirm">
140 <input type="submit" class="approve" value="Confirm" />
142 <input type="submit" value="Print and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
143 [% FOREACH inputloo IN inputloop %]
144 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
145 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
146 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
148 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
149 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
150 <input type="hidden" name="resbarcode" value="[% barcode %]" />
151 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
152 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
153 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
158 [% IF ( diffbranch ) %]
161 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
163 <div id="transfer-needed" class="dialog message">
164 <h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
167 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
168 <li>[% boraddress %]<br />
169 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
170 [% borcity %] [% borzip %]</li>
171 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
172 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
173 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
174 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
176 [% IF ( transfertodo ) %]
177 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
179 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
182 <form method="post" action="returns.pl" class="confirm">
183 <input type="submit" class="approve" value="Confirm" />
184 <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();" />
185 [% FOREACH inputloo IN inputloop %]
186 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
187 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
188 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
190 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
191 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
192 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
193 <input type="hidden" name="barcode" value="0" />
198 [% IF ( transfer ) %]
199 <!-- transfer: item with no reservation, must be returned to its home library -->
200 <div id="return1" class="dialog message">
201 <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>
204 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
208 [% IF ( needstransfer ) %]
209 <!-- needstransfer -->
211 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
213 <div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
215 <form method="post" action="returns.pl" name="mainform" id="mainform">
217 <input type="submit" name="dotransfer" value="Yes, Print slip" class="print" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;" />
219 <input type="submit" name="dotransfer" value="Yes" class="submit" />
220 <input type="submit" name="notransfer" value="No" class="submit" />
221 <input type="hidden" name="tobranch" value="[% homebranch %]" />
222 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
223 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
224 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
225 [% FOREACH inputloo IN inputloop %]
226 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
227 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
228 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
230 <input type="hidden" name="barcode" value="0" />
234 [% IF ( diffbranch ) %]
237 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
239 <h3>Item Consigned:</h3>
241 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
247 <form method="post" action="returns.pl"><input type="submit" value="OK" />
248 [% FOREACH inputloo IN inputloop %]
249 [% UNLESS ( inputloo.first ) %]
250 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
251 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
252 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
255 <input type="hidden" name="barcode" value="0" />
260 <!-- case of simple return no issue or transfer but with a reservation -->
261 [% IF ( reserved ) %]
265 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
268 <div id="hold-found2" class="dialog message">
269 <h3>Hold Found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
270 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
273 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
274 [% borsurname %], [% borfirstname %]
275 </a> ([% borcnum %])</li>
276 <li>[% boraddress %]<br />
277 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
278 [% borcity %] [% borzip %]</li>
279 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
280 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
281 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
282 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
284 [% IF ( transfertodo ) %]
285 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
287 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
289 <form method="post" action="returns.pl" class="confirm">
290 [% IF ( transfertodo ) %]
291 <input type="submit" class="approve" value="Confirm hold and Transfer" />
292 <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();" />
294 <input type="submit" class="approve" value="Confirm hold" />
295 <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();" />
297 <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
298 [% FOREACH inputloo IN inputloop %]
299 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
300 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
301 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
302 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
303 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
304 <input type="hidden" name="resbarcode" value="[% barcode %]" />
305 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
306 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
307 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
313 [% IF ( errmsgloop ) %]
314 <div class="dialog alert">
315 [% FOREACH errmsgloo IN errmsgloop %]
316 [% IF ( errmsgloo.badbarcode ) %]
317 <p class="problem">No Item with barcode: [% errmsgloo.msg %]</p>
319 [% IF ( errmsgloo.ispermanent ) %]
320 <p class="problem">Please return to [% errmsgloo.msg %]</p>
322 [% IF ( errmsgloo.notissued ) %]
323 <p class="problem">Not checked out.</p>
325 [% IF ( errmsgloo.localuse) %]
326 <p class="problem">Local Use recorded</p>
328 [% IF ( errmsgloo.waslost ) %]
329 <p class="problem">Item was lost, now found.</p>
331 [% IF ( errmsgloo.withdrawn ) %]
332 <p class="problem">Item is withdrawn.</p>
334 [% IF ( errmsgloo.debarred ) %]
335 <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>
339 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
343 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
349 <div id="exemptfines" class="dialog message" style="display:none;">
350 <p>Fines for returned items are forgiven.</p>
352 <div id="dropboxmode" class="dialog message" style="display:none;">
353 <p>Dropbox Mode. (Effective checkin date is [% dropboxdate %] ).</p>
357 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
358 <div class="yui-u first">
360 <legend>Check In</legend>
361 <label for="barcode">Enter item barcode: </label>
362 [% IF ( exemptfine ) %]
363 <input name="barcode" id="barcode" size="14" class="focus alert"/>
364 [% ELSIF ( dropboxmode ) %]
365 <input name="barcode" id="barcode" size="14" class="focus alert"/>
367 <input name="barcode" id="barcode" size="14" class="focus"/>
369 <input type="submit" class="submit" value="Submit" />
370 [% FOREACH inputloo IN inputloop %]
371 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
372 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
373 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
380 <fieldset id="checkin_options">
381 <legend>Options</legend>
384 [% IF ( overduecharges ) %]
386 [% IF ( exemptfine ) %]
387 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
389 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
391 <label for="exemptcheck">Forgive overdue charges</label>
393 [% END %] <!-- overduecharges -->
395 [% IF ( dropboxmode ) %]
396 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
398 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
400 <label for="dropboxcheck">Dropbox mode</label>
408 [% IF ( returned ) %]
409 <div class="yui-g"> <table>
410 <tr><th>Item Information</th><th>Patron Information</th></tr>
412 <td>[% title |html %]</td>
415 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riborrowernumber %]">[% riborsurname %], [% ribortitle %] [% riborfirstname %]</a> ([% riborcnum %])
417 ([% FOREACH flagloo IN flagloop %]
419 [% IF ( flagloo.charges ) %] of [% flagloo.chargeamount %] [% END %]
427 <h2>Checked-In items</h2>
429 <tr><th>Due Date</th><th>Title</th> <th>Author</th> <th>Barcode</th><th>Shelving Location</th><th>Call Number</th><th>Type</th> <th>Patron</th><th>Note</th></tr>
431 [% FOREACH riloo IN riloop %]
433 <td>[% IF ( riloo.duedate ) %]
434 [% IF ( riloo.return_overdue ) %]
435 <span class="overdue">[% riloo.duedate %] (overdue)</span>
436 [% ELSE %][% riloo.duedate %]
438 [% ELSE %]Not checked out
441 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
442 [% riloo.itemtitle |html %]</a></td>
443 <td>[% riloo.itemauthor %]</td>
444 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
445 <td>[% riloo.location %]</td>
446 <td>[% riloo.itemcallnumber %]</td>
447 <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
448 <td>[% IF ( riloo.duedate ) %]
449 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
450 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
452 [% ELSE %]Not checked out[% END %]</td>
453 <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
454 [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
463 [% INCLUDE 'intranet-bottom.inc' %]