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

            Bug ID: 20269
           Summary: Allow selecting default collate rule
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Database
          Assignee: koha-bugs@lists.koha-community.org
          Reporter: pasi.kalli...@joensuu.fi
        QA Contact: testo...@bugs.koha-community.org

For some languages, the default collate rule set in kohastructure.sql,
utf8_unicode_ci, doesn't work correctly.

For example, Finnish alphabet expects the alphabet to sort abc...xyzåäö, but
the unicode_ci rule doesn't handle the åäö right. Instead, we need to use the
swedish_ci rule.

It would be nice to be able to define the default collate rule during install.

Problem can be seen for example when you go catalogue a new record and have
frameworks starting with 'ä' or 'ö', those will sort incorrectly.

On the database, you can test this with:

insert into biblio_framework (frameworkcode, frameworktext) values ('TEST',
'Äänikirja');

-- Note where the 'Äänikirja' is located
select * from biblio_framework order by frameworktext collate utf8_unicode_ci;

-- And then the correct order, with 'Äänikirja' last:
select * from biblio_framework order by frameworktext collate utf8_swedish_ci;

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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