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

--- Comment #13 from Nick Clemens (kidclamp) <[email protected]> ---
Created attachment 189692
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189692&action=edit
Bug 36434 [alternate WIP]: Specify a search index and value to limit results on
the opac

Similar to suppression, this patch adds two new system preferences
OPACAlwaysSearchIndex and OPACAlwaysSearchValue which will be used to add a
limit
to the search results when OPACSuppression is enabled

This is only done for Elasticsearch and only for biblios currently, not
authorities, but could be extended
This also shows up in your search history, as suppression currently does (maybe
a syspref to hide it?)

The test plan below is simple, but ideally you would add a new index and use
that, and probably not make it generally searchable

Handling this in the query builder routines makes it testable, which I think is
nice

To test:
 1 - Have a Koha using Elasticsearch
 2 - Install database updates and restart services.
 3 - Do a standard OPAC search using the main search bar for 'a' and note the
resuls
 4 - Do an advanced OPAC search, specify keyword: 'a' and homebranch: 'CPL'.
Notice the number of results.
 5 - Go to the Koha Administration -> System preferences and search for
'OPACAlways'.
 6 - Note the two new preferences and add 'homebranch' for ..Index and 'CPL'
for ..Value and Save.
 7 - Repeat steps 2 and 3.
 8 - Confirm results are returned, the basic search should now return results
of the advanced search
 9 - The advanced search should not change.
10 - Remove the test keyword from OPACAlwaysSearchKeyword and Save.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to