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>
70 [% IF ( wrongbranch ) %]
71 <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>
74 <!-- case of a mistake in transfer loop -->
75 [% 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>
76 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
77 <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
78 [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
79 <li>[% wboraddress %][% IF ( wboraddress2 ) %]<br />
80 [% wboraddress2 %]<br />[% END %]
81 [% wborcity %] [% wborzip %]</li>
82 [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
83 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
86 <form method="post" action="returns.pl" class="confirm">
87 <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
88 <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
89 <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
90 <input type="submit" class="approve" value="Confirm" />
91 <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();" />
98 <!-- case of a reservation found, and display info -->
103 <audio src="/intranet-tmpl/prog/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
106 <div class="dialog message">
107 <h3>Hold Found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
108 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
111 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
112 <li>[% boraddress %]<br />
113 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
114 [% borcity %] [% borzip %]</li>
115 [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
116 [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
117 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
118 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
119 [% IF ( transfertodo ) %]
120 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
122 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
124 <form method="post" action="returns.pl" class="confirm">
125 <input type="submit" class="approve" value="Confirm" />
127 <input type="submit" value="Print and Confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% itembiblionumber %]&op=slip'); this.form.submit();" />
128 [% FOREACH inputloo IN inputloop %]
129 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
130 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
131 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
133 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
134 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
135 <input type="hidden" name="resbarcode" value="[% barcode %]" />
136 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
137 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
138 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
143 [% IF ( diffbranch ) %]
145 <div class="dialog message">
146 <h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
149 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
150 <li>[% boraddress %]<br />
151 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
152 [% borcity %] [% borzip %]</li>
153 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
154 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
155 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
156 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
158 [% IF ( transfertodo ) %]
159 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
161 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
164 <form method="post" action="returns.pl" class="confirm">
165 <input type="submit" class="approve" value="Confirm" />
166 <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();" />
167 [% FOREACH inputloo IN inputloop %]
168 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
169 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
170 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
172 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
173 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
174 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
175 <input type="hidden" name="barcode" value="0" />
180 [% IF ( transfer ) %]
181 <!-- transfer: item with no reservation, must be returned to its homebranch -->
182 <div class="dialog message">
183 <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 %]
185 [% IF ( needstransfer ) %]
186 <!-- needstransfer -->
187 <div class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
189 <form method="post" action="returns.pl" name="mainform" id="mainform">
190 <input type="submit" name="dotransfer" value="Yes" class="submit" />
191 <input type="submit" name="notransfer" value="No" class="submit" />
192 <input type="hidden" name="tobranch" value="[% homebranch %]" />
193 <input type="hidden" name="transferitem" value="[% itemnumber %]" />
194 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
195 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
196 [% FOREACH inputloo IN inputloop %]
197 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
198 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
199 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.bornum %]" />
201 <input type="hidden" name="barcode" value="0" />
205 [% IF ( diffbranch ) %]
207 <h3>Item Consigned:</h3>
209 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
215 <form method="post" action="returns.pl"><input type="submit" value="OK" />
216 [% FOREACH inputloo IN inputloop %]
217 [% UNLESS ( inputloo.first ) %]
218 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
219 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
220 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
223 <input type="hidden" name="barcode" value="0" />
228 <!-- case of simple return no issue or transfer but with a reservation -->
229 [% IF ( reserved ) %]
233 <audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
236 <div class="dialog message">
237 <h3>Hold Found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
238 [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
241 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
242 [% borsurname %], [% borfirstname %]
243 </a> ([% borcnum %])</li>
244 <li>[% boraddress %]<br />
245 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
246 [% borcity %] [% borzip %]</li>
247 [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
248 [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
249 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
250 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
252 [% IF ( transfertodo ) %]
253 <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
255 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
257 <form method="post" action="returns.pl" class="confirm">
258 [% IF ( transfertodo ) %]
259 <input type="submit" class="approve" value="Confirm hold and Transfer" />
260 <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();" />
262 <input type="submit" class="approve" value="Confirm hold" />
263 <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();" />
265 <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
266 [% FOREACH inputloo IN inputloop %]
267 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
268 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
269 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
270 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
271 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
272 <input type="hidden" name="resbarcode" value="[% barcode %]" />
273 <input type="hidden" name="diffBranch" value="[% destbranch %]" />
274 <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
275 <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
281 [% IF ( errmsgloop ) %]
282 <div class="dialog alert">
283 [% FOREACH errmsgloo IN errmsgloop %]
284 [% IF ( errmsgloo.badbarcode ) %]
285 <p class="problem">No Item with barcode: [% errmsgloo.msg %]</p>
287 [% IF ( errmsgloo.ispermanent ) %]
288 <p class="problem">Please return to [% errmsgloo.msg %]</p>
290 [% IF ( errmsgloo.notissued ) %]
291 <p class="problem">Not checked out.</p>
293 [% IF ( errmsgloo.waslost ) %]
294 <p class="problem">Item was lost, now found.</p>
296 [% IF ( errmsgloo.withdrawn ) %]
297 <p class="problem">Item is withdrawn.</p>
301 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
305 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
311 <div id="exemptfines" class="dialog message" style="display:none;">
312 <p>Fines for returned items are forgiven.</p>
314 <div id="dropboxmode" class="dialog message" style="display:none;">
315 <p>Dropbox Mode. (Effective checkin date is [% dropboxdate %] ).</p>
319 <form method="post" action="/cgi-bin/koha/circ/returns.pl" >
320 <div class="yui-u first">
322 <legend>Check In</legend>
323 <label for="barcode">Enter item barcode: </label>
324 [% IF ( exemptfine ) %]
325 <input name="barcode" id="barcode" size="14" class="focus alert"/>
326 [% ELSIF ( dropboxmode ) %]
327 <input name="barcode" id="barcode" size="14" class="focus alert"/>
329 <input name="barcode" id="barcode" size="14" class="focus"/>
331 <input type="submit" class="submit" value="Submit" />
332 [% FOREACH inputloo IN inputloop %]
333 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
334 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
335 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
342 <fieldset id="checkin_options">
343 <legend>Options</legend>
346 [% IF ( overduecharges ) %]
348 [% IF ( exemptfine ) %]
349 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
351 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
353 <label for="exemptcheck">Forgive overdue charges</label>
355 [% END %] <!-- overduecharges -->
357 [% IF ( dropboxmode ) %]
358 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
360 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
362 <label for="dropboxcheck">Dropbox mode</label>
370 [% IF ( returned ) %]
371 <div class="yui-g"> <table>
372 <tr><th>Item Information</th><th>Patron Information</th></tr>
374 <td>[% title |html %]</td>
377 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riborrowernumber %]">[% riborsurname %], [% ribortitle %] [% riborfirstname %]</a> ([% riborcnum %])
379 ([% FOREACH flagloo IN flagloop %]
381 [% IF ( flagloo.charges ) %] of [% flagloo.chargeamount %] [% END %]
389 <h2>Checked-In items</h2>
391 <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>
393 [% FOREACH riloo IN riloop %]
395 <td>[% IF ( riloo.duedate ) %]
396 [% IF ( riloo.return_overdue ) %]
397 <span class="overdue">[% riloo.duedate %] (overdue)</span>
398 [% ELSE %][% riloo.duedate %]
400 [% ELSE %]Not checked out
403 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
404 [% riloo.itemtitle |html %]</a></td>
405 <td>[% riloo.itemauthor %]</td>
406 <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
407 <td>[% riloo.itemcallnumber %]</td>
408 <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
409 <td>[% IF ( riloo.duedate ) %]
410 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
411 [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
413 [% ELSE %]Not checked out[% END %]</td>
414 <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
415 [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
424 [% INCLUDE 'intranet-bottom.inc' %]