]> git.koha-community.org Git - koha.git/commit
Bug 36566: Correct eslint errors in OPAC enhanced content JS
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Apr 2024 11:30:33 +0000 (11:30 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 28 Aug 2024 21:00:05 +0000 (21:00 +0000)
commit19dd5221f3686c37a54aba97121f578d74228f9e
tree465a437dd255233d2994a2d635e92f896e29c12c
parent4d141a6bb7210b1d4136bed3dcc38e408f148554
Bug 36566: Correct eslint errors in OPAC enhanced content JS

This patch fixes various eslint errors in enhanced content JS files:

- Consistent indentation
- Remove variables which are declared but not used
- Add missing semicolons
- Add missing "var" declarations

To test, apply the patch and clear your browser cache if necessary.

- Go to Administration -> System preferences and enable these
  preferences:
  - OPACAmazonCoverImages
  - BakerTaylorEnabled
  - GoogleJackets
  - OPACLocalCoverImages
  - OpenLibraryCovers
- Go to the OPAC and confirm that covers from these services appear
  correctly in search results and on detail pages.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 3d82116830ac7fbafe7414e08f155a54b7bb723f)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/js/amazonimages.js
koha-tmpl/opac-tmpl/bootstrap/js/bakertaylorimages.js
koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js
koha-tmpl/opac-tmpl/bootstrap/js/localcovers.js
koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js