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

--- Comment #20 from David Cook <[email protected]> ---
And sure enough...

When I just add "use locale" to sub "_convert_facets" in
Koha/SearchEngine/Elasticsearch/Search.pm and make sure the environmental
variable LANG is set to the locale I want (ie Finnish)... then my facets are
sorted as you'd hope in Finnish.

Actually... in terms of environmental variables, it's looking like it was
LC_ALL=fi_FI.UTF-8 that did the trick. There's still some experimenting to do
here...

But the order looks right for Finnish:

Aa author
aa author3
étienne 
Farley, David
Humble, Jez
Martin, Robert C.
Åa author2

--

So... I think that's actually the way to go. I think that's going to provide a
much better experience to users. 

For now, we work with the server's locale, but we could potentially use the
user's locale. I'm not an expert on that one, but I notice my browser sends
"Accept-Language" and includes en-GB and en-US. So there could be more
interesting things done there.

Anyway, alternate patch incoming...

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to