PINES Cust: Library Info Page Links rel_3_0_2_library_info_links
authorMcCanna <tmccanna@georgialibraries.org>
Tue, 23 Jan 2018 15:25:16 +0000 (10:25 -0500)
committerMcCanna <tmccanna@georgialibraries.org>
Tue, 23 Jan 2018 15:25:16 +0000 (10:25 -0500)
Modify links so they'll open in a new tab because they aren't
always secure https links.

Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/library/core_info.tt2

index c635fcd..8abacc4 100644 (file)
@@ -11,7 +11,7 @@
     [%-
         lib_url = ctx.get_org_setting(ctx.library.id, 'lib.info_url');
         IF lib_url;
-            '<div id="library-url"><a href="'; lib_url | html; '" property="url">'; l('Library web site'); '</a></div>';
+            '<div id="library-url"><a href="'; lib_url | html; '" property="url" target="_blank">'; l('Library web site'); '</a></div>';
         END;
     -%]
 
@@ -40,7 +40,7 @@
             <span property="addressRegion">[% ctx.mailing_address.state | html %]</span>
             <span property="postalCode">[% ctx.mailing_address.post_code | html %]</span><br />
             <br />
-            <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>        
+            <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 %]" target="_blank"> Generate Map & Directions</a>        
         </div>
     </div>
     [%- END; %]