Lines 19-25
KOHA.OpenLibrary = {
Link Here
|
19 |
*/ |
19 |
*/ |
20 |
GetCoverFromIsbn: function() { |
20 |
GetCoverFromIsbn: function() { |
21 |
var bibkeys = []; |
21 |
var bibkeys = []; |
22 |
$("div [id^=openlibrary-thumbnail]").each(function(i) { |
22 |
$("[id^=openlibrary-thumbnail]").each(function(i) { |
23 |
bibkeys.push("ISBN:" + $(this).attr("class")); // id=isbn |
23 |
bibkeys.push("ISBN:" + $(this).attr("class")); // id=isbn |
24 |
}); |
24 |
}); |
25 |
bibkeys = bibkeys.join(','); |
25 |
bibkeys = bibkeys.join(','); |
Lines 40-46
KOHA.OpenLibrary = {
Link Here
|
40 |
for (id in booksInfo) { |
40 |
for (id in booksInfo) { |
41 |
var book = booksInfo[id]; |
41 |
var book = booksInfo[id]; |
42 |
var isbn = id.substring(5); |
42 |
var isbn = id.substring(5); |
43 |
$("."+isbn).each(function() { |
43 |
$("[id^=openlibrary-thumbnail]."+isbn).each(function() { |
44 |
var is_opacdetail = /openlibrary-thumbnail-preview/.exec($(this).attr("id")); |
44 |
var is_opacdetail = /openlibrary-thumbnail-preview/.exec($(this).attr("id")); |
45 |
var a = document.createElement("a"); |
45 |
var a = document.createElement("a"); |
46 |
a.href = booksInfo.url; |
46 |
a.href = booksInfo.url; |
47 |
- |
|
|