[Koha-bugs] [Bug 19563] Generation of sort_fields uses incorrect condition

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 17 13:20:15 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19563

--- Comment #3 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 69192
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69192&action=edit
Bug 19563: Followup - Restore checking sort variable

This code seems a bit odd, $self->sort_fields()->{$name} is checking if
there is any mapping in ES for a field, so if one marc field in an index
is marked as sortable this will exists. We need to check the individual
marc field to see if it should be added to the sort index here.

If you apply the first patch, reindex, and view a record in es:
curl -XGET 'localhost:9200/koha_kohadev_biblios/data/19/?pretty' | grep
-A 10 author__sort

You will see that 245$c is included in the record without that
additional check

Apply this, reindex again, and that field should not be included

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list