]> git.koha-community.org Git - koha.git/commit
Bug 28826: Add FacetOrder system preference
authorNick Clemens <nick@bywatersolutions.com>
Fri, 6 Aug 2021 18:50:35 +0000 (18:50 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 8 Oct 2021 13:30:31 +0000 (09:30 -0400)
commitef40ba17aef792df332a11f7e0269c5684d913ac
tree46d7666f48bed347ad63472c64930455476d2d37
parent3d5ea8d426123e190369fafc35576096ebf96a3d
Bug 28826: Add FacetOrder system preference

This bug adds a system preference to control ordering of facets and
adds the control to both Zebra and Elasticsearch

To test:
1 - Have a koha that can use both Zebra and ES
2 - Set 'displayFacetCount' to true
3 - Search in ES and Zebra
4 - Note facets in Zebra sorted alphabetically, ES by usage
5 - Apply patch, updatedatabase
6 - Search in ES and Zebra, facets are alphabetically sorted in both
7 - Find new syspref FacetOrder and set to 'by usage'
8 - Search in both engines, facets sorted by usage

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Search.pm
Koha/SearchEngine/Elasticsearch/Search.pm
installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref