Lines 26-32
KOHA.OpenLibrary = new function() {
Link Here
|
26 |
scriptElement.setAttribute("id", "jsonScript"); |
26 |
scriptElement.setAttribute("id", "jsonScript"); |
27 |
scriptElement.setAttribute("src", |
27 |
scriptElement.setAttribute("src", |
28 |
"https://openlibrary.org/api/books?bibkeys=" + escape(bibkeys) + |
28 |
"https://openlibrary.org/api/books?bibkeys=" + escape(bibkeys) + |
29 |
"&callback=KOHA.OpenLibrary.olCallBack&jscmd=data"); |
29 |
"&callback=KOHA.OpenLibrary.olCallBack&jscmd=data&format=json"); |
30 |
scriptElement.setAttribute("type", "text/javascript"); |
30 |
scriptElement.setAttribute("type", "text/javascript"); |
31 |
document.documentElement.firstChild.appendChild(scriptElement); |
31 |
document.documentElement.firstChild.appendChild(scriptElement); |
32 |
} |
32 |
} |
Lines 72-78
KOHA.OpenLibrary = new function() {
Link Here
|
72 |
|
72 |
|
73 |
var search_url_json = 'https://openlibrary.org/search.json'; |
73 |
var search_url_json = 'https://openlibrary.org/search.json'; |
74 |
this.search = function( q, page_no, callback ) { |
74 |
this.search = function( q, page_no, callback ) { |
75 |
var params = {q: q}; |
75 |
var params = {q: q, 'format': 'json'}; |
76 |
if (page_no) { |
76 |
if (page_no) { |
77 |
params.page = page_no; |
77 |
params.page = page_no; |
78 |
} |
78 |
} |
79 |
- |
|
|