Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard e2269c2b88
Bug 34035: Move translatable strings out of opac-bottom.inc: Tags
This patch removes the definition of JS variables in opac-bottom.inc
related to the tags feature. These strings can be wrapped in the __()
function inside tags.js and they'll get picked up for translation.

Some other tags-related JS variable definitions are removed from
templates in favor of embedding them directly in the <script> block.

To test you must have TagsEnabled set to "Allow." Apply the patch and
log in to the OPAC.

- Perform a catalog search and select some items in the result list.
  - Add the items to the cart and open the cart.
    - Check a box next to one of the titles in the cart.
    - Click the "Tag" link
    - Submit the "New tag" form without entering a tag. You should see
      "No tag was specified."
    - Perform the same test on the search results page both using the
      checkboxes and by clicking the "Add tag" link on an individual
      result.
  - Perform the same test on the bibliographic detail page.
  - When adding tags from the cart, result list, or detail page, confirm
    that the "Tags added: X" message is always displayed.
  - Test adding a tag to a title which is already attached to that
    title.
  - Test adding HTML markup, e.g. "<script>"
  - Test adding HTML markup and plain text, e.g. "<script>Foo"

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-09 11:41:17 -03:00
..
modals Bug 32711: Add biblio details to modal 2023-07-24 13:58:20 -03: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
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 27378: Introduce cookie consent to OPAC and staff client 2023-09-12 09:45:07 -03: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
global.js Bug 34936: Remove the use of event attributes from OPAC detail page 2023-10-03 08:51:13 -04: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
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 33895: Use template wrapper for tabs: OPAC user summary 2023-09-05 14:35:36 -03: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 34035: Move translatable strings out of opac-bottom.inc: Tags 2023-10-09 11:41:17 -03:00
verovio.js