From 677f10b597c1c07b3ba0702320f168d113cdde49 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 20 Nov 2007 12:44:32 -0600 Subject: [PATCH] Working on the installer setting up the right zebra config Revision of Chris Cormack's original patch to deal with previous moves of config files. Signed-off-by: Galen Charlton --- Makefile.PL | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 7b59a44f4a..6d59eb97c9 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -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; } -- 2.20.1