[Koha-bugs] [Bug 33594] Sorting results by Title A-Z might use wrong title field
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 8 23:52:26 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33594
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #150793|0 |1
is obsolete| |
--- Comment #15 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 150813
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150813&action=edit
Bug 33594: Only sort on title main heading
This patch simply remvoes sort from all elements that are not strictly
the main title
Note:
If multiple fields are set as sort, they are collapsed into a single entry in
the {field}__sort field in the ES index. The order will be determined by the
order in
the marc record
To test:
1 - Apply patch
2 - perl misc/search_tools/rebuild_elasticsearch -r -v
3 - Search the catalog
4 - Sort by title
5 - Confirm records are correct
6 - Add a 240 (before the 245) with subfield a 'AAAAA'
7 - Confirm sorting is not affected
8 - View record details, click 'Elasticsearch record: Show'
9 - Find 'title__sort' and confirm it looks correct (does not include AAAAA)
Signed-off-by: David Nind <david at davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list