[%- 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; %] [%- FOR copy_info IN ctx.copies; callnum = copy_info.call_number_label; NEXT IF callnum == '##URI##'; callnum_prefix = copy_info.call_number_prefix_label; IF callnum_prefix != ""; callnum = callnum_prefix _ " " _ callnum; END; callnum_suffix = copy_info.call_number_suffix_label; IF callnum_suffix != ""; callnum = callnum _ " " _ callnum_suffix; END; -%] [%- IF has_parts == 'true' %] [% ELSE %] [%- END %] [%- END %] [%- more_copies_limit = 50 %] [%# TODO: config %]
[% l('Location') %] [% l('Call Number') %] [% l('Shelving Location') %] [% l('Status') %]
[%- org_name = ctx.get_aou(copy_info.circ_lib).name; lib_url = ctx.get_org_setting(copy_info.circ_lib, 'lib.info_url'); IF lib_url; ''; END; org_name | html; IF lib_url; ''; END; -%] [% l('[_1] ([_2])', callnum, copy_info.part_label) | html %][% callnum | html %][% 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 %] [%- 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 %]
[% END %]