Bug 18434 - Followup - same changes for sort and facet fields
commit794bb066aaedbbd73cd66c08744c52f25b725d96
authorNick Clemens <nick@bywatersolutions.com>
Fri, 16 Jun 2017 14:01:12 +0000 (16 10:01 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 12 Jul 2017 06:58:11 +0000 (12 08:58 +0200)
treeee2d20cd6c2b98893889a5a2ac16da8487b506e7
parent7feb5654ebe7c0445eead29ac14cb47374d1783c
Bug 18434 - Followup - same changes for sort and facet fields

To test:
1 - Index some stuff with multiple fields defined for sorting
  i.e. Authorites - make heading sortable - default is 110a and 111a for
  heading - a record with 111a empty will make the sort field empty
2 - view the record:
curl http://localhost:9200/koha_kohadev_authorities/data/30?pretty=true
3 - Note the blank field
4 - Apply patch
5 - Reindex
6 - Fields should be correctly populated

Unit tests to follow (once I have the originals working for all)

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 241be8ff1ae24fff6165c8d6877945637467ee9a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SearchEngine/Elasticsearch.pm