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="/intranet-tmpl/prog/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="/intranet-tmpl/prog/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="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
213 [% IF ( needstransfer ) %]
214 <!-- needstransfer -->
216 <audio src="/intranet-tmpl/prog/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="/intranet-tmpl/prog/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="/intranet-tmpl/prog/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 [% FOREACH errmsgloo IN errmsgloop %]
321 [% IF ( errmsgloo.badbarcode ) %]
322 <p class="problem">No item with barcode: [% errmsgloo.msg %]</p>
324 [% IF ( errmsgloo.ispermanent ) %]
325 <p class="problem">Please return to [% errmsgloo.msg %]</p>
327 [% IF ( errmsgloo.notissued ) %]
328 <p class="problem">Not checked out.</p>
330 [% IF ( errmsgloo.localuse) %]
331 <p class="problem">Local use recorded</p>
333 [% IF ( errmsgloo.waslost ) %]
334 <p class="problem">Item was lost, now found.</p>
336 [% IF ( errmsgloo.withdrawn ) %]
337 <p class="problem">Item is withdrawn.</p>
339 [% IF ( errmsgloo.debarred ) %]
340 <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>
344 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
348 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
354 <div id="exemptfines" class="dialog message" style="display:none;">
355 <p>Fines for returned items are forgiven.</p>
357 <div id="dropboxmode" class="dialog message" style="display:none;">
358 <p>Dropbox Mode. (Effective checkin date is [% dropboxdate %] ).</p>
362 <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
363 <div class="yui-u first">
365 <legend>Check In</legend>
366 <label for="barcode">Enter item barcode: </label>
367 [% IF ( exemptfine ) %]
368 <input name="barcode" id="barcode" size="14" class="focus alert"/>
369 [% ELSIF ( dropboxmode ) %]
370 <input name="barcode" id="barcode" size="14" class="focus alert"/>
372 <input name="barcode" id="barcode" size="14" class="focus"/>
374 <input type="submit" class="submit" value="Submit" />
375 [% FOREACH inputloo IN inputloop %]
376 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
377 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
378 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
385 <fieldset id="checkin_options">
386 <legend>Options</legend>
387 [% IF ( overduecharges ) %]
389 [% IF ( exemptfine ) %]
390 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
392 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
394 <label for="exemptcheck">Forgive overdue charges</label>
396 [% END %] <!-- overduecharges -->
398 [% IF ( dropboxmode ) %]
399 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
401 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
403 <label for="dropboxcheck">Dropbox mode</label>
410 [% IF ( returned ) %]
411 <div class="yui-g"> <table>
412 <tr><th>Item information</th><th>Patron information</th></tr>
414 <td>[% title |html %]</td>
417 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riborrowernumber %]">[% riborsurname %], [% ribortitle %] [% riborfirstname %]</a> ([% riborcnum %])
419 ([% FOREACH flagloo IN flagloop %]
421 [% IF ( flagloo.charges ) %] of [% flagloo.chargeamount %] [% END %]
429 <h2>Checked-in items</h2>
431 <tr><th>Due date</th><th>Title</th> <th>Author</th> <th>Barcode</th><th>Home branch</th><th>Holding branch</th><th>Shelving location</th><th>Call number</th><th>Type</th> <th>Patron</th><th>Note</th></tr>
433 [% FOREACH riloo IN riloop %]
435 <td>[% IF ( riloo.duedate ) %]
436 [% IF ( riloo.return_overdue ) %]
437 <span class="overdue">[% riloo.duedate %] (overdue)</span>
438 [% ELSE %][% riloo.duedate %]
440 [% ELSE %]Not checked out
443 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
444 [% riloo.itemtitle |html %]</a></td>
445 <td>[% riloo.itemauthor %]</td>
446 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
447 <td>[% riloo.homebranch %]</td>
448 <td>[% riloo.holdingbranch %]</td>
449 <td>[% riloo.location %]</td>
450 <td>[% riloo.itemcallnumber %]</td>
451 <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
452 <td>[% IF ( riloo.duedate ) %]
453 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
454 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
456 [% ELSE %]Not checked out[% END %]</td>
457 <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
458 [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
467 [% INCLUDE 'intranet-bottom.inc' %]