From 7afaf17d100d717bb0f2fad5b5e0ab27e814d09c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 22 Mar 2016 08:07:44 -0400 Subject: [PATCH] Bug 7594 - Google Cover Javascript contains hardcoded CSS style Content-Type: text/plain; charset="utf-8" The JavaScript which handles the display of Google book cover images includes a hard-coded "style" attribute. It may have been relevant to the design of the old prog template, but it doesn't seem to have any use in the Bootstrap one. This patch removes it. I have replaced the style attribute with a class in case someone needs a hook for some custom CSS. To test, apply the patch, enable the GoogleJackets system preference, and clear your browser cache if necessary. - Search for a title in the OPAC which has a Google book cover image associated with it. - View the detail page for that title. Confirm that the "Google Preview" link underneath the cover image looks correct. --- koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js b/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js index bede2d7..2875ce7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js @@ -55,7 +55,7 @@ KOHA.Google = { var re = /^gbs-thumbnail-preview/; if ( re.exec($(this).attr("id")) ) { $(this).append( - '
' + + '
' + '