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 <mpeters@emeralddata.net>
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
#
</div>
[%- END; %]
+ [%- IF ctx.google_maps_link; %]
+ <a href="http://www.google.com/maps/place/[% ctx.mailing_address.street1 | html %]+[% ctx.mailing_address.street2 | html %]+[% ctx.mailing_address.city | html %]+[% ctx.mailing_address.state | html %]+[% ctx.mailing_address.post_code | html %]"> Generate Map & Directions</a>
+ [% END; -%]
+
[%- IF ctx.library.parent_ou; %]
<h2>Branch relationship</h2>
<div id="branch-info">[% l('Parent library: ') %]