Bug 12478: allow more granular sorting configuration
authorRobin Sheat <robin@catalyst.net.nz>
Fri, 25 Sep 2015 03:11:29 +0000 (15:11 +1200)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 26 Apr 2016 20:20:08 +0000 (20:20 +0000)
commit2e79ea0f749af1e0bc08d4818fe0da46c5831b94
treea556b74010f27079a9b2856c45e47d1919bcfc13
parente0be1ee6dc77a275c26e09ebdee5c141f5a93204
Bug 12478: allow more granular sorting configuration

This allows sorting to be configured within a field. For example, while
many values are included for search on author, sorting should only be
done on the main entry values. This permits that by have a sort value,
which can be true, false, or null. true and null are pretty much the
same, but false means that a field isn't available for sorting on. By
default (null), fields can be sorted on.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
13 files changed:
Koha/ElasticSearch.pm
Koha/Schema/Result/SearchField.pm
Koha/Schema/Result/SearchMarcMap.pm
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
Koha/SearchEngine/Elasticsearch/Search.pm
Koha/SearchEngine/QueryBuilder.pm
acqui/neworderbiblio.pl
authorities/authorities-home.pl
catalogue/search.pl
cataloguing/addbooks.pl
installer/data/mysql/elasticsearch_mapping.sql
opac/opac-authorities-home.pl
opac/opac-search.pl