]> git.koha-community.org Git - koha.git/commit
Bug 33140: Use facet label value for mouseover text on facet removal link
authorAndreas Jonsson <andreas.jonsson@kreablo.se>
Sun, 5 Mar 2023 12:21:34 +0000 (13:21 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 17 Aug 2023 20:18:43 +0000 (10:18 -1000)
commit75b09126207a91d1314d2676d1fc1ee18c567761
tree3ec121b694c4f6fb3c37334d72318b589b7dc4b4
parentcc21197125b8c4a8d237c5cf41cacbcf55f12422
Bug 33140: Use facet label value for mouseover text on facet removal link

This patch updates the facets includes in both the staff interface and
OPAC so that the title attribute on "remove" links uses the full name
rather than the code of the facet. So, library name instead of
branchcode, collection code description instead of authorized value
code.

To test, apply the patch and perform a search in the staff interface.

- Click a facet in the left-hand sidebar which will return more than one
  result.
  - On the reloaded page there should be a link next to that facet: [X].
    Hovering your mouse over it should show "Remove facet [facet name]"
    e.g. "Remove facet Centerville" instead of "Remove facet CPL"
- Test on library facets, item type facets, and collection code facets.
- Perform the same test in the OPAC.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 01a6b2b63b929d6b367f95919dd72559736cb002)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc