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