From 830163dc2a8c1c0a21d856a78506c8ad4e9b3c09 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Thu, 10 Dec 2020 17:39:27 -0500 Subject: [PATCH] PINES OPAC Customization: Updates to Library Info Page - Add map link - Re-order and format info Signed-off-by: Terran McCanna --- .../opac/parts/library/core_info.tt2 | 61 +++++++++++----------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/library/core_info.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/library/core_info.tt2 index 9e48741d5b..220118badc 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/library/core_info.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/library/core_info.tt2 @@ -6,14 +6,30 @@ -%]
+ + [%- IF ctx.library.parent_ou; %] +
+ [% ctx.parent.name | html %]: +
+ [% END; -%] +

[% ctx.library.name | html %]

- [%- - lib_url = ctx.get_org_setting(ctx.library.id, 'lib.info_url'); - IF lib_url; - ''; - END; - -%] + [%- IF ctx.library.mailing_address; %] +
+
+

[% l('Location') %]

+ [% 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.post_code | html %]
+
+ Map / Directions +
+
+ [%- END; %] [%- IF ctx.hours; %] [%- INCLUDE "opac/parts/library/hours.tt2"; %] @@ -22,37 +38,20 @@ [%- IF (ctx.library.email OR ctx.library.phone); %]

[% l('Contact information') %]

+ [%- + lib_url = ctx.get_org_setting(ctx.library.id, 'lib.info_url'); + IF lib_url; + '
'; l('Library web site: '); ''; lib_url | html; '
'; + END; + -%] [%- IF ctx.library.email; %] -
[% l('Email address: ') %][% ctx.library.email | html %]
+
[% 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.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.post_code | html %]
-
-
- [%- END; %] - - [%- IF ctx.library.parent_ou; %] -
-

[% l('Branch relationship') %]

-
[% l('Parent library: ') %] - [% ctx.parent.name | html %] -
-
- [% END; -%]
-- 2.11.0