1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Circulation › Check In [% title |html %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
7 var newin=window.open(link,'popup','width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
9 $(document).ready(function() {
10 $("#exemptcheck").change(function(){
11 if(this.checked == true) {
12 $("#barcode").addClass("alert");
13 $("#exemptfines").show();
15 $("#barcode").removeClass("alert");
16 $("#exemptfines").hide();
18 $("#barcode").focus();
20 $("#dropboxcheck").change(function(){
21 if (this.checked == true) {
22 $("#barcode").addClass("alert");
23 $("#dropboxmode").show();
25 $("#barcode").removeClass("alert");
26 $("#dropboxmode").hide();
28 $("#barcode").focus();
30 [% IF ( overduecharges ) %]$("#barcode").focus(function(){
31 if(($("#exemptcheck").attr("checked") == true)||($("#dropboxcheck").attr("checked") == true)){
32 $("#barcode").addClass("alert");
34 $("#barcode").removeClass("alert");
37 $("#barcode").blur(function(){
38 $("#barcode").removeClass("alert");
45 [% INCLUDE 'header.inc' %]
46 [% INCLUDE 'checkin-search.inc' %]
48 <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>
50 <div id="doc" class="yui-t7">
57 [% IF ( collectionItemNeedsTransferred ) %]
58 <div class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
61 <!-- Patron has fines -->
63 <div class="dialog alert">
64 <h3>Patron has outstanding fines of [% fines %].</h3>
65 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
69 <!-- Patron has waiting holds -->
70 [% IF ( waiting_holds ) %]
71 <div class="dialog alert">
72 <h3>Patron has [% waiting_holds %] hold(s) waiting for pickup.</h3>
73 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Checkout holds</a>.</p>
78 [% IF ( wrongbranch ) %]
79 <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>
82 <!-- case of a mistake in transfer loop -->
83 [% IF ( WrongTransfer ) %]<div 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>
84 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
85 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
86 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
87 <li>[% wboraddress %][% IF ( wboraddress2 ) %]<br />
88 [% wboraddress2 %]<br />[% END %]
89 [% wborcity %] [% wborzip %]</li>
90 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
91 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
94 <form method="post" action="returns.pl" class="confirm">
95 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
96 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
97 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
98 <input type="submit" class="approve" value="Confirm" />
99 <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();" />
106 <!-- case of a reservation found, and display info -->
111 <audio src="/intranet-tmpl/prog/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
114 <div class="dialog message">
115 <h3>Hold Found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
116 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
119 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
120 <li>[% boraddress %]<br />
121 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
122 [% borcity %] [% borzip %]</li>
123 [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
124 [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
125 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
126 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
127 [% IF ( transfertodo ) %]
128 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
130 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
132 <form method="post" action="returns.pl" class="confirm">
133 <input type="submit" class="approve" value="Confirm" />
135 <input type="submit" value="Print and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
136 [% FOREACH inputloo IN inputloop %]
137 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
138 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
139 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
141 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
142 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
143 <input type="hidden" name="resbarcode" value="[% barcode %]" />
144 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
145 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
146 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
151 [% IF ( diffbranch ) %]
153 <div class="dialog message">
154 <h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
157 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
158 <li>[% boraddress %]<br />
159 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
160 [% borcity %] [% borzip %]</li>
161 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
162 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
163 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
164 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
166 [% IF ( transfertodo ) %]
167 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
169 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
172 <form method="post" action="returns.pl" class="confirm">
173 <input type="submit" class="approve" value="Confirm" />
174 <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();" />
175 [% FOREACH inputloo IN inputloop %]
176 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
177 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
178 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
180 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
181 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
182 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
183 <input type="hidden" name="barcode" value="0" />
188 [% IF ( transfer ) %]
189 <!-- transfer: item with no reservation, must be returned to its homebranch -->
190 <div class="dialog message">
191 <h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% DEFAULT title="item" |html %]</a> to [% homebranchname %]</h3></div>[% END %]
193 [% IF ( needstransfer ) %]
194 <!-- needstransfer -->
195 <div class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
197 <form method="post" action="returns.pl" name="mainform" id="mainform">
198 <input type="submit" name="dotransfer" value="Yes" class="submit" />
199 <input type="submit" name="notransfer" value="No" class="submit" />
200 <input type="hidden" name="tobranch" value="[% homebranch %]" />
201 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
202 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
203 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
204 [% FOREACH inputloo IN inputloop %]
205 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
206 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
207 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.bornum %]" />
209 <input type="hidden" name="barcode" value="0" />
213 [% IF ( diffbranch ) %]
215 <h3>Item Consigned:</h3>
217 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
223 <form method="post" action="returns.pl"><input type="submit" value="OK" />
224 [% FOREACH inputloo IN inputloop %]
225 [% UNLESS ( inputloo.first ) %]
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 %]" />
231 <input type="hidden" name="barcode" value="0" />
236 <!-- case of simple return no issue or transfer but with a reservation -->
237 [% IF ( reserved ) %]
241 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
244 <div class="dialog message">
245 <h3>Hold Found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
246 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
249 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
250 [% borsurname %], [% borfirstname %]
251 </a> ([% borcnum %])</li>
252 <li>[% boraddress %]<br />
253 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
254 [% borcity %] [% borzip %]</li>
255 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
256 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
257 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
258 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
260 [% IF ( transfertodo ) %]
261 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
263 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
265 <form method="post" action="returns.pl" class="confirm">
266 [% IF ( transfertodo ) %]
267 <input type="submit" class="approve" value="Confirm hold and Transfer" />
268 <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();" />
270 <input type="submit" class="approve" value="Confirm hold" />
271 <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();" />
273 <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
274 [% FOREACH inputloo IN inputloop %]
275 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
276 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
277 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
278 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
279 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
280 <input type="hidden" name="resbarcode" value="[% barcode %]" />
281 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
282 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
283 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
289 [% IF ( errmsgloop ) %]
290 <div class="dialog alert">
291 [% FOREACH errmsgloo IN errmsgloop %]
292 [% IF ( errmsgloo.badbarcode ) %]
293 <p class="problem">No Item with barcode: [% errmsgloo.msg %]</p>
295 [% IF ( errmsgloo.ispermanent ) %]
296 <p class="problem">Please return to [% errmsgloo.msg %]</p>
298 [% IF ( errmsgloo.notissued ) %]
299 <p class="problem">Not checked out.</p>
301 [% IF ( errmsgloo.waslost ) %]
302 <p class="problem">Item was lost, now found.</p>
304 [% IF ( errmsgloo.withdrawn ) %]
305 <p class="problem">Item is withdrawn.</p>
309 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
313 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
319 <div id="exemptfines" class="dialog message" style="display:none;">
320 <p>Fines for returned items are forgiven.</p>
322 <div id="dropboxmode" class="dialog message" style="display:none;">
323 <p>Dropbox Mode. (Effective checkin date is [% dropboxdate %] ).</p>
327 <form method="post" action="/cgi-bin/koha/circ/returns.pl" >
328 <div class="yui-u first">
330 <legend>Check In</legend>
331 <label for="barcode">Enter item barcode: </label>
332 [% IF ( exemptfine ) %]
333 <input name="barcode" id="barcode" size="14" class="focus alert"/>
334 [% ELSIF ( dropboxmode ) %]
335 <input name="barcode" id="barcode" size="14" class="focus alert"/>
337 <input name="barcode" id="barcode" size="14" class="focus"/>
339 <input type="submit" class="submit" value="Submit" />
340 [% FOREACH inputloo IN inputloop %]
341 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
342 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
343 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
350 <fieldset id="checkin_options">
351 <legend>Options</legend>
354 [% IF ( overduecharges ) %]
356 [% IF ( exemptfine ) %]
357 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
359 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
361 <label for="exemptcheck">Forgive overdue charges</label>
363 [% END %] <!-- overduecharges -->
365 [% IF ( dropboxmode ) %]
366 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
368 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
370 <label for="dropboxcheck">Dropbox mode</label>
378 [% IF ( returned ) %]
379 <div class="yui-g"> <table>
380 <tr><th>Item Information</th><th>Patron Information</th></tr>
382 <td>[% title |html %]</td>
385 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riborrowernumber %]">[% riborsurname %], [% ribortitle %] [% riborfirstname %]</a> ([% riborcnum %])
387 ([% FOREACH flagloo IN flagloop %]
389 [% IF ( flagloo.charges ) %] of [% flagloo.chargeamount %] [% END %]
397 <h2>Checked-In items</h2>
399 <tr><th>Due Date</th><th>Title</th> <th>Author</th> <th>Barcode</th><th>Call Number</th><th>Type</th> <th>Patron</th><th>Note</th></tr>
401 [% FOREACH riloo IN riloop %]
403 <td>[% IF ( riloo.duedate ) %]
404 [% IF ( riloo.return_overdue ) %]
405 <span class="overdue">[% riloo.duedate %] (overdue)</span>
406 [% ELSE %][% riloo.duedate %]
408 [% ELSE %]Not checked out
411 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
412 [% riloo.itemtitle |html %]</a></td>
413 <td>[% riloo.itemauthor %]</td>
414 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
415 <td>[% riloo.itemcallnumber %]</td>
416 <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
417 <td>[% IF ( riloo.duedate ) %]
418 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
419 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
421 [% ELSE %]Not checked out[% END %]</td>
422 <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
423 [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
432 [% INCLUDE 'intranet-bottom.inc' %]