Lines 410-415
my %config_defaults = (
Link Here
|
410 |
'AUTH_INDEX_MODE' => 'dom', |
410 |
'AUTH_INDEX_MODE' => 'dom', |
411 |
'ZEBRA_MARC_FORMAT' => 'marc21', |
411 |
'ZEBRA_MARC_FORMAT' => 'marc21', |
412 |
'ZEBRA_LANGUAGE' => 'en', |
412 |
'ZEBRA_LANGUAGE' => 'en', |
|
|
413 |
'ZEBRA_TOKENIZER' => 'chr', |
413 |
'ZEBRA_USER' => 'kohauser', |
414 |
'ZEBRA_USER' => 'kohauser', |
414 |
'ZEBRA_PASS' => 'zebrastripes', |
415 |
'ZEBRA_PASS' => 'zebrastripes', |
415 |
'ZEBRA_SRU_HOST' => 'localhost', |
416 |
'ZEBRA_SRU_HOST' => 'localhost', |
Lines 461-466
my %valid_config_values = (
Link Here
|
461 |
'AUTH_INDEX_MODE' => { 'grs1' => 1, 'dom' => 1 }, |
462 |
'AUTH_INDEX_MODE' => { 'grs1' => 1, 'dom' => 1 }, |
462 |
'ZEBRA_MARC_FORMAT' => { 'marc21' => 1, 'normarc' => 1, 'unimarc' => 1 }, # FIXME should generate from contents of distributation |
463 |
'ZEBRA_MARC_FORMAT' => { 'marc21' => 1, 'normarc' => 1, 'unimarc' => 1 }, # FIXME should generate from contents of distributation |
463 |
'ZEBRA_LANGUAGE' => { 'en' => 1, 'fr' => 1, 'nb' => 1 }, # FIXME should generate from contents of distribution |
464 |
'ZEBRA_LANGUAGE' => { 'en' => 1, 'fr' => 1, 'nb' => 1 }, # FIXME should generate from contents of distribution |
|
|
465 |
'ZEBRA_TOKENIZER' => { chr => 1, icu => 1 }, |
464 |
'RUN_DATABASE_TESTS' => { 'yes' => 1, 'no' => 1 }, |
466 |
'RUN_DATABASE_TESTS' => { 'yes' => 1, 'no' => 1 }, |
465 |
'USE_MEMCACHED' => { 'yes' => 1, 'no' => 1 }, |
467 |
'USE_MEMCACHED' => { 'yes' => 1, 'no' => 1 }, |
466 |
); |
468 |
); |
Lines 487-497
my $pl_files = {
Link Here
|
487 |
'rewrite-config.PL' => [ |
489 |
'rewrite-config.PL' => [ |
488 |
'blib/KOHA_CONF_DIR/koha-conf.xml', |
490 |
'blib/KOHA_CONF_DIR/koha-conf.xml', |
489 |
'blib/KOHA_CONF_DIR/koha-httpd.conf', |
491 |
'blib/KOHA_CONF_DIR/koha-httpd.conf', |
|
|
492 |
'blib/ZEBRA_CONF_DIR/etc/default.idx', |
490 |
'blib/MISC_DIR/koha-install-log' |
493 |
'blib/MISC_DIR/koha-install-log' |
491 |
], |
494 |
], |
492 |
'fix-perl-path.PL' => [ # this script ensures the correct shebang line for the platform installed on... |
495 |
'fix-perl-path.PL' => [ # this script ensures the correct shebang line for the platform installed on... |
493 |
'blib' |
496 |
'blib' |
494 |
] |
497 |
], |
495 |
}; |
498 |
}; |
496 |
|
499 |
|
497 |
if ($config{'INSTALL_ZEBRA'} eq "yes") { |
500 |
if ($config{'INSTALL_ZEBRA'} eq "yes") { |
Lines 528-533
if ($config{'INSTALL_MODE'} ne "dev") {
Link Here
|
528 |
); |
531 |
); |
529 |
} |
532 |
} |
530 |
|
533 |
|
|
|
534 |
$config{ZEBRA_TOKENIZER_STMT} = $config{ZEBRA_TOKENIZER} eq 'icu' |
535 |
? 'icuchain words-icu.xml' |
536 |
: 'charmap word-phrase-utf.chr'; |
537 |
|
531 |
my %test_suite_override_dirs = ( |
538 |
my %test_suite_override_dirs = ( |
532 |
KOHA_CONF_DIR => ['etc'], |
539 |
KOHA_CONF_DIR => ['etc'], |
533 |
ZEBRA_CONF_DIR => ['etc', 'zebradb'], |
540 |
ZEBRA_CONF_DIR => ['etc', 'zebradb'], |
Lines 918-925
Since you've chosen to use Zebra with Koha,
Link Here
|
918 |
you must specify the primary MARC format of the |
925 |
you must specify the primary MARC format of the |
919 |
records to be indexed by Zebra. |
926 |
records to be indexed by Zebra. |
920 |
|
927 |
|
921 |
Koha provides Zebra configuration files for MARC 21 |
928 |
Koha provides Zebra configuration files for MARC21, |
922 |
and UNIMARC. |
929 |
NORMARC and UNIMARC. |
923 |
|
930 |
|
924 |
MARC format for Zebra indexing); |
931 |
MARC format for Zebra indexing); |
925 |
$msg .= _add_valid_values_disp('ZEBRA_MARC_FORMAT', $valid_values); |
932 |
$msg .= _add_valid_values_disp('ZEBRA_MARC_FORMAT', $valid_values); |
Lines 947-952
Authorities indexing mode);
Link Here
|
947 |
$config{'AUTH_INDEX_MODE'} = _get_value('AUTH_INDEX_MODE', $msg, $defaults->{'AUTH_INDEX_MODE'}, $valid_values, $install_log_values); |
954 |
$config{'AUTH_INDEX_MODE'} = _get_value('AUTH_INDEX_MODE', $msg, $defaults->{'AUTH_INDEX_MODE'}, $valid_values, $install_log_values); |
948 |
|
955 |
|
949 |
$msg = q( |
956 |
$msg = q( |
|
|
957 |
Zebra has two methods to perform records tokenization |
958 |
and characters normalization: CHR and ICU. ICU is |
959 |
recommended for catalogs containing non-Latin |
960 |
characters.); |
961 |
|
962 |
$msg .= _add_valid_values_disp('ZEBRA_TOKENIZER', $valid_values); |
963 |
$config{'ZEBRA_TOKENIZER'} = _get_value('ZEBRA_TOKENIZER', $msg, $defaults->{'ZEBRA_TOKENIZER'}, $valid_values, $install_log_values); |
964 |
|
965 |
$msg = q( |
950 |
Please specify Zebra database user); |
966 |
Please specify Zebra database user); |
951 |
$config{'ZEBRA_USER'} = _get_value('ZEBRA_USER', $msg, $defaults->{'ZEBRA_USER'}, $valid_values, $install_log_values); |
967 |
$config{'ZEBRA_USER'} = _get_value('ZEBRA_USER', $msg, $defaults->{'ZEBRA_USER'}, $valid_values, $install_log_values); |
952 |
|
968 |
|