From 400f2bad9ed1b2c8ffd9bc430c41355682800dc0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Sat, 23 May 2009 08:43:01 +0200 Subject: [PATCH] Bug 3169 - Google jacket display, remove preview image on result page Signed-off-by: Galen Charlton --- .../opac-tmpl/prog/en/js/google-jackets.js | 24 ++++++++++++------- .../prog/en/modules/opac-detail.tmpl | 6 ++--- 2 files changed, 18 insertions(+), 12 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 db638cbef6..45a4bb853a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js @@ -11,6 +11,8 @@ KOHA.Google = { /** * Search all: *
+ * or + *
* and run a search with all collected isbns to Google Book Search. * The result is asynchronously returned by Google and catched by * gbsCallBack(). @@ -32,7 +34,8 @@ KOHA.Google = { }, /** - * Add cover pages and links to Google detail in
' + - '
' - ); + var re = /^gbs-thumbnail-preview/; + if ( re.exec($(this).attr("id")) ) { + $(this).append( + '
' + + '
' + ); + } } else { var message = document.createElement("span"); $(message).attr("class","no-image"); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index e25ebc6d60..0ffa8b6266 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -56,7 +56,7 @@
/gp/reader//ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank">.01.MZZZZZZZ.jpg" alt="Cover Image" />/gp/reader//ref=sib_dp_pt/002-7879865-0184864#reader-link">.01.MZZZZZZZ.jpg" alt="Cover Image" /> /.GIF&client=&type=xw10&upc=&oclc=" alt="" class="thumbnail" />No cover image available -
" class="" id="gbs-thumbnail">
+
" class="" id="gbs-thumbnail-preview">
" target="_blank">See Baker & Taylor" />">See Baker & Taylor" />
@@ -378,7 +378,7 @@ &shelfbrowse_itemnumber=#shelfbrowser"> .01._AA75_PU_PU-5_.jpg" alt="" />No cover image available /SC.GIF&client=&upc=&oclc=&type=xw10" alt="" />No cover image available -
" class="" id="gbs-thumbnail">
No cover image available +
" class="" id="gbs-thumbnail-preview">
No cover image available See Baker & Taylor" />No cover image available @@ -391,7 +391,7 @@ .01._AA75_PU_PU-5_.jpg" alt="" />No cover image available /SC.GIF&client=&upc=&oclc=&type=xw10" alt="" />No cover image available -
" class="" id="gbs-thumbnail">
No cover image available +
" class="" id="gbs-thumbnail-preview">
No cover image available See Baker & Taylor" />No cover image available -- 2.39.5