From: Michael Peters Date: Wed, 10 Dec 2014 14:51:17 +0000 (-0500) Subject: Add a toggle to show a link to a Google Map on Library Page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3bd088af36e3cf1f15b47803cf2b90f58d44b02a;p=working%2FEvergreen.git Add a toggle to show a link to a Google Map on Library Page By setting ctx.google_maps_link = 1 in config.tt2, a link to a Google Map of the org unit in question will be placed on the Library Page (core_info.tt2 aka eg/opac/library/CONS) where CONS = shortname of org unit. Signed-off-by: Michael Peters --- diff --git a/Open-ILS/src/templates/opac/parts/config.tt2 b/Open-ILS/src/templates/opac/parts/config.tt2 index 8b0e69f3c0..b050317a80 100644 --- a/Open-ILS/src/templates/opac/parts/config.tt2 +++ b/Open-ILS/src/templates/opac/parts/config.tt2 @@ -160,6 +160,11 @@ search.basic_config = { ctx.google_books_preview = 0; ############################################################################## +# Show Google Map Links on Library Info Pages +# Set to 1 or 'true' to enable +ctx.google_maps_link = 0; + +############################################################################## # Set a maintenance message to display in the catalogue # 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 1398f7035f..ed1f6c20df 100644 --- a/Open-ILS/src/templates/opac/parts/library/core_info.tt2 +++ b/Open-ILS/src/templates/opac/parts/library/core_info.tt2 @@ -44,6 +44,10 @@ [%- END; %] + [%- IF ctx.google_maps_link; %] + Generate Map & Directions + [% END; -%] + [%- IF ctx.library.parent_ou; %]

Branch relationship

[% l('Parent library: ') %]