|
Lines 1-13
Link Here
|
| 1 |
if (typeof KOHA == "undefined" || !KOHA) { |
1 |
if (typeof KOHA == "undefined" || !KOHA) { |
| 2 |
var KOHA = {}; |
2 |
var KOHA = {}; |
| 3 |
} |
3 |
} |
|
|
4 |
|
| 5 |
var prefix = location.protocol; |
| 4 |
|
6 |
|
| 5 |
/** |
7 |
/** |
| 6 |
* A namespace for Google related functions. |
8 |
* A namespace for Google related functions. |
| 7 |
*/ |
9 |
*/ |
| 8 |
KOHA.Google = { |
10 |
KOHA.Google = { |
| 9 |
|
11 |
|
| 10 |
|
|
|
| 11 |
/** |
12 |
/** |
| 12 |
* Search all: |
13 |
* Search all: |
| 13 |
* <div title="biblionumber" id="isbn" class="gbs-thumbnail"></div> |
14 |
* <div title="biblionumber" id="isbn" class="gbs-thumbnail"></div> |
|
Lines 27-33
KOHA.Google = {
Link Here
|
| 27 |
this.openInNewWindow=newWindow; |
28 |
this.openInNewWindow=newWindow; |
| 28 |
scriptElement.setAttribute("id", "jsonScript"); |
29 |
scriptElement.setAttribute("id", "jsonScript"); |
| 29 |
scriptElement.setAttribute("src", |
30 |
scriptElement.setAttribute("src", |
| 30 |
"http://books.google.com/books?bibkeys=" + escape(bibkeys) + |
31 |
prefix + "//books.google.com/books?bibkeys=" + escape(bibkeys) + |
| 31 |
"&jscmd=viewapi&callback=KOHA.Google.gbsCallBack"); |
32 |
"&jscmd=viewapi&callback=KOHA.Google.gbsCallBack"); |
| 32 |
scriptElement.setAttribute("type", "text/javascript"); |
33 |
scriptElement.setAttribute("type", "text/javascript"); |
| 33 |
document.documentElement.firstChild.appendChild(scriptElement); |
34 |
document.documentElement.firstChild.appendChild(scriptElement); |
|
Lines 59-65
KOHA.Google = {
Link Here
|
| 59 |
'<a '+target+'href="' + |
60 |
'<a '+target+'href="' + |
| 60 |
book.info_url + |
61 |
book.info_url + |
| 61 |
'"><img src="' + |
62 |
'"><img src="' + |
| 62 |
'http://books.google.com/intl/en/googlebooks/images/gbs_preview_sticker1.gif' + |
63 |
prefix + |
|
|
64 |
'//books.google.com/intl/en/googlebooks/images/gbs_preview_sticker1.gif' + |
| 63 |
'"></a></div>' |
65 |
'"></a></div>' |
| 64 |
); |
66 |
); |
| 65 |
} |
67 |
} |
| 66 |
- |
|
|