]> git.koha-community.org Git - koha.git/commit
Bug 17103 - Google API Loader jsapi called over http
authorIndranil Das Gupta (L2C2 Technologies) <indradg@l2c2.co.in>
Sat, 13 Aug 2016 00:25:14 +0000 (05:55 +0530)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 17 Aug 2016 17:59:43 +0000 (17:59 +0000)
commit6fcd32a75c41c7815a883cc4952899ea24045b3c
tree37acd208a5c5e384408f3c46cc551e1d6338acc0
parent21593d8e1d92201f581d7168dbf9392dcb65ed7d
Bug 17103 - Google API Loader jsapi called over http

This patch replaces the hardcoded protocol ("http") from the URI with
https since that is what Google defacto uses to serve JS resources
Prevents MIXED CONTENT failure, allowing GoogleIndicTransliteration
to function correctly when used in SSLized OPACs.

Test plan
---------

1/ Make sure your OPAC is being served both over HTTP and HTTPS
2/ Set GoogleIndicTransliteration syspref to "Show"
3/ Access the OPAC over http, Google transliteration element will
   show up in masthead searchbox.
4/ Access the OPAC over https. The element will not show. Console
   will show MIXED CONTENT error and failure of google loader.
5/ Apply patch. Repeat steps #3 and #4 again. Now in both cases
   GoogleIndicTransliteration will work.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc