]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/parts/record/cnbrowse.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / parts / record / cnbrowse.tt2
1 <div id='cn_browse' class='cn_browser'>
2     <div id='cn_browse_div'> 
3         <div class='color_4'>
4             <span>[% l("You are now browsing") %]</span>
5             <strong>[% ctx.get_aou(CGI.param('loc')).name %]</strong>
6         </div>
7         <table class='data_grid bookshelf' width='100%'>
8             <thead>
9                 <tr>
10                     <td>
11                         <a id='cn_browse_prev' class='classic_link' href="[% ctx.opac_root %]/record/[% ctx.bre_id _ extras_propagator _ '&amp;cnoffset=' _ ((CGI.param('cnoffset') || 0) - 1) _ '&amp;expand=cnbrowse#cnbrowse' %]"<b>[%
12                             l("&lt;&lt; Previous Page")
13                         %]</b></a>
14                     </td>
15                     <td colspan='1' align='center'>[% l("Shelf Browser") %]</td>
16                     <td>
17                         <a id='cn_browse_next' class='classic_link' href="[% ctx.opac_root %]/record/[% ctx.bre_id _ extras_propagator _ '&amp;cnoffset=' _ ((CGI.param('cnoffset') || 0) + 1) _ '&amp;expand=cnbrowse#cnbrowse' %]"<b>[%
18                             l("Next Page &gt;&gt;")
19                         %]</b></a>
20                     </td>
21                 </tr>
22             </thead>
23             <tbody id='cn_tbody'>
24             [% tr_open = 0; FOR cn IN ctx.browsed_call_numbers %]
25                 [%- IF loop.index % 3 == 0; tr_open = 1 %]
26                 <tr id='cn_browse_row'>
27                 [% END -%]
28                     <td id='cn_browse_td' class='cn_browse_item' width='25%' valign='top'>
29                         [%  rec_attrs = {marc_xml => cn.record.marc};
30                             PROCESS get_marc_attrs args=rec_attrs;
31                             ident = rec_attrs.isbn_clean || rec_attrs.upc;
32                             IF ident %]
33                         <a href="[% ctx.opac_root %]/record/[% cn.record.id _ extras_propagator %]"><img height='60' width='50' 
34                             class='cn_browse_info' name='cn_browse_pic' border='0'
35                             src="[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident %]" /></a>
36                         [% END %]
37                         <div class='cn_browse_info bold' name='cn_browse_cn'>[% cn.label %]</div>
38                         <div class='cn_browse_info'>
39                             <a name='cn_browse_title' class='classic_link' href="[% ctx.opac_root %]/record/[% cn.record.id _ extras_propagator %]">[% rec_attrs.title %]</a>
40                         </div>
41                         [% IF rec_attrs.author %]<div class='cn_browse_info'>
42                             <a name='cn_browse_author' class='classic_link'
43                                 href="[% ctx.opac_root %]/results?qtype=author&amp;query=[%- rec_attrs.author | replace('[,\.:;]', '') | uri %]&amp;loc=[% CGI.param('loc') | uri %]">[% rec_attrs.author %]</a>
44                         </div>[% END %]
45                         <div class='cn_browse_info' name='cn_browse_lib'>[% cn.owning_lib.name %]</div>
46                     </td>
47                 [% IF loop.index % 3 == 2; tr_open = 0 %]
48                 </tr>
49                 [% END %]
50             [% END; IF tr_open %]</tr>[% END %]
51             </tbody>
52         </table>
53     </div>
54 </div>