[Koha-bugs] [Bug 29946] Sort profiles alphabetically when staging MARC records for import

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 24 22:54:42 CET 2022


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

--- Comment #4 from Lucas Gass <lucas at bywatersolutions.com> ---
(In reply to Katrin Fischer from comment #3)
> I am sorry, but while this works for A-z and therefor for English, it
> doesn't work for other languages like German with Umlauts or French with
> accents/diacritics. If you enter for example a description starting with Á,
> it will sort at the end, instead of as A.
> 
> I think we need to use a sort that accounts for that and that we already
> have that in Koha - using cmp instead of >?

Since we fetch this profiles from /api/v1/import_batch_profiles I think we need
a way to sort these, with accents/diacritics, in JavaScript instead of Perl. 

I think localeCompare might be the answer:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list