</table>
[% END %]
- [% IF ( reserves ) %]
- <table>
- <caption>Pending holds</caption>
+ [% IF ( reserves ) %]
+ <table>
+ <caption>Pending holds</caption>
+ <tr>
+ <th>Title</th>
+ <th>Author</th>
+ <th>Placed on</th>
+ <th>Expires on</th>
+ <th>Pick up location</th>
+ </tr>
+
+ [% FOREACH reserve IN reserves %]
<tr>
- <th>Title</th>
- <th>Author</th>
- <th>Placed on</th>
- <th>Expires on</th>
- <th>Pick up location</th>
+ <td>[% reserve.title %]</td>
+ <td>[% reserve.author %]</td>
+ <td>[% reserve.reservedate | $KohaDates %]</td>
+ <td>[% reserve.expirationdate | $KohaDates %]</td>
+ <td>[% reserve.waiting_at %]</td>
</tr>
-
- [% FOREACH reserve IN reserves %]
- <tr>
- <td>[% reserve.title %]</td>
- <td>[% reserve.author %]</td>
- <td>[% reserve.reservedate | $KohaDates %]</td>
- <td>[% reserve.expirationdate | $KohaDates %]</td>
- <td>[% reserve.waiting_at %]</td>
- </tr>
- [% END %]
- </table>
+ [% END %]
+ </table>
[% END %]
[% IF ( accounts && ( totaldue != '0.00' ) ) %]
while ( my $reserve = $reserves->next() ) {
-my $row = {
- title => $reserve->biblio()->title(),
- author => $reserve->biblio()->author(),
- reservedate => $reserve->reservedate(),
- expirationdate => $reserve->expirationdate(),
- waiting_at => $reserve->branch()->branchname(),
- };
+ my $row = {
+ title => $reserve->biblio()->title(),
+ author => $reserve->biblio()->author(),
+ reservedate => $reserve->reservedate(),
+ expirationdate => $reserve->expirationdate(),
+ waiting_at => $reserve->branch()->branchname(),
+ };
push( @{$return}, $row );
}