Working on the installer setting up the right zebra config
authorChris Cormack <crc@liblime.com>
Tue, 20 Nov 2007 18:44:32 +0000 (12:44 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 17 Dec 2007 15:13:51 +0000 (09:13 -0600)
Revision of Chris Cormack's original patch to deal with
previous moves of config files.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Makefile.PL

index 7b59a44..6d59eb9 100755 (executable)
@@ -87,6 +87,11 @@ to generate initial configuration files in future.
 
 =cut
 
+my $message = "What version of MARC marc21 or unimarc?";
+my $marc_value = prompt($message);
+$message = "Which language fr or en?";
+my $lang_value = prompt($message);
+
 WriteMakefile(
 
     NAME => 'koha',
@@ -239,6 +244,7 @@ excluding non-files and whitespace in filenames.
                        $result{$src} = '$(INST_LIBDIR)/koha/templates/'.$src;
                }
        }
+       
 =pod
 
 etc files are copied to /usr/share/koha/etc/
@@ -250,8 +256,11 @@ etc files are copied to /usr/share/koha/etc/
                        $result{$src} = '$(PREFIX)/share/koha/'.$src;
                }
        }
-
-
+       
+       # set up zebra with the appropriate language and marc config
+    $result{"etc/zebradb/lang_defs/sort-string-$lang_value.chr"} = '$(PREFIX)/share/koha/etc/zebradb/etc/sort-string-utf.chr';
+    $result{"etc/zebradb/marc_defs/biblios-$marc_value.abs"} = '$(PREFIX)/share/koha/etc/zebradb/biblios/etc/record.abs';
+       $result{"etc/zebradb/marc_defs/authorities-$marc_value.abs"} = '$(PREFIX)/share/koha/etc/zebradb/authorities/etc/record.abs';
        return \%result;
 }