Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard 3b9a43ec5a
Bug 36528: Correct JS assets included in self checkout slip template
The self checkout's slip print template includes some assets which it
doesn't need (enquire.js) and lacks other that it does (i18n-related
files). This patch correct the problem.

The patch also wraps some code in global.js with a check that the
relevant library has been loaded so that we don't get errors when the
asset isn't included.

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

- With WebBasedSelfCheck enabled, log in to the self checkout module and
  check some items out.
- Click "Finish" and then "Print receipt..."
- Check the browser console on the receipt page. There should be no
  errors.
- Log in to the OPAC and click the "Messaging" tab on the patron summary
  page.
- Test that the "Digests only" table heading icon shows a tooltip.
- Test that enquire.js is still loading correctly by performing a
  catalog search and narrowing your browser. When the window is narrow
  enough, the facets sidebar should collapse into a "Refine your search"
  button.

Note that the "js_in_body" qa warning is a false positive.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-21 13:39:50 +02:00
..
modals Bug 36772: OPAC Self checkout accepts wrong or partial barcodes 2024-05-14 15:34:31 +02:00
amazonimages.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
authtoresults.js
autofill.js Bug 14242: (follow-up) Clear all text input fields 2022-05-03 11:19:50 -10:00
bakertaylorimages.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
basket.js Bug 28901: showCart incorrectly calculates position if content above navbar 2021-11-02 16:06:51 +01:00
browse.js Bug 27200: (follow-up) Browse search interface update 2020-12-26 17:58:43 +01:00
browserid_include.js
coce.js Bug 32412: Do not reload COCE image for biblio 2023-05-05 10:18:42 -03:00
cookieconsent.js Bug 34792: Improve flexibility of CookieConsentBar layout 2024-04-29 09:35:50 +02:00
datatables.js Bug 33983: Move translatable strings out of OPAC's datatables.inc into JavaScript 2023-10-09 11:41:13 -03:00
Gettext.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
global.js Bug 36528: Correct JS assets included in self checkout slip template 2024-05-21 13:39:50 +02:00
google-jackets.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
i18n.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
ill-availability.js Bug 27170: Fix bug fix 2021-09-21 20:22:57 +02:00
localcovers.js Bug 28180: (follow-up) Updates to styling of lightbox controls 2021-10-21 12:24:04 +02:00
openlibrary.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
overdrive.js Bug 36084: svc - overdrive 2024-03-01 11:01:02 +01:00
privacy.js Bug 34031: Move various translatable strings out of opac-bottom.inc 2023-10-09 11:41:15 -03:00
ratings.js Bug 29939: Use the REST API for ratings 2022-08-22 11:31:15 -03:00
tags.js Bug 34478: Fix opac-tags and tags/lists 2024-03-01 10:58:10 +01:00
verovio.js Bug 22581: Show and play musical inscripts 2019-11-03 08:11:38 +00:00