1 [% cnoffset = CGI.param('cnoffset') || 0; %]
3 <div id='cn_browse' class='cn_browser'>
4 <div id='cn_browse_div'>
6 <span>[% l("You are now browsing") %]</span>
7 <strong>[% ctx.browsing_ou.name %]</strong>
9 <table class='data_grid bookshelf' width='100%'>
13 <a id='cn_browse_prev' class='classic_link'
14 href="[% mkurl('', {cnoffset => cnoffset - 1}) %]#cnbrowse"><b>[% l("<< Previous Page") %]</b></a>
16 <td colspan='1' align='center'>[% l("Shelf Browser") %]</td>
18 <a id='cn_browse_next' class='classic_link'
19 href="[% mkurl('', {cnoffset => cnoffset + 1}) %]#cnbrowse"><b>[% l("Next Page >>") %]</b></a>
24 [% tr_open = 0; FOR cn IN ctx.browsed_call_numbers %]
25 [%- IF loop.index % 3 == 0; tr_open = 1 %]
26 <tr class='cn_browse_row'>
28 <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;
33 <a href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {}, 1) %]"><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>
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'
40 href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {}, 1) %]">[% rec_attrs.title %]</a>
42 [% IF rec_attrs.author %]<div class='cn_browse_info'>
43 <a name='cn_browse_author' class='classic_link'
45 authorquery = rec_attrs.author | replace('[,\.:;]', '');
46 mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, 1)
47 -%]">[% rec_attrs.author | html_entity %]</a>
49 <div class='cn_browse_info' name='cn_browse_lib'>[% cn.owning_lib.name %]</div>
51 [% IF loop.index % 3 == 2; tr_open = 0 %]
54 [% END; IF tr_open %]</tr>[% END %]