]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 25 Feb 2021 09:35:24 +0000 (10:35 +0100)
commit726da171349310cdf5ef03a3d2876548b0b2f984
treeb4dbf252a0405328d88afa7fb853ac0fe640a4d2
parentee4845c9f8247b54855458c28a167d8c9e00414f
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>
(cherry picked from commit a52a0f80b890d70bb51c8629afbf4d81c2901491)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t