From: Terran McCanna Date: Thu, 11 Dec 2014 18:52:49 +0000 (-0500) Subject: Changes to item detail page holdings: X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b3b9ece3ef4b67ba2935b78da48af241b6bcea12;p=evergreen%2Fpines.git Changes to item detail page holdings: - fixed customized holding location links - moved shelving location after library location and before call number Signed-off-by: Terran McCanna Conflicts: Open-ILS/src/templates/opac/parts/record/copy_table.tt2 --- diff --git a/Open-ILS/src/templates/opac/parts/library_name_link.tt2 b/Open-ILS/src/templates/opac/parts/library_name_link.tt2 index 1ad030c25a..7e8202bc93 100644 --- a/Open-ILS/src/templates/opac/parts/library_name_link.tt2 +++ b/Open-ILS/src/templates/opac/parts/library_name_link.tt2 @@ -4,6 +4,9 @@ opac_root = ctx.kpac_root; END; + org_obj = ctx.get_aou(copy_info.circ_lib); + parent_org_name = ctx.get_aou(org_obj.parent_ou).name; + org_name = ctx.get_aou(copy_info.circ_lib).name; org_sname = ctx.get_aou(copy_info.circ_lib).shortname; lib_url = ctx.get_org_setting(copy_info.circ_lib, 'lib.info_url'); @@ -11,8 +14,9 @@ UNLESS lib_url && prefer_external_url; lib_url = mkurl(opac_root _ '/library/' _ ctx.get_aou(copy_info.circ_lib).shortname, {}, 1); END; - IF lib_url; ''; END; - ''; org_name | html; ''; + IF lib_url; ''; END; + ''; parent_org_name _ ': ' _ org_name | html; ''; IF lib_url; ''; END; -%] + diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index 1e0456cf83..41e942909a 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -36,14 +36,14 @@ IF has_copies or ctx.foreign_copies; [% IF serial_holdings -%] [% l("Issue Label") %] [%- ELSE -%] - [% l("Location") %] + [% l("Library System: Library Branch Name") %] [%- END %] + [% l("Shelving Location") %] [% l("Call Number / Copy Notes") %] [%- IF has_parts == 'true' %] [% l("Part") %] [%- END %] [% l("Barcode") %] - [% l("Shelving Location") %] [%- IF ctx.is_staff %] [% l("Circulation Modifier") %] [% l("Age Hold Protection") %] @@ -70,9 +70,9 @@ IF has_copies or ctx.foreign_copies; + [% copy_info.copy_location | html %] [% bib.target_copy.call_number.label | html %] [% bib.target_copy.barcode | html %] - [% bib.target_copy.location.name | html %] [% bib.target_copy.status.name | html %] [% date.format(ctx.parse_datetime(copy_info.due_date, copy_info.circ_circ_lib),DATE_FORMAT) %] @@ -98,14 +98,15 @@ END; # FOREACH bib [%- IF serial_holdings %] [%- copy_info.holding_label | html; -%] - [%- ELSE %] - [%- INCLUDE "opac/parts/library_name_link.tt2"; -%] + [%- ELSE %] + + [%- INCLUDE "opac/parts/library_name_link.tt2"; -%] - [% END %] - [% callnum | html %] [% IF ctx.get_org_setting(CGI.param('loc') - OR ctx.aou_tree.id, 'sms.enable') == 1 %](Text)[% END %] + + [% END %] + [% copy_info.copy_location | 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 %]