From b398f9981f11afd5482b5f26ab71e8881ad34324 Mon Sep 17 00:00:00 2001 From: Frederic Demians Date: Wed, 21 Jan 2009 13:28:34 +0100 Subject: [PATCH] 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 --- koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js b/koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js index b106ceac29..3de213418f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js @@ -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( + '
' + + 'Source Google
' + ); } 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); }); } } -- 2.39.2