Created attachment 2437 [details] XSLT & no highlights If you have OPACXSLTResultsDisplay and OpacHighlightedWords turned on the terms on your results are not highlighted. If you turn OPACXSLTResultsDisplay off the terms are highlighed normally. See attached.
Created attachment 2438 [details] same search, no xslt, highlights work
Created attachment 2440 [details] [review] Proposed fix - XSLT didn't contain the class markup which acts as a hook for the JavaScript highlighting system. - Standard results page also contained a typo which prevented data other than title and author from being highlighted
(In reply to comment #2) > Created attachment 2440 [details] [review] > Proposed fix > > - XSLT didn't contain the class markup which acts as a hook for the JavaScript > highlighting system. > - Standard results page also contained a typo which prevented data other than > title and author from being highlighted This patch has a broader effect than is desirable. For example, try a search on 'a'. Besides the letter 'a' being highlighted in strings coming from the bib records, it is also highlighted elsewhere - i.e., the a's in "Action: Add to Cart", etc. Still, this is getting close. I have pushed this to a topic branch called new/bug5075 in the public repo for further work.
(In reply to comment #3) > Still, this is getting close. I have pushed this to a topic branch > called new/bug5075 in the public repo for further work. Since new/bug5075 is now in master (merge was premature, IMO), the overzealousness of the search highlighting is now a bit more urgent.
> This patch has a broader effect than is desirable. For example, try a > search on 'a'. Besides the letter 'a' being highlighted in strings > coming from the bib records, it is also highlighted elsewhere - i.e., > the a's in "Action: Add to Cart", etc. A valid concern, but for the purposes of tracking this particular bug it should be noted that the same is true of the non-XSLT view.
This bug is mentioned in: Fix for Bug 5075 - Terms not highlighted w/ xslt on http://lists.koha-community.org/pipermail/koha-patches/2010-October/012716.html
This bug has a patch presently committed to HEAD and 3.2.x. Please take the appropriate action to update the status of this bug. Remember, bugs which have been resolved should be tested and marked closed, preferably by the original reporter.
This bug has a fix which was committed to the 3.2.x branch and released in 3.2.1. Please take time to update the status of this bug and mark it RESOLVED FIXED so that it may be closed.