[%- FOREACH copy_info IN ctx.copies; IF copy_info.part_label != ''; has_parts = 'true'; LAST; END; END; %]
[% l("Location") %] | [% l("Call Number") %] | [%- IF has_parts == 'true' %][% l("Part") %] | [%- END %][% l("Barcode") %] | [% l("Shelving Location") %] | [%- IF ctx.is_staff %][% l("Age Hold Protection") %] | [% l("Create Date") %] | [% l("Holdable?") %] | [%- END %][% l("Status") %] | [% l("Due Date") %] |
---|---|---|---|---|---|---|---|---|---|
[%- org_name = ctx.get_aou(copy_info.circ_lib).name; org_name | html -%] | [% callnum | html %] [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](Text)[% END %] | [%- IF has_parts == 'true' %][% copy_info.part_label | html %] | [%- END %][% copy_info.barcode | html %] | [% copy_info.copy_location | html %] | [%- IF ctx.is_staff %][% copy_info.age_protect ? ctx.get_crahp(copy_info.age_protect).name : l('None') | html %] | [% date.format( ctx.parse_datetime(copy_info.create_date), DATE_FORMAT ) %] | [% # Show copy/volume hold links to staff (without # checking whether they have permissions to do those). overall_holdable = (copy_info.holdable == 't' AND copy_info.location_holdable == 't' AND copy_info.status_holdable == 't'); IF overall_holdable; l("Place on"); %] [% l("copy") %] [%- IF copy_info.call_number != last_cn; last_cn = copy_info.call_number; l(" / "); %] [% l("volume") %] [%- END; ELSE; l("No"); END %] | [%- END %][% copy_info.copy_status | html %] | [% IF copy_info.due_date; date.format( ctx.parse_datetime(copy_info.due_date), DATE_FORMAT ); ELSE; '-'; 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 %] [%- ELSIF ctx.copy_limit == more_copies_limit %] [%- END %] |