]> git.koha-community.org Git - koha.git/commit
Bug 26051: We should sort callnumber based on cn-sort
authorNick Clemens <nick@bywatersolutions.com>
Fri, 8 Jan 2021 13:14:42 +0000 (13:14 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 23 Feb 2021 12:12:56 +0000 (13:12 +0100)
commita52a0f80b890d70bb51c8629afbf4d81c2901491
tree6bb883f8841808eddef5c5016d0636c630cefdaa
parent8790fe908d0207f1923aaad87dc48eecb5747d40
Bug 26051: We should sort callnumber based on cn-sort

In zebra we sort by callnumber using 8007 cn-sort

We should do the same in elasticsearch

To test:
1 - Have Koha using Elasticsearch
2 - Perform a search
3 - Attempt to sort by callnumber
4 - Error in logs: No mapping found for [local-classification__sort]
5 - Apply patch
6 - Restart all
7 - Perform a search and sort by callnumber
8 - Success!

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
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>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t