From d7c0f4e636e81ac885edca640c75d77d3ae882c5 Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Tue, 15 Sep 2015 10:24:44 +0200 Subject: [PATCH] Bug 14824 - Fix sorting of Norwegian vowels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 $ sudo koha-rebuild-zebra -f -v - 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//sort-string-utf.chr NOT the file in your git clone (yeah, i wasted some time there...) Signed-off-by: Mirko Tietgen --- etc/zebradb/lang_defs/nb/sort-string-utf.chr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/zebradb/lang_defs/nb/sort-string-utf.chr b/etc/zebradb/lang_defs/nb/sort-string-utf.chr index 9cb9c56..51aecc6 100644 --- a/etc/zebradb/lang_defs/nb/sort-string-utf.chr +++ b/etc/zebradb/lang_defs/nb/sort-string-utf.chr @@ -3,10 +3,10 @@ encoding utf-8 -# Define the basic value-set. *Beware* of changing this without re-indexing -# your databases. -lowercase {0-9}aæbcdefghijklmnopqrstuvwxyzø -uppercase {0-9}AÆBCDEFGHIJKLMNOPQRSTUVWXYZØ +# Define the basic value-set and sort order +# *Beware* of changing this without re-indexing your databases. +lowercase {0-9}{a-z}æøå +uppercase {0-9}{A-Z}ÆØÅ # Breaking characters -- 1.7.10.4