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 <div id="header" class="gradient">
47 [% INCLUDE 'header.inc' %]
48 [% INCLUDE 'checkin-search.inc' %]
51 <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>
53 <div id="doc" class="yui-t7">
60 [% IF additional_materials %]
61 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
62 [% additional_materials %]
66 [% IF ( collectionItemNeedsTransferred ) %]
67 <div id="rotating-collection" class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
70 <!-- Patron has fines -->
72 <div class="dialog alert">
73 <h3>Patron has outstanding fines of [% fines %].</h3>
74 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
78 <!-- Patron has waiting holds -->
79 [% IF ( waiting_holds ) %]
80 <div id="awaiting-pickup" class="dialog message">
81 <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
82 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
87 [% IF ( wrongbranch ) %]
88 <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>
91 <!-- case of a mistake in transfer loop -->
92 [% 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>
93 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
94 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
95 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
96 <li>[% wboraddress %][% IF ( wboraddress2 ) %]<br />
97 [% wboraddress2 %]<br />[% END %]
98 [% wborcity %] [% wborzip %]</li>
99 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
100 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
103 <form method="post" action="returns.pl" class="confirm">
104 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
105 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
106 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
107 <input type="submit" class="approve" value="Confirm" />
108 <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();" />
115 <!-- case of a reservation found, and display info -->
120 <audio src="/intranet-tmpl/prog/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
123 <div id="hold-found1" class="dialog message">
124 <h3>Hold found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
125 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
128 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
129 <li>[% boraddress %]<br />
130 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
131 [% borcity %] [% borzip %]</li>
132 [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
133 [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
134 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
135 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
136 [% IF ( transfertodo ) %]
137 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
139 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
141 <form method="post" action="returns.pl" class="confirm">
142 <input type="submit" class="approve" value="Confirm" />
144 <input type="submit" value="Print and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
145 [% FOREACH inputloo IN inputloop %]
146 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
147 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
148 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
150 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
151 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
152 <input type="hidden" name="resbarcode" value="[% barcode %]" />
153 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
154 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
155 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
160 [% IF ( diffbranch ) %]
163 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
165 <div id="transfer-needed" class="dialog message">
166 <h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
169 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
170 <li>[% boraddress %]<br />
171 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
172 [% borcity %] [% borzip %]</li>
173 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
174 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
175 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
176 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
178 [% IF ( transfertodo ) %]
179 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
181 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
184 <form method="post" action="returns.pl" class="confirm">
185 <input type="submit" class="approve" value="Confirm" />
186 <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();" />
187 [% FOREACH inputloo IN inputloop %]
188 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
189 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
190 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
192 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
193 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
194 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
195 <input type="hidden" name="barcode" value="0" />
200 [% IF ( transfer ) %]
201 <!-- transfer: item with no reservation, must be returned to its home library -->
202 <div id="return1" class="dialog message">
203 <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>
206 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
210 [% IF ( needstransfer ) %]
211 <!-- needstransfer -->
213 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
215 <div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
217 <form method="post" action="returns.pl" name="mainform" id="mainform">
219 <input type="submit" name="dotransfer" value="Yes, Print slip" class="print" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&&branchcode=[% homebranch %]&op=slip'); return true;" />
221 <input type="submit" name="dotransfer" value="Yes" class="submit" />
222 <input type="submit" name="notransfer" value="No" class="submit" />
223 <input type="hidden" name="tobranch" value="[% homebranch %]" />
224 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
225 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
226 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
227 [% FOREACH inputloo IN inputloop %]
228 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
229 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
230 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
232 <input type="hidden" name="barcode" value="0" />
236 [% IF ( diffbranch ) %]
239 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
241 <h3>Item consigned:</h3>
243 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
249 <form method="post" action="returns.pl"><input type="submit" value="OK" />
250 [% FOREACH inputloo IN inputloop %]
251 [% UNLESS ( inputloo.first ) %]
252 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
253 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
254 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
257 <input type="hidden" name="barcode" value="0" />
262 <!-- case of simple return no issue or transfer but with a reservation -->
263 [% IF ( reserved ) %]
267 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
270 <div id="hold-found2" class="dialog message">
271 <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
272 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
275 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
276 [% borsurname %], [% borfirstname %]
277 </a> ([% borcnum %])</li>
278 <li>[% boraddress %]<br />
279 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
280 [% borcity %] [% borzip %]</li>
281 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
282 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
283 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
284 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
286 [% IF ( transfertodo ) %]
287 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
289 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
291 <form method="post" action="returns.pl" class="confirm">
292 [% IF ( transfertodo ) %]
293 <input type="submit" class="approve" value="Confirm hold and transfer" />
294 <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();" />
296 <input type="submit" class="approve" value="Confirm hold" />
297 <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();" />
299 <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
300 [% FOREACH inputloo IN inputloop %]
301 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
302 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
303 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
304 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
305 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
306 <input type="hidden" name="resbarcode" value="[% barcode %]" />
307 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
308 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
309 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
315 [% IF ( errmsgloop ) %]
316 <div class="dialog alert">
317 [% FOREACH errmsgloo IN errmsgloop %]
318 [% IF ( errmsgloo.badbarcode ) %]
319 <p class="problem">No item with barcode: [% errmsgloo.msg %]</p>
321 [% IF ( errmsgloo.ispermanent ) %]
322 <p class="problem">Please return to [% errmsgloo.msg %]</p>
324 [% IF ( errmsgloo.notissued ) %]
325 <p class="problem">Not checked out.</p>
327 [% IF ( errmsgloo.localuse) %]
328 <p class="problem">Local use recorded</p>
330 [% IF ( errmsgloo.waslost ) %]
331 <p class="problem">Item was lost, now found.</p>
333 [% IF ( errmsgloo.withdrawn ) %]
334 <p class="problem">Item is withdrawn.</p>
336 [% IF ( errmsgloo.debarred ) %]
337 <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>
341 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
345 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
351 <div id="exemptfines" class="dialog message" style="display:none;">
352 <p>Fines for returned items are forgiven.</p>
354 <div id="dropboxmode" class="dialog message" style="display:none;">
355 <p>Dropbox Mode. (Effective checkin date is [% dropboxdate %] ).</p>
359 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
360 <div class="yui-u first">
362 <legend>Check In</legend>
363 <label for="barcode">Enter item barcode: </label>
364 [% IF ( exemptfine ) %]
365 <input name="barcode" id="barcode" size="14" class="focus alert"/>
366 [% ELSIF ( dropboxmode ) %]
367 <input name="barcode" id="barcode" size="14" class="focus alert"/>
369 <input name="barcode" id="barcode" size="14" class="focus"/>
371 <input type="submit" class="submit" value="Submit" />
372 [% FOREACH inputloo IN inputloop %]
373 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
374 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
375 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
382 <fieldset id="checkin_options">
383 <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>
407 [% IF ( returned ) %]
408 <div class="yui-g"> <table>
409 <tr><th>Item information</th><th>Patron information</th></tr>
411 <td>[% title |html %]</td>
414 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riborrowernumber %]">[% riborsurname %], [% ribortitle %] [% riborfirstname %]</a> ([% riborcnum %])
416 ([% FOREACH flagloo IN flagloop %]
418 [% IF ( flagloo.charges ) %] of [% flagloo.chargeamount %] [% END %]
426 <h2>Checked-in items</h2>
428 <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>
430 [% FOREACH riloo IN riloop %]
432 <td>[% IF ( riloo.duedate ) %]
433 [% IF ( riloo.return_overdue ) %]
434 <span class="overdue">[% riloo.duedate %] (overdue)</span>
435 [% ELSE %][% riloo.duedate %]
437 [% ELSE %]Not checked out
440 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
441 [% riloo.itemtitle |html %]</a></td>
442 <td>[% riloo.itemauthor %]</td>
443 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
444 <td>[% riloo.location %]</td>
445 <td>[% riloo.itemcallnumber %]</td>
446 <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
447 <td>[% IF ( riloo.duedate ) %]
448 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
449 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
451 [% ELSE %]Not checked out[% END %]</td>
452 <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
453 [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
462 [% INCLUDE 'intranet-bottom.inc' %]