Summary: | Fix sorting of Norwegian vowels | ||
---|---|---|---|
Product: | Koha | Reporter: | Magnus Enger <magnus> |
Component: | Searching | Assignee: | Magnus Enger <magnus> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | mirko, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 14824 - Fix sorting of Norwegian vowels
Bug 14824 - Fix sorting of Norwegian vowels [PASSED QA] Bug 14824 - Fix sorting of Norwegian vowels |
Description
Magnus Enger
2015-09-15 08:14:34 UTC
Created attachment 42549 [details] [review] Bug 14824 - Fix sorting of Norwegian vowels Currently, Norwegian vowels are not sorted correctly, even when you have chosen "nb" as the ZEBRA_LANGUAGE during installation. To test: - Make sure you have three records with titles that begin with ÆØÅ respectively - Do a search that turns up those three records and some others, and sort the results by title, bot ascending and descending. - Verify that ÆØÅ is shown in some weird order. - Edit your sort-string-utf.chr* so it is in line with the current patch. It should include these two lines: lowercase {0-9}{a-z}æøå uppercase {0-9}{A-Z}ÆØÅ - Restart Zebra and reindex all the records, e.g.: $ sudo koha-restart-zebra <instancename> $ sudo koha-rebuild-zebra -f -v <instancename> - Do the search again, make sure you order by title and check that ÆØÅ are sorted in the order of 1. Æ 2. Ø 3. Å, and after all other characters * = If you are on a gitified install, you need to edit this file: /etc/koha/zebradb/lang_defs/<your ZEBRA_LANGUAGE>/sort-string-utf.chr NOT the file in your git clone (yeah, i wasted some time there...) Created attachment 43780 [details] [review] Bug 14824 - Fix sorting of Norwegian vowels Currently, Norwegian vowels are not sorted correctly, even when you have chosen "nb" as the ZEBRA_LANGUAGE during installation. To test: - Make sure you have three records with titles that begin with ÆØÅ respectively - Do a search that turns up those three records and some others, and sort the results by title, bot ascending and descending. - Verify that ÆØÅ is shown in some weird order. - Edit your sort-string-utf.chr* so it is in line with the current patch. It should include these two lines: lowercase {0-9}{a-z}æøå uppercase {0-9}{A-Z}ÆØÅ - Restart Zebra and reindex all the records, e.g.: $ sudo koha-restart-zebra <instancename> $ sudo koha-rebuild-zebra -f -v <instancename> - Do the search again, make sure you order by title and check that ÆØÅ are sorted in the order of 1. Æ 2. Ø 3. Å, and after all other characters * = If you are on a gitified install, you need to edit this file: /etc/koha/zebradb/lang_defs/<your ZEBRA_LANGUAGE>/sort-string-utf.chr NOT the file in your git clone (yeah, i wasted some time there...) Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Created attachment 43943 [details] [review] [PASSED QA] Bug 14824 - Fix sorting of Norwegian vowels Currently, Norwegian vowels are not sorted correctly, even when you have chosen "nb" as the ZEBRA_LANGUAGE during installation. To test: - Make sure you have three records with titles that begin with ÆØÅ respectively - Do a search that turns up those three records and some others, and sort the results by title, bot ascending and descending. - Verify that ÆØÅ is shown in some weird order. - Edit your sort-string-utf.chr* so it is in line with the current patch. It should include these two lines: lowercase {0-9}{a-z}æøå uppercase {0-9}{A-Z}ÆØÅ - Restart Zebra and reindex all the records, e.g.: $ sudo koha-restart-zebra <instancename> $ sudo koha-rebuild-zebra -f -v <instancename> - Do the search again, make sure you order by title and check that ÆØÅ are sorted in the order of 1. Æ 2. Ø 3. Å, and after all other characters * = If you are on a gitified install, you need to edit this file: /etc/koha/zebradb/lang_defs/<your ZEBRA_LANGUAGE>/sort-string-utf.chr NOT the file in your git clone (yeah, i wasted some time there...) Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Patch pushed to master. Thanks Magnus! |