From 5cda086a24e7be73fd52acf6a484d825379378df Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Thu, 26 Dec 2019 13:12:09 -0500 Subject: [PATCH] PINES Fix to custom holdings list Corrects system name not showing up on record detail screen in holdings copy table. Also adds system name to the linked up library info page. Signed-off-by: Terran McCanna --- Open-ILS/src/templates/opac/parts/library/core_info.tt2 | 5 +++++ Open-ILS/src/templates/opac/parts/library_name_link.tt2 | 17 +++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/library/core_info.tt2 b/Open-ILS/src/templates/opac/parts/library/core_info.tt2 index c635fcdd59..52a3116b1f 100644 --- a/Open-ILS/src/templates/opac/parts/library/core_info.tt2 +++ b/Open-ILS/src/templates/opac/parts/library/core_info.tt2 @@ -6,6 +6,11 @@ -%]
+ + [%- IF ctx.library.parent_ou; %] + [% ctx.parent.name | html %]: + [% END; -%] +

[% ctx.library.name | html %]

[%- 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 60ae4c896f..faf99fafc4 100644 --- a/Open-ILS/src/templates/opac/parts/library_name_link.tt2 +++ b/Open-ILS/src/templates/opac/parts/library_name_link.tt2 @@ -14,18 +14,23 @@ org_sname = ctx.get_aou(org_id).shortname; END; + org_obj = ctx.get_aou(copy_info.circ_lib); + parent_org_name = ctx.get_aou(org_obj.parent_ou).name; + lib_url = ctx.get_org_setting(org_id, 'lib.info_url'); prefer_external_url = ctx.get_org_setting(org_id, 'lib.prefer_external_url'); UNLESS lib_url && prefer_external_url; lib_url = mkurl(opac_root _ '/library/' _ org_sname, {}, 1); END; - IF lib_url; ''; END; - ''; parent_org_name _ ':' | html; ''; + ''; parent_org_name _ ':' | html;''; '
      '; - IF lib_url; ''; END; - org_name; - IF lib_url; ''; END; - + IF lib_url; + ''; + END; + ''; org_name; ''; + IF lib_url; + ''; + END; -%] -- 2.11.0