Bugzilla – Attachment 47500 Details for
Bug 14523
Google jackets being blocked when OPAC using HTTPS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Corrects problem with https sites accessing google jackets
0001-Bug-14523-Google-jackets-being-blocked-when-OPAC-usi.patch (text/plain), 1.83 KB, created by
Barry Cannon
on 2016-02-01 11:38:46 UTC
(
hide
)
Description:
Corrects problem with https sites accessing google jackets
Filename:
MIME Type:
Creator:
Barry Cannon
Created:
2016-02-01 11:38:46 UTC
Size:
1.83 KB
patch
obsolete
>From 1fa013d60f5ed2b187d8dcbb11b9a2fc0b0156fd Mon Sep 17 00:00:00 2001 >From: Barry Cannon <bc@interleaf.ie> >Date: Mon, 1 Feb 2016 11:34:35 +0000 >Subject: [PATCH] Bug 14523 - Google jackets being blocked when OPAC using > 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(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js b/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js >index b23599f..0305492 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js >+++ b/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 = { > '<a '+target+'href="' + > book.info_url + > '"><img src="' + >- 'http://books.google.com/intl/en/googlebooks/images/gbs_preview_sticker1.gif' + >+ location.protocol + >+ '//books.google.com/intl/en/googlebooks/images/gbs_preview_sticker1.gif' + > '"></a></div>' > ); > } >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14523
:
40988
|
47385
|
47500
|
47501
|
47511
|
47544