Merge branch 'bug_7657' into 3.12-master
This commit is contained in:
commit
f0adcc8073
|
|
@ -19,7 +19,7 @@ KOHA.Google = {
|
|||
*/
|
||||
GetCoverFromIsbn: function(newWindow) {
|
||||
var bibkeys = [];
|
||||
$("div [id^=gbs-thumbnail]").each(function(i) {
|
||||
$("[id^=gbs-thumbnail]").each(function(i) {
|
||||
bibkeys.push($(this).attr("class")); // id=isbn
|
||||
});
|
||||
bibkeys = bibkeys.join(',');
|
||||
|
|
@ -45,7 +45,7 @@ KOHA.Google = {
|
|||
}
|
||||
for (id in booksInfo) {
|
||||
var book = booksInfo[id];
|
||||
$("."+book.bib_key).each(function() {
|
||||
$("[id^=gbs-thumbnail]."+book.bib_key).each(function() {
|
||||
var a = document.createElement("a");
|
||||
a.href = book.info_url;
|
||||
if (typeof(book.thumbnail_url) != "undefined") {
|
||||
|
|
@ -71,5 +71,6 @@ KOHA.Google = {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ KOHA.OpenLibrary = {
|
|||
*/
|
||||
GetCoverFromIsbn: function() {
|
||||
var bibkeys = [];
|
||||
$("div [id^=openlibrary-thumbnail]").each(function(i) {
|
||||
$("[id^=openlibrary-thumbnail]").each(function(i) {
|
||||
bibkeys.push("ISBN:" + $(this).attr("class")); // id=isbn
|
||||
});
|
||||
bibkeys = bibkeys.join(',');
|
||||
|
|
@ -40,7 +40,7 @@ KOHA.OpenLibrary = {
|
|||
for (id in booksInfo) {
|
||||
var book = booksInfo[id];
|
||||
var isbn = id.substring(5);
|
||||
$("."+isbn).each(function() {
|
||||
$("[id^=openlibrary-thumbnail]."+isbn).each(function() {
|
||||
var is_opacdetail = /openlibrary-thumbnail-preview/.exec($(this).attr("id"));
|
||||
var a = document.createElement("a");
|
||||
a.href = booksInfo.url;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ KOHA.Google = {
|
|||
*/
|
||||
GetCoverFromIsbn: function(newWindow) {
|
||||
var bibkeys = [];
|
||||
$("div [id^=gbs-thumbnail]").each(function(i) {
|
||||
$("[id^=gbs-thumbnail]").each(function(i) {
|
||||
bibkeys.push($(this).attr("class")); // id=isbn
|
||||
});
|
||||
bibkeys = bibkeys.join(',');
|
||||
|
|
@ -45,7 +45,7 @@ KOHA.Google = {
|
|||
}
|
||||
for (id in booksInfo) {
|
||||
var book = booksInfo[id];
|
||||
$("."+book.bib_key).each(function() {
|
||||
$("[id^=gbs-thumbnail]."+book.bib_key).each(function() {
|
||||
var a = document.createElement("a");
|
||||
a.href = book.info_url;
|
||||
if (typeof(book.thumbnail_url) != "undefined") {
|
||||
|
|
@ -71,5 +71,6 @@ KOHA.Google = {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ KOHA.OpenLibrary = {
|
|||
*/
|
||||
GetCoverFromIsbn: function() {
|
||||
var bibkeys = [];
|
||||
$("div [id^=openlibrary-thumbnail]").each(function(i) {
|
||||
$("[id^=openlibrary-thumbnail]").each(function(i) {
|
||||
bibkeys.push("ISBN:" + $(this).attr("class")); // id=isbn
|
||||
});
|
||||
bibkeys = bibkeys.join(',');
|
||||
|
|
@ -40,7 +40,7 @@ KOHA.OpenLibrary = {
|
|||
for (id in booksInfo) {
|
||||
var book = booksInfo[id];
|
||||
var isbn = id.substring(5);
|
||||
$("."+isbn).each(function() {
|
||||
$("[id^=openlibrary-thumbnail]."+isbn).each(function() {
|
||||
var is_opacdetail = /openlibrary-thumbnail-preview/.exec($(this).attr("id"));
|
||||
var a = document.createElement("a");
|
||||
a.href = booksInfo.url;
|
||||
|
|
|
|||
Loading…
Reference in New Issue