[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
Thu Dec 2 11:48:18 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29578

Thibaud Guillot <thibaud.guillot at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #128053|0                           |1
        is obsolete|                            |

--- Comment #8 from Thibaud Guillot <thibaud.guillot at biblibre.com> ---
Created attachment 128150
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128150&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.

Signed-off-by: ThibaudGLT <thibaud.guillot at biblibre.com>
Work on Firefox 94.0-Ubuntu 20.04LTS

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list