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

paul poulain paul at koha-fr.org
Fri May 25 11:34:31 CEST 2007


CVSROOT:	/sources/koha
Module name:	koha
Changes by:	paul poulain <tipaul>	07/05/25 09:34:31

Modified files:
	misc/migration_tools: rebuild_zebra.pl 
	misc/zebra     : default.idx record_biblios_unimarc.abs 

Log message:
	some changes to default zebra config for better searches

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/misc/migration_tools/rebuild_zebra.pl?cvsroot=koha&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/koha/misc/zebra/default.idx?cvsroot=koha&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/koha/misc/zebra/record_biblios_unimarc.abs?cvsroot=koha&r1=1.3&r2=1.4

Patches:
Index: migration_tools/rebuild_zebra.pl
===================================================================
RCS file: /sources/koha/koha/misc/migration_tools/rebuild_zebra.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- migration_tools/rebuild_zebra.pl	22 May 2007 09:13:59 -0000	1.9
+++ migration_tools/rebuild_zebra.pl	25 May 2007 09:34:30 -0000	1.10
@@ -14,7 +14,7 @@
 $|=1; # flushes output
 
 # limit for database dumping
-my $limit;# = "LIMIT 1000";
+my $limit;# = "LIMIT 1";
 my $directory;
 my $skip_export;
 my $keep_export;
@@ -204,13 +204,13 @@
         $created_dir_or_file++;
     }
     
-    unless (-f C4::Context->zebraconfig('authorityserver')->{ccl2rpn}) {
+    unless (-f "$authorityserverdir/etc/ccl.properties") {
 #         system("cp -f $kohadir/misc/zebra/ccl.properties ".C4::Context->zebraconfig('authorityserver')->{ccl2rpn});
         system("cp -f $kohadir/misc/zebra/ccl.properties $authorityserverdir/etc/ccl.properties");
         print "Info: copied ccl.properties\n";
         $created_dir_or_file++;
     }
-    unless (-f C4::Context->zebraconfig('authorityserver')->{cql2rpn}) {
+    unless (-f "$authorityserverdir/etc/pqf.properties") {
 #         system("cp -f $kohadir/misc/zebra/pqf.properties ".C4::Context->zebraconfig('authorityserver')->{ccl2rpn});
         system("cp -f $kohadir/misc/zebra/pqf.properties $authorityserverdir/etc/pqf.properties");
         print "Info: copied pqf.properties\n";
@@ -392,13 +392,13 @@
         print "Info: copied default.idx\n";
         $created_dir_or_file++;
     }
-    unless (-f C4::Context->zebraconfig('biblioserver')->{ccl2rpn}) {
+    unless (-f "$biblioserverdir/etc/ccl.properties") {
 #         system("cp -f $kohadir/misc/zebra/ccl.properties ".C4::Context->zebraconfig('biblioserver')->{ccl2rpn});
         system("cp -f $kohadir/misc/zebra/ccl.properties $biblioserverdir/etc/ccl.properties");
         print "Info: copied ccl.properties\n";
         $created_dir_or_file++;
     }
-    unless (-f C4::Context->zebraconfig('biblioserver')->{cql2rpn}) {
+    unless (-f "$biblioserverdir/etc/pqf.properties") {
 #         system("cp -f $kohadir/misc/zebra/pqf.properties ".C4::Context->zebraconfig('biblioserver')->{ccl2rpn});
         system("cp -f $kohadir/misc/zebra/pqf.properties $biblioserverdir/etc/pqf.properties");
         print "Info: copied pqf.properties\n";

Index: zebra/default.idx
===================================================================
RCS file: /sources/koha/koha/misc/zebra/default.idx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- zebra/default.idx	9 Mar 2007 15:47:25 -0000	1.2
+++ zebra/default.idx	25 May 2007 09:34:31 -0000	1.3
@@ -1,5 +1,5 @@
 # Zebra indexes as referred to from the *.abs-files.
-#  $Id: default.idx,v 1.2 2007/03/09 15:47:25 tipaul Exp $
+#  $Id: default.idx,v 1.3 2007/05/25 09:34:31 tipaul Exp $
 #
 
 # Traditional word index
@@ -8,6 +8,7 @@
 index w
 completeness 0
 position 1
+alwaysmatches 1
 charmap sort-string-utf.chr
 
 # Phrase index

Index: zebra/record_biblios_unimarc.abs
===================================================================
RCS file: /sources/koha/koha/misc/zebra/record_biblios_unimarc.abs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- zebra/record_biblios_unimarc.abs	22 May 2007 15:13:03 -0000	1.3
+++ zebra/record_biblios_unimarc.abs	25 May 2007 09:34:31 -0000	1.4
@@ -1,4 +1,4 @@
-# $Id: record_biblios_unimarc.abs,v 1.3 2007/05/22 15:13:03 hdl Exp $
+# $Id: record_biblios_unimarc.abs,v 1.4 2007/05/25 09:34:31 tipaul Exp $
 
 # indexing rules. It
 # results in a server which provides a passable Bath level 0 and 1 service
@@ -88,25 +88,25 @@
 
 ############ AUTHORS ##################
 # main author
-melm 200$f		author,author:p,author:s
+melm 200$f		author:w,author:p,author:s
 # other authors
-melm 200$g		author,author:p
+melm 200$g		author:w,author:p
 # physical author
 melm 700$9      	Koha-Auth-Number,Koha-Auth-Number:n
-melm 700$a		author
-melm 700		author,author:p
+melm 700$a		author:w
+melm 700		author:w,author:p
 
 melm 701$9        Koha-Auth-Number,Koha-Auth-Number:n
-melm 701		author,author:p
+melm 701		author:w,author:p
 melm 702$9        Koha-Auth-Number,Koha-Auth-Number:n
-melm 702		author,author:p
+melm 702		author:w,author:p
 # collective author
 melm 710$9        Koha-Auth-Number,Koha-Auth-Number:n
-melm 710		author,author:p
+melm 710		author:w,author:p
 melm 711$9        Koha-Auth-Number,Koha-Auth-Number:n
-melm 711		author,author:p
+melm 711		author:w,author:p
 melm 712$9        Koha-Auth-Number,Koha-Auth-Number:n
-melm 712		author,author:p
+melm 712		author:w,author:p
 
 ############## TITLE ##################
 # main title





More information about the Koha-cvs mailing list