[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 23:17:52 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19563
David Bourgault <david.bourgault at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #69192|0 |1
is obsolete| |
--- Comment #7 from David Bourgault <david.bourgault at inlibro.com> ---
Created attachment 69214
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69214&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
Signed-off-by: David Bourgault <david.bourgault at inlibro.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list