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