Bug 7594: Google Cover Javascript contains hardcoded CSS style
commit7678c98bdfaa7a1562918ce32e6abf3da1eb6b25
authorOwen Leonard <oleonard@myacpl.org>
Tue, 22 Mar 2016 12:07:44 +0000 (22 08:07 -0400)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 23 Mar 2016 23:07:36 +0000 (23 23:07 +0000)
tree34cc2469145e69743b0fe24f5641ab0bcbf517fc
parent622f1f28719a5248025b3f26d23463bf3d657fb7
 Bug 7594: Google Cover Javascript contains hardcoded CSS style

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.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js