]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/templates/default/opac/records.tt2
7d53268286c483ae39f2ac4d66173858f89b6fac
[Evergreen.git] / Open-ILS / web / templates / default / opac / records.tt2
1 [% WRAPPER "default/opac/base.tt2" %]
2 [% ctx.page_title = "Results" %]
3 [% page = ctx.cgi.param('page') || 0; %]
4 <a href='?page=[% page - 1 %]'>Prev</a>  <a href='?page=[% page + 1 %]'>Next</a>
5 <br/>
6
7 <table>
8 [%
9     e = ctx.editor;
10     idx = 0;
11     WHILE idx < 10;
12         id = idx + page * 10;
13         attrs = e.search_acq_lineitem_attr({lineitem => id});
14         isbn = '';
15         FOR attr IN attrs; 
16             IF attr.attr_name == 'isbn';
17                 isbn = attr.attr_value;
18                 LAST;
19             END;
20         END;
21         idx = idx + 1;
22 %]
23
24 <tr>
25     <td><img width='65' height='90' src='/opac/extras/ac/jacket/small/[% isbn %]'/></td>
26     <td>[% FOR attr IN attrs; attr.attr_value _ ' / '; END; %]</td>
27 </tr>
28
29     [% END %]
30 </table>
31 [% END %]