[%- FOREACH copy_info IN ctx.copies; IF copy_info.call_number_label != '##URI##'; has_copies = 'true'; END; IF copy_info.part_label != ''; has_parts = 'true'; END; IF has_parts && has_copies; LAST; END; END; %] [%- IF has_copies; %]
[% l('Location') %] | [% l('Call Number') %] | [% l('Shelving Location') %] | [% l('Status') %] | |
[% ctx.get_aou(copy_info.circ_lib).name | html %] | [%- IF has_parts == 'true' %][% l('[_1] ([_2])', callnum, copy_info.part_label) | html %] | [% ELSE %][% callnum | html %] | [%- END %][% copy_info.copy_location | html %] | [% copy_info.copy_status | html %] |
[%- IF ctx.copy_offset > 0; new_offset = ctx.copy_offset - ctx.copy_limit; IF new_offset < 0; new_offset = 0; END %] « [% l('Previous [_1]', ctx.copy_offset - new_offset) %] [%- END %] | [%- IF ctx.copies.size >= ctx.copy_limit %] [% l('Next [_1]', ctx.copy_limit) %] » [%- END %] | [%- more_copies_limit = 50 %] [%# TODO: config %][%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %] [% l('Show more copies') %] [%- ELSIF ctx.copy_limit == more_copies_limit %] [% l('Show fewer copies') %] [%- END %] |