1d413b754f0e061926c6ea7f6dcba531d8712a80
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / returns.tt
1 [% USE KohaDates %]
2 [% USE Branches %]
3 [% USE Koha %]
4
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Circulation &rsaquo; Check in [% title |html %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8
9 [% INCLUDE 'calendar.inc' %]
10 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
11
12 <script type="text/javascript">
13 //<![CDATA[
14 function Dopop(link) {
15     var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
16     $("#barcode").focus();
17 }
18 $(document).ready(function () {
19     $("#return_date_override").datetimepicker({
20         onClose: function(dateText, inst) { $("#barcode").focus(); },
21         hour: 23,
22         minute: 59
23     });
24     $("#exemptcheck").change(function () {
25         if (this.checked == true) {
26             $("#barcode").addClass("alert");
27             $("#exemptfines").show();
28         } else {
29             $("#barcode").removeClass("alert");
30             $("#exemptfines").hide();
31         }
32         $("#barcode").focus();
33     });
34     $("#dropboxcheck").change(function () {
35         if (this.checked == true) {
36             $("#barcode").addClass("alert");
37             $("#dropboxmode").show();
38
39             $("#return_date_override_fields :input").attr("disabled", true);
40             $("#return_date_override").datetimepicker("disable");
41         } else {
42             $("#barcode").removeClass("alert");
43             $("#dropboxmode").hide();
44
45             $("#return_date_override_fields :input").attr("disabled", false);
46             $("#return_date_override").datetimepicker("enable");
47         }
48         $("#barcode").focus();
49     });
50     [% IF(overduecharges) %] $("#barcode").focus(function () {
51         if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) {
52             $("#barcode").addClass("alert");
53         } else {
54             $("#barcode").removeClass("alert");
55         }
56     });
57     $("#barcode").blur(function () {
58         $("#barcode").removeClass("alert");
59     });
60     [% END %]
61 });
62 //]]>
63 </script>
64 </head>
65 <body id="circ_returns" class="circ">
66
67 [% INCLUDE 'header.inc' %]
68 [% INCLUDE 'checkin-search.inc' %]
69
70 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Check in</div>
71
72 <div id="doc" class="yui-t7">
73
74    <div id="bd">
75         <div id="yui-main">
76
77 <div class="yui-g">
78
79 [% IF additional_materials %]
80     <div class="dialog message" id="materials">Note about the accompanying materials: <br />
81     [% additional_materials %]
82     </div>
83 [% END %]
84
85 [% IF ( collectionItemNeedsTransferred ) %]
86         <div id="rotating-collection" class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
87 [% END %]
88
89 <!-- Patron has fines -->
90 [% IF ( fines ) %]
91     <div class="dialog alert">
92         <h3>Patron has outstanding fines of [% fines %].</h3>
93         <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
94     </div>
95 [% END %]
96
97 <!-- Patron has waiting holds -->
98 [% IF ( waiting_holds ) %]
99     <div id="awaiting-pickup" class="dialog message">
100         <h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
101         <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
102     </div>
103 [% END %]
104
105
106 [% IF ( wrongbranch ) %]
107 <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>
108 </div>
109 [% END %]
110 <!-- case of a mistake in transfer loop -->
111 [% IF ( WrongTransfer ) %]<div id="return2" class="dialog message"><!-- WrongTransfer --><h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title |html %]</a> to [% Branches.GetName( TransferWaitingAt ) %]</h3><h3><a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&amp;&amp;branchcode=[% homebranch %]&amp;op=slip'); return true;">Print slip</a> or <a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&amp;canceltransfer=1">Cancel transfer</a></h3>
112 [% IF ( wborcnum ) %]<h5>Hold for:</h5>
113         <ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
114             [% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
115         <li>[% wboraddress %][% IF ( wboraddress2 ) %]<br />
116                 [% wboraddress2 %]<br />[% END %]
117         [% wborcity %]  [% wborzip %]</li>
118         [% IF ( wborphone ) %]<li>[% wborphone %]</li>[% END %]
119                 [% IF ( wboremail ) %]<li><a id="boremail" href="mailto:[% wboremail %]">[% wboremail %]</a></li>[% END %]
120         </ul>
121
122     <form method="post" action="returns.pl" class="confirm">
123             <input type="hidden" name="WT-itemNumber" value="[% WrongTransferItem %]" />
124             <input type="hidden" name="WT-waitingAt" value="[% TransferWaitingAt %]" />
125             <input type="hidden" name="WT-From" value="[% wtransfertFrom %]" />
126         <input type="submit" class="approve" value="Confirm" />
127             <input type="submit" value="Print slip and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&amp;borrowernumber=[% borrowernumber %]&amp;biblionumber=[% itembiblionumber %]&amp;op=slip'); this.form.submit();" />
128     </form>
129     [% END %]</div>
130 [% END %]
131
132 [% IF ( found ) %]
133 <!-- found -->
134 <!-- case of a reservation found, and display info -->
135     [% IF ( waiting ) %]
136         <!-- waiting -->
137
138 [% IF ( soundon ) %]
139 <audio src="[% interface %]/[% theme %]/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
140 [% END %]
141
142 <div id="hold-found1" class="dialog message">
143         <h3>Hold found (item is already waiting):  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
144         [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
145         <h4>Hold for:</h4>
146                         <ul>
147             <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
148             <li>[% boraddress %]<br />
149                         [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
150             [% borcity %] [% borzip %]</li>
151            [% IF ( borphone ) %]<li> [% borphone %]</li>[% END %]
152                    [% IF ( boremail ) %]<li><a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a></li>[% END %]
153 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
154 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]</ul>
155                 [% IF ( transfertodo ) %]
156             <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
157                 [% ELSE %]
158                 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
159         [% END %]
160         <form method="post" action="returns.pl" class="confirm">
161             <input type="submit" class="approve" value="Confirm" />
162
163             <input type="submit" value="Print and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&amp;biblionumber=[% itembiblionumber %]&amp;op=slip'); this.form.submit();" />
164             [% FOREACH inputloo IN inputloop %]
165                 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
166                 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
167                 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
168             [% END %]
169                 <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
170                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
171                 <input type="hidden" name="resbarcode" value="[% barcode %]" />
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                 </form>
176         </div>
177     [% END %]
178
179     [% IF ( diffbranch ) %]
180                 <!-- diffbranch -->
181         [% IF ( soundon ) %]
182         <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
183         [% END %]
184         <div id="transfer-needed" class="dialog message">
185                 <h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
186                 <h4>Hold for: </h4>
187                     <ul>
188                         <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
189                         <li>[% boraddress %]<br />
190                                                 [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
191                                                 [% borcity %]  [% borzip %]</li>
192                         [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
193                         [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
194 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
195 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
196                     </ul>
197                 [% IF ( transfertodo ) %]
198             <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
199                 [% ELSE %]
200                 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
201         [% END %]
202
203         <form method="post" action="returns.pl" class="confirm">
204             <input type="submit" class="approve" value="Confirm" />
205             <input type="submit" value="Print slip and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&amp;borrowernumber=[% borrowernumber %]&amp;biblionumber=[% itembiblionumber %]&amp;op=slip'); this.form.submit();" />
206             [% FOREACH inputloo IN inputloop %]
207                 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
208                 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
209                 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
210             [% END %]
211             <input type="hidden" name="diffBranch" value="[% destbranch %]" />
212             <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
213             <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
214             <input type="hidden" name="barcode" value="0" />
215         </form>
216                 </div>
217     [% END %]
218
219     [% IF ( transfer ) %]
220     <!-- transfer: item with no reservation, must be returned to its home library -->
221         <div id="return1" class="dialog message">
222             <h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% homebranchname %]<br/>( <a href="#" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&amp;branchcode=[% homebranch %]&amp;op=slip'); return true;">Print slip</a> )</h3>
223         </div>
224         [% IF ( soundon ) %]
225         <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
226         [% END %]
227     [% END %]
228
229     [% IF ( needstransfer ) %]
230         <!-- needstransfer -->
231         [% IF ( soundon ) %]
232         <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
233         [% END %]
234         <div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
235     Transfer now?<br />
236     <form method="post" action="returns.pl" name="mainform" id="mainform">
237     [% IF itemnumber %]
238         <input type="submit" name="dotransfer" value="Yes, Print slip" class="print" onclick="Dopop('transfer-slip.pl?transferitem=[% itemnumber %]&amp;&amp;branchcode=[% homebranch %]&amp;op=slip'); return true;" />
239     [% END %]
240         <input type="submit" name="dotransfer" value="Yes" class="submit" />
241         <input type="submit" name="notransfer" value="No" class="submit" />
242         <input type="hidden" name="tobranch" value="[% homebranch %]" />
243         <input type="hidden" name="transferitem" value="[% itemnumber %]" />
244         <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
245         <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
246         [% FOREACH inputloo IN inputloop %]
247         <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
248         <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
249         <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
250         [% END %]
251         <input type="hidden" name="barcode" value="0" />
252         </form>   </div>
253     [% END %]
254
255     [% IF ( diffbranch ) %]
256         <!-- diffbranch -->
257         [% IF ( soundon ) %]
258         <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
259         [% END %]
260         <h3>Item consigned:</h3>
261         <table>
262         <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&amp;biblionumber=[% itembiblionumber %]">[% title |html %]</a></caption>
263         <tr>
264             <th>Hold for:</th>
265             <td>[% name %]</td>
266         </tr>
267         </table>
268         <form method="post" action="returns.pl"><input type="submit" value="OK" />
269             [% FOREACH inputloo IN inputloop %]
270                 [% UNLESS ( inputloo.first ) %]
271                     <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
272                     <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
273                     <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
274                 [% END %]
275             [% END %]
276             <input type="hidden" name="barcode" value="0" />
277         </form>
278     [% END %]
279
280
281     <!-- case of simple return no issue or transfer but with a reservation  -->
282     [% IF ( reserved ) %]
283         <!--  reserved  -->
284
285         [% IF ( soundon ) %]
286         <audio src="[% interface %]/[% theme %]/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
287         [% END %]
288
289         <div id="hold-found2" class="dialog message">
290       <h3>Hold found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
291         [% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
292         <h5>Hold for:</h5>
293                 <ul>
294             <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
295                 [% borsurname %], [% borfirstname %]
296             </a> ([% borcnum %])</li>
297             <li>[% boraddress %]<br />
298                         [% IF ( boraddress2 ) %][% boraddress2 %]<br />[% END %]
299                         [% borcity %] [% borzip %]</li>
300             [% IF ( borphone ) %]<li>[% borphone %]</li>[% END %]
301             [% IF ( boremail ) %]<li>[% IF ( transfertodo ) %][% boremail %][% ELSE %]<a id="boremail" href="mailto:[% boremail %]">[% boremail %]</a>[% END %]</li>[% END %]
302 [% IF ( debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
303 [% IF ( gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
304         </ul>
305         [% IF ( transfertodo ) %]
306             <h4><strong>Transfer to:</strong> [% destbranchname %]</h4>
307                 [% ELSE %]
308                 <h4><strong>Hold at</strong> [% destbranchname %]</h4>
309         [% END %]
310         <form method="post" action="returns.pl" class="confirm">
311             [% IF ( transfertodo ) %]
312                 <input type="submit" class="approve" value="Confirm hold and transfer" />
313                 <input type="submit" value="Print slip, transfer, and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?transfer=1&amp;borrowernumber=[% borrowernumber %]&amp;biblionumber=[% itembiblionumber %]&amp;op=slip'); this.form.submit();" />
314             [% ELSE %]
315                 <input type="submit" class="approve" value="Confirm hold" />
316                 <input type="submit" value="Print slip and confirm" class="print" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&amp;biblionumber=[% itembiblionumber %]&amp;op=slip'); this.form.submit();" />
317             [% END %]
318                 <input type="submit" class="deny" value="Ignore" onclick="$('.dialog:visible').hide('slow'); $('#barcode').focus(); return false;" />
319             [% FOREACH inputloo IN inputloop %]
320         <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
321         <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
322         <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />[% END %]
323             <input type="hidden" name="itemnumber" value="[% itemnumber %]" />
324             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
325             <input type="hidden" name="resbarcode" value="[% barcode %]" />
326             <input type="hidden" name="diffBranch" value="[% destbranch %]" />
327             <input type="hidden" name="exemptfine" value="[% exemptfine %]" />
328             <input type="hidden" name="dropboxmode" value="[% dropboxmode %]" />
329         </form>
330         </div>
331     [% END %]
332 [% END %]
333
334 [% IF ( errmsgloop ) %]
335     <div class="dialog alert">
336         <h3>Check in message</h3>
337         [% FOREACH errmsgloo IN errmsgloop %]
338                     [% IF ( errmsgloo.badbarcode ) %]
339                         <p class="problem">No item with barcode: [% errmsgloo.msg %]</p>
340                     [% END %]
341                     [% IF ( errmsgloo.ispermanent ) %]
342                         <p class="problem">Please return to  [% errmsgloo.msg %]</p>
343                     [% END %]
344                     [% IF ( errmsgloo.notissued ) %]
345                         <p class="problem">Not checked out.</p>
346                     [% END %]
347                     [% IF ( errmsgloo.localuse) %]
348                         <p class="problem">Local use recorded</p>
349                     [% END %]
350                     [% IF ( errmsgloo.waslost ) %]
351                         <p class="problem">Item was lost, now found.</p>
352                         [% IF ( LostItemFeeRefunded ) %]
353                             <p class="problem">A refund has been applied to the borrowing patron's account.</p>
354                         [% ELSE %]
355                             <p class="problem">Any lost item fees for this item will remain on the patron's account</p>
356                         [% END %]
357                     [% END %]
358                     [% IF ( errmsgloo.withdrawn ) %]
359                         [% IF BlockReturnOfWithdrawnItems %]
360                            <h5>Cannot check in</h5>
361                            <p class="problem">Item is withdrawn. <strong>NOT CHECKED IN</strong></p>
362                         [% ELSE %]
363                            <p class="problem">Item is withdrawn.</p>
364                         [% END %]
365                     [% END %]
366                     [% IF ( errmsgloo.debarred ) %]
367                         <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>
368                     [% END %]
369             [% END %]
370 [% IF ( soundon ) %]
371 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
372 [% END %]
373         [% ELSE %]
374 [% IF ( soundon ) %]
375 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
376 [% END %]
377         [% END %]
378     </div>
379
380 [% IF ( checkinmsg ) %]
381     [% IF ( checkinmsgtype == 'alert' ) %]
382         <div class="dialog alert">
383     [% ELSE %]
384         <div class="dialog message">
385     [% END %]
386             <p class="problem">[% checkinmsg | html_line_break %]</p>
387         </div>
388 [% END%]
389
390     <div id="exemptfines" class="dialog message" style="display:none;">
391         <p>Fines for returned items are forgiven.</p>
392     </div>
393     <div id="dropboxmode" class="dialog message" style="display:none;">
394         <p>Book drop mode.  (Effective checkin date is [% dropboxdate %] ).</p>
395     </div>
396 </div>
397         <div class="yui-g">
398     <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
399     <div class="yui-u first">
400             <fieldset>
401         <legend>Check in</legend>
402             <label for="barcode">Enter item barcode: </label>
403                         [% IF ( exemptfine ) %]
404                         <input name="barcode" id="barcode" size="14" class="focus alert"/>
405                         [% ELSIF ( dropboxmode ) %]
406                         <input name="barcode" id="barcode" size="14" class="focus alert"/>
407                         [% ELSE %]
408                         <input name="barcode" id="barcode" size="14" class="focus"/>
409                         [% END %]
410             <input type="submit" class="submit" value="Submit" />
411
412             [% IF Koha.Preference('SpecifyReturnDate') %]
413                 <div class="date-select" id="return_date_override_fields">
414                     <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
415
416                     <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" readonly="readonly" />
417
418                     <label for="return_date_override_remember"> Remember for next check in:</label>
419                     [% IF ( return_date_override_remember ) %]
420                         <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" checked="checked" />
421                     [% ELSE %]
422                         <input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" />
423                     [% END %]
424
425                     <input type="button" class="action" id="cleardate" value="Clear" name="cleardate" onclick="this.checked = false; this.form.return_date_override.value = ''; this.form.return_date_override_remember.checked = false; this.form.barcode.focus(); return false;" />
426             </div>
427         [% END %]
428             [% FOREACH inputloo IN inputloop %]
429                 <input type="hidden" name="ri-[% inputloo.counter %]" value="[% inputloo.barcode %]" />
430                 <input type="hidden" name="dd-[% inputloo.counter %]" value="[% inputloo.duedate %]" />
431                 <input type="hidden" name="bn-[% inputloo.counter %]" value="[% inputloo.borrowernumber %]" />
432             [% END %]
433
434
435             </fieldset>
436             </div>
437             <div class="yui-u">
438             <fieldset id="checkin_options">
439                 <legend>Options</legend>
440                     [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
441                     <p>
442                         [% IF ( exemptfine ) %]
443                         <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
444                         [% ELSE %]
445                         <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
446                         [% END %]
447                         <label for="exemptcheck">Forgive overdue charges</label>
448                     </p>
449                     [% END %] <!-- overduecharges -->
450                     <p>
451                         [% IF ( dropboxmode ) %]
452                         <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
453                         [% ELSE %]
454                         <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
455                         [% END %]
456                         <label for="dropboxcheck">Book drop mode</label>
457                     </p>
458             </fieldset>
459         </div>
460     </form>
461 </div>
462
463 [% IF ( riloop ) %]
464     <h2>Checked-in items</h2>
465     <table>
466     <tr><th>Due date</th><th>Title</th> <th>Author</th> <th>Barcode</th><th>Home library</th><th>Holding library</th><th>Shelving location</th><th>Call number</th><th>Type</th>        <th>Patron</th><th>Note</th></tr>
467
468         [% FOREACH riloo IN riloop %]
469             <tr>
470             <td>[% IF ( riloo.duedate ) %]
471                     [% IF ( riloo.return_overdue ) %]
472                         <span class="overdue">[% riloo.duedate %] (overdue)</span>
473                     [% ELSE %][% riloo.duedate %]
474                     [% END %]
475                 [% ELSE %]Not checked out
476                 [% END %]
477             </td>
478             <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber %]">
479                     [% riloo.itemtitle |html %]</a></td>
480                         <td>[% riloo.itemauthor %]</td>
481             <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&amp;itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
482             <td>[% riloo.homebranch %]</td>
483             <td>[% riloo.holdingbranch %]</td>
484             <td>[% riloo.location %]</td>
485             <td>[% riloo.itemcallnumber %]</td>
486             <td>[% riloo.itemtype %] [% riloo.ccode %]</td>
487                         <td>[% IF ( riloo.duedate ) %]
488                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]">
489                     [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %])
490                 </a>
491             [% ELSE %]Not checked out[% END %]</td>
492             <td>[% IF ( riloo.bornote ) %]<span class="circ-hlt">[% riloo.bornote %]<br /></span>[% END %]
493             [% IF ( riloo.itemnote ) %]<span class="circ-hlt">[% riloo.itemnote %]</span>[% END %]
494             </td>
495            </tr>
496         [% END %]
497     </table></div>
498 [% END %]
499
500
501 </div>
502 [% INCLUDE 'intranet-bottom.inc' %]