From 5cb06d54114eb2656deeafd1e728a755aa5c9f5c Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 9 Dec 2014 14:10:12 -0500 Subject: [PATCH] Static Google Maps in library page Just a proof of concept, not meant to be merged. Signed-off-by: Dan Scott --- .../src/templates/opac/parts/library/core_info.tt2 | 1 + Open-ILS/src/templates/opac/parts/library/maps.tt2 | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Open-ILS/src/templates/opac/parts/library/maps.tt2 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..45a24c77e6 100644 --- a/Open-ILS/src/templates/opac/parts/library/core_info.tt2 +++ b/Open-ILS/src/templates/opac/parts/library/core_info.tt2 @@ -42,6 +42,7 @@ [% ctx.mailing_address.post_code | html %]
+ [%- INCLUDE "opac/parts/library/maps.tt2"; %] [%- END; %] [%- IF ctx.library.parent_ou; %] diff --git a/Open-ILS/src/templates/opac/parts/library/maps.tt2 b/Open-ILS/src/templates/opac/parts/library/maps.tt2 new file mode 100644 index 0000000000..4729b44e20 --- /dev/null +++ b/Open-ILS/src/templates/opac/parts/library/maps.tt2 @@ -0,0 +1,25 @@ +[%# Just a static map for now as a proof of concept; + # the LatLng could be replaced by a (cached) server side lookup, + # a client side GeoCoder request (https://developers.google.com/maps/documentation/javascript/reference#Geocoder), + # or by yet another OUS (but really, who's going to enter that?!) +-%] +
+ + + -- 2.11.0