@@ -, +, @@ HTTPS Adds prefix variable to get the protocol of the current URL. This results is the correct prefix being used to serve the google jackets regarless of koha apache server setup. --- koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js +++ a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js @@ -27,7 +27,7 @@ KOHA.Google = { this.openInNewWindow=newWindow; scriptElement.setAttribute("id", "jsonScript"); scriptElement.setAttribute("src", - "http://books.google.com/books?bibkeys=" + escape(bibkeys) + + location.protocol + "//books.google.com/books?bibkeys=" + escape(bibkeys) + "&jscmd=viewapi&callback=KOHA.Google.gbsCallBack"); scriptElement.setAttribute("type", "text/javascript"); document.documentElement.firstChild.appendChild(scriptElement); @@ -59,7 +59,8 @@ KOHA.Google = { '' ); } --