From 8f07cedbc5f572cc0d1c272a724d9f45c7b25fb4 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Thu, 11 Dec 2014 13:52:49 -0500 Subject: [PATCH] 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 --- .../src/templates/opac/parts/library_name_link.tt2 | 6 +++++- .../src/templates/opac/parts/record/copy_table.tt2 | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 11 deletions(-) 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 3179e5f62b..e039543257 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'); @@ -12,7 +15,8 @@ lib_url = mkurl(opac_root _ '/library/' _ ctx.get_aou(copy_info.circ_lib).shortname, {}, 1); END; IF lib_url; ''; END; - ''; org_name | html; ''; + ''; 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 c87c27e595..3978f58af9 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -32,14 +32,14 @@ END; [% 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("Age Hold Protection") %] [% l("Active/Create Date") %] @@ -65,9 +65,9 @@ END; + [% copy_info.copy_location | html %] [% bib.target_copy.call_number.label | html %] [% bib.target_copy.barcode | html %] - [% copy_info.copy_location | html %] [% copy_info.copy_status | html %] [% copy_info.due_date | html %] @@ -93,14 +93,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 %] @@ -137,7 +138,6 @@ END; # FOREACH bib ''; END; -%] - [% copy_info.copy_location | html %] [%- IF ctx.is_staff %] [% copy_info.age_protect ? -- 2.11.0