LP#1371772: update normalization library info URLs
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Feb 2017 15:09:09 +0000 (10:09 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Feb 2017 15:09:09 +0000 (10:09 -0500)
This patch follows up on the previous patch by adjusting
the normalization of URLs when the lib.prefer_external_url
library setting is set to true.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/parts/library_name_link.tt2

index 0d00644..1ad030c 100644 (file)
@@ -11,7 +11,7 @@
     UNLESS lib_url && prefer_external_url;
         lib_url = mkurl(opac_root _ '/library/' _ ctx.get_aou(copy_info.circ_lib).shortname, {}, 1);
     END; 
-    IF lib_url; '<a property="offeredBy" typeof="Library" href="'; lib_url | url; '">'; END;
+    IF lib_url; '<a property="offeredBy" typeof="Library" href="'; lib_url | html; '">'; END;
     '<span property="name">'; org_name | html; '</span>';
     IF lib_url; '</a>'; END;
 -%]