[Koha-cvs] koha/misc migration_tools/rebuild_zebra.pl zebr... [rel_3_0]

paul poulain paul at koha-fr.org
Wed Dec 6 10:23:20 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	paul poulain <tipaul>	06/12/06 09:23:20

Modified files:
	misc/migration_tools: rebuild_zebra.pl 
Added files:
	misc/zebra     : default.idx sort-string-utf_french.chr 

Log message:
	updating :
	- sort-string-utf_french.chr => french equivalences
	- default.idx => for copying in tab directory, to use sort-string
	- rebuild_zebra => to copy default.idx in zebra config dir

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/misc/migration_tools/rebuild_zebra.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.4.2.6&r2=1.4.2.7
http://cvs.savannah.gnu.org/viewcvs/koha/misc/zebra/default.idx?cvsroot=koha&only_with_tag=rel_3_0&rev=1.1.4.1
http://cvs.savannah.gnu.org/viewcvs/koha/misc/zebra/sort-string-utf_french.chr?cvsroot=koha&only_with_tag=rel_3_0&rev=1.1.2.1

Patches:
Index: migration_tools/rebuild_zebra.pl
===================================================================
RCS file: /sources/koha/koha/misc/migration_tools/rebuild_zebra.pl,v
retrieving revision 1.4.2.6
retrieving revision 1.4.2.7
diff -u -b -r1.4.2.6 -r1.4.2.7
--- migration_tools/rebuild_zebra.pl	5 Dec 2006 11:35:31 -0000	1.4.2.6
+++ migration_tools/rebuild_zebra.pl	6 Dec 2006 09:23:19 -0000	1.4.2.7
@@ -14,7 +14,7 @@
 $|=1; # flushes output
 
 # limit for database dumping
-my $limit = "LIMIT 10";
+my $limit = "LIMIT 1000";
 my $directory;
 my $skip_export;
 my $keep_export;
@@ -191,6 +191,12 @@
     print "Info: copied auth1.att\n";
     $created_dir_or_file++;
 }
+unless (-f "$authorityserverdir/tab/default.idx") {
+    system("cp -f $kohadir/misc/zebra/default.idx $authorityserverdir/tab/default.idx");
+    print "Info: copied default.idx\n";
+    $created_dir_or_file++;
+}
+
 unless (-f "$authorityserverdir/etc/ccl.properties") {
     system("cp -f $kohadir/misc/zebra/ccl.properties $authorityserverdir/etc/ccl.properties");
     print "Info: copied ccl.properties\n";
@@ -369,6 +375,11 @@
     print "Info: copied bib1.att\n";
     $created_dir_or_file++;
 }
+unless (-f "$biblioserverdir/tab/default.idx") {
+    system("cp -f $kohadir/misc/zebra/default.idx $biblioserverdir/tab/default.idx");
+    print "Info: copied default.idx\n";
+    $created_dir_or_file++;
+}
 unless (-f "$biblioserverdir/etc/ccl.properties") {
     system("cp -f $kohadir/misc/zebra/ccl.properties $biblioserverdir/etc/ccl.properties");
     print "Info: copied ccl.properties\n";

Index: zebra/default.idx
===================================================================
RCS file: zebra/default.idx
diff -N zebra/default.idx
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ zebra/default.idx	6 Dec 2006 09:23:20 -0000	1.1.4.1
@@ -0,0 +1,56 @@
+# Zebra indexes as referred to from the *.abs-files.
+#  $Id: default.idx,v 1.1.4.1 2006/12/06 09:23:20 tipaul Exp $
+#
+
+# Traditional word index
+# Used if completenss is 'incomplete field' (@attr 6=1) and
+# structure is word/phrase/word-list/free-form-text/document-text
+index w
+completeness 0
+position 1
+charmap sort-string-utf.chr
+
+# Phrase index
+# Used if completeness is 'complete {sub}field' (@attr 6=2, @attr 6=1)
+# and structure is word/phrase/word-list/free-form-text/document-text
+index p
+completeness 1
+charmap sort-string-utf.chr
+
+# URX (URL) index
+# Used if structure=urx (@attr 4=104)
+index u
+completeness 0
+charmap urx.chr
+
+# Numeric index
+# Used if structure=numeric (@attr 4=109)
+index n
+completeness 0
+charmap numeric.chr
+
+# Null map index (no mapping at all)
+# Used if structure=key (@attr 4=3)
+index 0
+completeness 0
+position 1
+charmap @
+
+# Year
+# Used if structure=year (@attr 4=4)
+index y
+completeness 0
+charmap @
+
+# Date
+# Used if structure=date (@attr 4=5)
+index d
+completeness 0
+charmap @
+
+# Sort register
+sort s
+completeness 1
+charmap sort-string-utf.chr
+
+

Index: zebra/sort-string-utf_french.chr
===================================================================
RCS file: zebra/sort-string-utf_french.chr
diff -N zebra/sort-string-utf_french.chr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ zebra/sort-string-utf_french.chr	6 Dec 2006 09:23:20 -0000	1.1.2.1
@@ -0,0 +1,52 @@
+# Generic character map.
+#
+# $Id: sort-string-utf_french.chr,v 1.1.2.1 2006/12/06 09:23:20 tipaul Exp $
+
+# Define the basic value-set. *Beware* of changing this without re-indexing
+# your databases.
+lowercase {0-9}{a-y}üzæäøöå
+uppercase {0-9}{A-Y}ÜZÆÄØÖÅ
+
+# Breaking characters
+
+space {\001-\040}!"#$%&'\()*+,-./:;<=>?@\[\\]^_`\{|}~
+
+# Characters to be considered equivalent for searching purposes.
+
+equivalent æä(ae)
+equivalent øö(oe)
+equivalent å(aa)
+equivalent uü
+
+# Supplemental mappings
+
+map (&auml;)       ä
+map (&aelig;)      æ
+map (&oslash;)     ø
+map (&aring;)      å
+map (&ouml;)       ö
+map (&Auml;)       Ä
+map (&Aelig;)      Æ
+map (&Oslash;)     Ø
+map (&Aring;)      Å
+map (&Ouml;)       Ö
+
+map âàáäÂÀÂ		a
+map êèéëÊÈÉË		e
+map îïíÎÏ		i
+map ôöóÔÖ		o
+map ûùüÛÜ       u
+map ç       c
+map y   i
+
+#map (Aa)	(AA)
+
+#map (aa)        a
+map (^Le\s)    @
+map (^La\s)    @
+map (^Les\s)      @
+map (^Un\s)      @
+map (^Une\s)     @
+map (^De\s)     @
+map (^Des\s)     @
+





More information about the Koha-cvs mailing list