From: Terran McCanna Date: Thu, 26 Dec 2019 18:12:09 +0000 (-0500) Subject: PINES Fix to custom holdings list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7cbc4c9a47f0ca9246e9ef275036a7deb495e4b5;p=evergreen%2Fpines.git 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 --- 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 cdaf0473e4..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 %]

[%- @@ -25,25 +30,29 @@
[% l('Email address: ') %][% ctx.library.email | html %]
[%- END; %] [%- IF ctx.library.phone; %] -
[% l('Telephone: ') %][% ctx.library.phone | html %]
+
[% l('Telephone: ') %][% ctx.library.phone | html %]

[% END; %] [% END; %] [%- IF ctx.library.mailing_address; %]
-

[% l('Mailing address') %]

+ [% ctx.library.name | html %]
[% ctx.mailing_address.street1 | html %] [%- IF ctx.mailing_address.street2; "
"; ctx.mailing_address.street2 | html; END; %]

- [% ctx.mailing_address.city | html %]
- [% ctx.mailing_address.state | html %]
- [% ctx.mailing_address.country | html %]
+ [% ctx.mailing_address.city | html %], + [% ctx.mailing_address.state | html %] [% ctx.mailing_address.post_code | html %]
+
+ Generate Map & Directions
[%- END; %] + +
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 8b8275e634..faf99fafc4 100644 --- a/Open-ILS/src/templates/opac/parts/library_name_link.tt2 +++ b/Open-ILS/src/templates/opac/parts/library_name_link.tt2 @@ -4,7 +4,6 @@ opac_root = ctx.kpac_root; END; - # Allow fleshed circ_libs IF copy_info.circ_lib.name; org_id = copy_info.circ_lib.id; org_name = copy_info.circ_lib.name; @@ -15,13 +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; - ''; org_name | html; ''; - IF lib_url; ''; END; + ''; parent_org_name _ ':' | html;''; + '
      '; + IF lib_url; + ''; + END; + ''; org_name; ''; + IF lib_url; + ''; + END; -%] +