[% cnoffset = CGI.param('cnoffset'); cnoffset = cnoffset.match('^-?\d+$') ? cnoffset : 0; # verify cnoffset is a sane value %]

[% l("You are now browsing [_1]", ctx.browsing_ou.name) | html %]

[%- tr_open = 0; PROCESS get_library; FOR cn IN ctx.browsed_call_numbers; IF loop.index % 3 == 0; tr_open = 1 %] [% END -%] [% IF loop.index % 3 == 2; tr_open = 0 %] [% END %] [% END; IF tr_open %][% END %]
[% l("<< Previous Page") %] [% l("Shelf Browser") %] [% l("Next Page >>") %]
 
[% rec_attrs = {marc_xml => cn.record.marc}; PROCESS get_marc_attrs args=rec_attrs; %]
[% cn.label | html %]
[% IF rec_attrs.author %][% END %]
[% cn.owning_lib.name | html %]