Bug 10686

Summary: Fielded searches confuse highlighter
Product: Koha Reporter: Jared Camins-Esakov <jcamins>
Component: OPACAssignee: Jared Camins-Esakov <jcamins>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: bgkriegel, gmcharlt, mirko, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 10686: Remove fields from searches for highlighting
Bug 10686: Remove fields from searches for highlighting
Bug 10686: Remove fields from searches for highlighting

Description Jared Camins-Esakov 2013-08-06 00:45:48 UTC
If you do a fielded search like au:smith, "Smith" will not get highlighted on the results page because the Javascript is looking for the exact string "au:smith"
Comment 1 Jared Camins-Esakov 2013-08-06 01:02:07 UTC Comment hidden (obsolete)
Comment 2 Mirko Tietgen 2013-08-08 19:44:06 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall (khall) 2013-08-16 12:39:57 UTC
Created attachment 20404 [details] [review]
Bug 10686: Remove fields from searches for highlighting

If you do a fielded search like au:smith, "Smith" will not get
highlighted on the results page because the Javascript is looking for
the exact string "au:smith."

To test:
1) Turn on OpacHighlightedWords.
2) Do a simple keyword search.
3) Confirm that the word is highlighted on the results and details page.
4) Do a fielded search by entering au:smith (or whatever).
5) Confirm that the word is highlighted on the results and details page.
6) Sign off.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa.pl, works as advertised.
Comment 4 Galen Charlton 2013-08-16 16:39:09 UTC
Pushed to master.  Thanks, Jared!

Not quite bulletproof yet, though (not that I think it will *ever* be completely) -- consider

ti,wrdl:history
Comment 5 Tomás Cohen Arazi (tcohen) 2013-09-12 19:08:53 UTC
This patch has been pushed to 3.12.x, will be in 3.12.5.

Thanks Jared!
Comment 6 Bernardo Gonzalez Kriegel 2013-09-14 22:40:15 UTC
Pushed to 3.10.x, will be in 3.10.11