Bug 26614

Summary: Diacritics taken into account in facet sorting
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: SearchingAssignee: Ivan Dziuba <ivan.dziuba>
Status: Patch doesn't apply --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: black23, dcook, ivan.dziuba
Version: Main   
Hardware: All   
OS: All   
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
Bug 26614 - Diacritics taken into account in facet sorting

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