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