]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Oct 2021 03:53:00 +0000 (17:53 -1000)
commitd8f2674cc252cb1add865acbbbaa9ed336742dbc
tree212c5a5b0545c14ac21fc3b5e96a93854c3bc603
parent98ed5a39583f671ef51ce8b18b828cfb19ed6ced
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>
(cherry picked from commit ef40ba17aef792df332a11f7e0269c5684d913ac)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.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