]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 10 Sep 2024 14:17:51 +0000 (16:17 +0200)
commitbf444f0e48be90a726b3eb89495452f925a36780
tree8bcd096483339e8a9b4f81cf7556a7982ee2a572
parentf0c30e8b080e4db41e95c4a59d12ce232f5aecb5
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>
(cherry picked from commit 19dd5221f3686c37a54aba97121f578d74228f9e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.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