[Koha-bugs] [Bug 29578] Search term highlighting breaks with titles containing characters with Greek diacritics
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Nov 27 07:54:12 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29578
--- Comment #3 from Andreas Roussos <a.roussos at dataly.gr> ---
Created attachment 128053
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128053&action=edit
Bug 29578: Upgrade the jQuery highlighter plugin
Under certain conditions, the jQuery term highlighter can break and
in the process actually make the "Highlight"/"Unhighlight" button
disappear altogether. This affects catalog searches in both the OPAC
and the Staff Client.
This patch fixes that by upgrading the plugin to its latest version.
Test plan:
0) Catalogue two books using the titles below, one of which includes
a word ("τοῖς") containing Greek diacritics:
Book #1 title: Συλλογής των εν επιτομή τοῖς πάλαι γεωγραφηθέντων
Book #2 title: Επιτομή της ιστορίας των Βαλκανικών Πολέμων (1912-1913)
Then, perform a catalog search for "επιτομή των" (without the quotes).
In the results page, notice that:
a) the "Highlight"/"Unhighlight" button has disappeared, and
b) not all search terms are highlighted (e.g. "των" in the 2nd book)
1) Apply this patch.
2) Repeat the same search (remember to press CTRL-F5 to refresh JS code).
This time the "Highlight"/"Unhighlight" button is displayed normally,
and all instances of your search terms are highlighted in the results.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list