- [% FOREACH issueloo IN issueloop %]
- [% IF ( issueloo.red ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
- <td>
- [% issueloo.title |html %]
- <a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&biblionumber=[% issueloo.biblionumber %]&bi=[% issueloo.biblioitemnumber %]">
- </a>
- </td>
- <td>[% issueloo.author %]</td>
- <td>[% issueloo.itemtype_description %]</td>
- <td>[% issueloo.date_due %]</td>
- <td>[% issueloo.charge %]</td>
- <td>[% issueloo.replacementprice %]</td>
- <td>[% IF ( issueloo.red ) %]Overdue![% ELSE %] [% END %]</td>
- </tr>
- [% END %]
- <tr>
- <td colspan="4" style="text-align: right; font-weight:bold;">Totals:</td>
- <td>[% totaldue %]</td>
- <td>[% totalprice %]</td>
- <td colspan="2"> </td>
- </tr>
- </table>
- [% END %]
-
-[% IF ( reserveloop ) %]
-<table>
- <caption>Items on Reserve</caption>
- <tr>
- <th>Title</th>
- <th>Author</th>
- <th>Format</th>
- <th>Requested</th>
- </tr>
+ [% FOREACH account IN accounts %]
+ [% NEXT IF account.amountoutstanding == 0 %]
+ <tr>
+ <td>
+ [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">[% END %]
+ [% account.description %] [% IF ( account.printtitle ) %] [% account.title |html %][% END %]
+ [% IF ( account.itemnumber ) %]</a>[% END %]
+ </td>
+ <td>[% account.date | $KohaDates %]</td>
+ <td style="text-align:right;">[% account.amount | $Price %]</td>
+ <td style="text-align:right;">[% account.amountoutstanding | $Price %]</td>
+ </tr>
+ [% END %]