[Koha-bugs] [Bug 20501] Unhighlight in search results when the search terms contain the same word twice removes the word

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 14 18:38:08 CEST 2018


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

--- Comment #3 from Phil Ringnalda <phil.ccpl at gmail.com> ---
Still present in master. How about the example from bug 5844, which fixed the
copy of jquery.highlight-3.js in koha-tmpl/opac-tmpl/ but not the copy in
koha-tmpl/intranet-tmpl/, "mag ma m"? All that's actually needed is to patch
the intranet-tmpl copy the same way.

I don't quite see how an example can actually work, unless there's some
standard set of bib records everyone has that I haven't yet run across
documentation of, though. Before I realized why it only happens in the staff
client, I was drafting a set of steps to reproduce that were going to start
with "Create a bib record with the title A is for apple and another with the
title A my name is Anna" since reproducing requires only that you have a search
which in your database will return two or more records and will have matches in
things which are displayed in the staff client search results list.

"a a" is actually a pretty good example since as long as you have two (or more)
records in your database which contain the letter "a" in any indexed field, you
will have highlights that will show the letter being removed from the DOM in
the words "Material" and "Format" and "Literary" in the line "Material type:
Book Format: print Literary form: Not fiction" even if you don't have
highlights in the author or title. Might still fail for a non-English install,
but otherwise it seems like the most likely to work in any install with any bib
records.

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


More information about the Koha-bugs mailing list