View | Details | Raw Unified | Return to bug 14523
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js (-3 / +3 lines)
Lines 27-33 KOHA.Google = { Link Here
27
        this.openInNewWindow=newWindow;
27
        this.openInNewWindow=newWindow;
28
        scriptElement.setAttribute("id", "jsonScript");
28
        scriptElement.setAttribute("id", "jsonScript");
29
        scriptElement.setAttribute("src",
29
        scriptElement.setAttribute("src",
30
            "http://books.google.com/books?bibkeys=" + escape(bibkeys) +
30
            location.protocol + "//books.google.com/books?bibkeys=" + escape(bibkeys) +
31
            "&jscmd=viewapi&callback=KOHA.Google.gbsCallBack");
31
            "&jscmd=viewapi&callback=KOHA.Google.gbsCallBack");
32
        scriptElement.setAttribute("type", "text/javascript");
32
        scriptElement.setAttribute("type", "text/javascript");
33
        document.documentElement.firstChild.appendChild(scriptElement);
33
        document.documentElement.firstChild.appendChild(scriptElement);
Lines 59-65 KOHA.Google = { Link Here
59
                             '<a '+target+'href="' +
59
                             '<a '+target+'href="' +
60
                             book.info_url +
60
                             book.info_url +
61
                             '"><img src="' +
61
                             '"><img src="' +
62
                             'http://books.google.com/intl/en/googlebooks/images/gbs_preview_sticker1.gif' +
62
                             location.protocol + 
63
							 '//books.google.com/intl/en/googlebooks/images/gbs_preview_sticker1.gif' +
63
                             '"></a></div>'
64
                             '"></a></div>'
64
                             );
65
                             );
65
                     }
66
                     }
66
- 

Return to bug 14523