Bug 26614 - Diacritics taken into account in facet sorting
Summary: Diacritics taken into account in facet sorting
Status: Patch doesn't apply
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Ivan Dziuba
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-05 21:17 UTC by Caroline Cyr La Rose
Modified: 2021-07-02 13:20 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Record with subject beginning with É for testing (1.17 KB, text/plain)
2020-10-05 21:17 UTC, Caroline Cyr La Rose
Details
Bug 26614 - Diacritics taken into account in facet sorting (1.08 KB, patch)
2020-10-24 11:49 UTC, Ivan Dziuba
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2020-10-05 21:17:49 UTC
Created attachment 111259 [details]
Record with subject beginning with É for testing

In both OPAC and Intranet, the subject facets are sorted in alphabetical order. However, letters with diacritics are sorted at the end rather than with their corresponding letters. 
Right now, the sorting is A, B, C, M, O, R, V, Z, É but it should be A, B, C, É, M, O, R, V, Z

To replicate:
I attached a record with a subject beginning with É
1- Import the record in your catalog
2- If necessary, rebuild zebra
3- In OPAC, search for the record (choose a keyword that is vague enough to get you some results but not too many, otherwise the facet won't show up -- see maxRecordsForFacets), I used the keyword "action" in my catalog
4- If necessary, expand the subject facet
5- Note that the "Égalité des sexes" subject is at the end rather than where E should be
6- Repeat steps 3-5 in Intranet, same problem
Comment 1 Ivan Dziuba 2020-10-24 11:49:22 UTC
Created attachment 112388 [details] [review]
Bug 26614 - Diacritics taken into account in facet sorting
Comment 2 Hakam Almotlak 2021-06-23 19:03:07 UTC
patch does not apply.

Using index info to reconstruct a base tree...
M	C4/Search.pm
Falling back to patching base and 3-way merge...
Auto-merging C4/Search.pm
CONFLICT (content): Merge conflict in C4/Search.pm
error: Failed to merge in the changes.
Patch failed at 0001 Bug 26614 - Diacritics taken into account in facet sorting