[Koha-bugs] [Bug 6149] Operator Highlighted in Search Results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 9 18:09:19 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6149

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.renvoize at ptfs-europe
                   |                            |.com

--- Comment #4 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 20240
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20240&action=edit
Patch to add syspref controlled stopwords to highlighting.

This is an initial patch to implement some additional control upon the search
result term highlighting features.

It add a stopwords system preference where a pipe delimited list of words can
be added which will prevent these words from being highlighted in search
results.

To Test
1. Enable OpacHighlightWords in the staff client
2. Run a search where results will be obtained
3. Note that all serach terms (including operators like 'and') are highlighted
4. Click through to the detailed display for one of the results
5. Note that all search terms are highlighted.
6. Apply patch
7. Add some 'stopwords' to new OpacHighlightStopWords system preference.
8. Run another search that includes some of the words you've just added to
stopwords
9. Note that the stopwords are no longer highlighted, all other search terms
should still appear highlighted.
10. Click through to the detailed display for a record
11. Note that the stopwrods are no longer highlighted, all other search terms
should still be highlighted.

Note for QA.. I'm sure there's a follow-up required for this patch with the
correct DB additions for adding a syspref, but I'm reminding myself on the
etiquette for that before submitting the follow-up.

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


More information about the Koha-bugs mailing list