Bug 34980: Remove the use of event attributes from title-actions-menu.inc in OPAC
authorOwen Leonard <oleonard@myacpl.org>
Sat, 14 Oct 2023 14:20:00 +0000 (14:20 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 25 Oct 2023 07:44:46 +0000 (21:44 -1000)
commit743538abe787c98b36926518926968a00557b051
tree8843a21e8e27c3032c73a3d0d3f6de52dae44bee
parentc2970fd838688e6ac861a9e9e5595122ca1d7b00
Bug 34980: Remove the use of event attributes from title-actions-menu.inc in OPAC

This patch updates the include file used to show actions with each
search result, removing two instances of "onclick" in favor of an event
handler class which was already in use elsewhere.

To test, apply the patch and log in to the OPAC.

- Perform a catalog search which will return results.
- Test the "Save to lists" link under any search result. The "Save to
  lists" pop-up window should appear.
- View the contents of a list which contains some titles.
- Test the "Save to another list" control. The same pop-up window should
  be triggered.
- Tag at least one title in the catalog and view the "Tag cloud" page.
- Perform the same test with the "Save to lists" button in the table of
  our tags.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5dd4043b06b462080858061dc5bf6b1b193d5c33)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc