Modify GoogleJacket display
On detail page, when GoogleJacket is enabled, book cover is retrieved from Google. This image is a link to GoogleBook services: full text, book localisation in a bookstore, etc. This patch removes the link on book cover and add underneath a text 'Source Google' with a link to GoogleBook services. Signed-off-by: Galen Charlton <galen.charlton@liblime.com> Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
e0a191751d
commit
030dc488dd
|
|
@ -40,17 +40,22 @@ KOHA.Google = {
|
|||
$("."+book.bib_key).each(function() {
|
||||
var a = document.createElement("a");
|
||||
a.href = book.info_url;
|
||||
if(typeof(book.thumbnail_url) != "undefined"){
|
||||
if (typeof(book.thumbnail_url) != "undefined") {
|
||||
var img = document.createElement("img");
|
||||
img.src = book.thumbnail_url;
|
||||
a.appendChild(img);
|
||||
$(this).append(img);
|
||||
$(this).append(
|
||||
'<div style="margin-bottom:5px; margin-top:-5px;font-size:9px">' +
|
||||
'<a href="' +
|
||||
book.info_url +
|
||||
'">Source Google</a></div>'
|
||||
);
|
||||
} else {
|
||||
var message = document.createElement("span");
|
||||
$(message).attr("class","no-image");
|
||||
$(message).html(NO_GOOGLE_JACKET);
|
||||
a.appendChild(message);
|
||||
$(this).append(message);
|
||||
}
|
||||
$(this).append(a);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue