]> git.koha-community.org Git - koha.git/commit
Bug 6149 - Stopwords for Result Highlighting
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 9 Aug 2013 13:42:00 +0000 (14:42 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 5 Sep 2014 13:52:00 +0000 (10:52 -0300)
commitdb739ee578b8d8134954912e534a9686590f652e
treeffdf9a5bb5a482cf687c6b2839edc561e08efa9d
parentc6716d3e22244df153f294b351f67da9312c5053
Bug 6149 - Stopwords for Result Highlighting

This patch adds a system preference to control stopwords used to
prevent operators and other 'minor' words from being highlighted
in search results when the OpacHighlightWords syspref is enabled

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Works as advertised, I fixed the updatedatabase to use XXX so it won't
clash as much

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Fixed a conflict in updatedatabase.pl.
Also fixed tabs in opac-detail.tt

Feature passes all tests and QA script now.
Tested in intranet and OPAC with different words and searches.
Works on results pages and OPAC detail page.
Highlighting and unhighlighting still works correctly.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script, works as expected.
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt