Lines 408-413
my %config_defaults = (
Link Here
|
408 |
'INSTALL_SRU' => 'yes', |
408 |
'INSTALL_SRU' => 'yes', |
409 |
'INSTALL_PAZPAR2' => 'no', |
409 |
'INSTALL_PAZPAR2' => 'no', |
410 |
'AUTH_INDEX_MODE' => 'dom', |
410 |
'AUTH_INDEX_MODE' => 'dom', |
|
|
411 |
'BIB_INDEX_MODE' => 'dom', |
411 |
'ZEBRA_MARC_FORMAT' => 'marc21', |
412 |
'ZEBRA_MARC_FORMAT' => 'marc21', |
412 |
'ZEBRA_LANGUAGE' => 'en', |
413 |
'ZEBRA_LANGUAGE' => 'en', |
413 |
'ZEBRA_TOKENIZER' => 'chr', |
414 |
'ZEBRA_TOKENIZER' => 'chr', |
Lines 460-465
my %valid_config_values = (
Link Here
|
460 |
'INSTALL_ZEBRA' => { 'yes' => 1, 'no' => 1 }, |
461 |
'INSTALL_ZEBRA' => { 'yes' => 1, 'no' => 1 }, |
461 |
'INSTALL_SRU' => { 'yes' => 1, 'no' => 1 }, |
462 |
'INSTALL_SRU' => { 'yes' => 1, 'no' => 1 }, |
462 |
'AUTH_INDEX_MODE' => { 'grs1' => 1, 'dom' => 1 }, |
463 |
'AUTH_INDEX_MODE' => { 'grs1' => 1, 'dom' => 1 }, |
|
|
464 |
'BIB_INDEX_MODE' => { 'grs1' => 1, 'dom' => 1 }, |
463 |
'ZEBRA_MARC_FORMAT' => { 'marc21' => 1, 'normarc' => 1, 'unimarc' => 1 }, # FIXME should generate from contents of distributation |
465 |
'ZEBRA_MARC_FORMAT' => { 'marc21' => 1, 'normarc' => 1, 'unimarc' => 1 }, # FIXME should generate from contents of distributation |
464 |
'ZEBRA_LANGUAGE' => { 'en' => 1, 'fr' => 1, 'nb' => 1 }, # FIXME should generate from contents of distribution |
466 |
'ZEBRA_LANGUAGE' => { 'en' => 1, 'fr' => 1, 'nb' => 1 }, # FIXME should generate from contents of distribution |
465 |
'ZEBRA_TOKENIZER' => { chr => 1, icu => 1 }, |
467 |
'ZEBRA_TOKENIZER' => { chr => 1, icu => 1 }, |
Lines 501-512
if ($config{'INSTALL_ZEBRA'} eq "yes") {
Link Here
|
501 |
push @{ $pl_files->{'rewrite-config.PL'} }, ( |
503 |
push @{ $pl_files->{'rewrite-config.PL'} }, ( |
502 |
'blib/ZEBRA_CONF_DIR/etc/passwd', |
504 |
'blib/ZEBRA_CONF_DIR/etc/passwd', |
503 |
'blib/ZEBRA_CONF_DIR/zebra-biblios.cfg', |
505 |
'blib/ZEBRA_CONF_DIR/zebra-biblios.cfg', |
|
|
506 |
'blib/ZEBRA_CONF_DIR/zebra-biblios-dom.cfg', |
504 |
'blib/ZEBRA_CONF_DIR/zebra-authorities.cfg', |
507 |
'blib/ZEBRA_CONF_DIR/zebra-authorities.cfg', |
505 |
'blib/ZEBRA_CONF_DIR/zebra-authorities-dom.cfg', |
508 |
'blib/ZEBRA_CONF_DIR/zebra-authorities-dom.cfg', |
506 |
'blib/ZEBRA_CONF_DIR/explain-authorities.xml', |
509 |
'blib/ZEBRA_CONF_DIR/explain-authorities.xml', |
507 |
'blib/ZEBRA_CONF_DIR/explain-biblios.xml', |
510 |
'blib/ZEBRA_CONF_DIR/explain-biblios.xml', |
508 |
'blib/ZEBRA_CONF_DIR/retrieval-info-auth-grs1.xml', |
511 |
'blib/ZEBRA_CONF_DIR/retrieval-info-auth-grs1.xml', |
509 |
'blib/ZEBRA_CONF_DIR/retrieval-info-auth-dom.xml', |
512 |
'blib/ZEBRA_CONF_DIR/retrieval-info-auth-dom.xml', |
|
|
513 |
'blib/ZEBRA_CONF_DIR/retrieval-info-bib-grs1.xml', |
514 |
'blib/ZEBRA_CONF_DIR/retrieval-info-bib-dom.xml', |
510 |
); |
515 |
); |
511 |
push @{ $pl_files->{'rewrite-config.PL'} }, ( |
516 |
push @{ $pl_files->{'rewrite-config.PL'} }, ( |
512 |
'blib/SCRIPT_DIR/koha-zebra-ctl.sh', |
517 |
'blib/SCRIPT_DIR/koha-zebra-ctl.sh', |
Lines 520-527
if ($config{'INSTALL_ZEBRA'} eq "yes") {
Link Here
|
520 |
); |
525 |
); |
521 |
} |
526 |
} |
522 |
$config{'ZEBRA_AUTH_CFG'} = $config{'AUTH_INDEX_MODE'} eq 'dom' ? 'zebra-authorities-dom.cfg' : 'zebra-authorities.cfg'; |
527 |
$config{'ZEBRA_AUTH_CFG'} = $config{'AUTH_INDEX_MODE'} eq 'dom' ? 'zebra-authorities-dom.cfg' : 'zebra-authorities.cfg'; |
|
|
528 |
$config{'ZEBRA_BIB_CFG'} = $config{'BIB_INDEX_MODE'} eq 'dom' ? 'zebra-biblios-dom.cfg' : 'zebra-biblios.cfg'; |
523 |
$config{'AUTH_RETRIEVAL_CFG'} = |
529 |
$config{'AUTH_RETRIEVAL_CFG'} = |
524 |
$config{'AUTH_INDEX_MODE'} eq 'dom' ? 'retrieval-info-auth-dom.xml' : 'retrieval-info-auth-grs1.xml'; |
530 |
$config{'AUTH_INDEX_MODE'} eq 'dom' ? 'retrieval-info-auth-dom.xml' : 'retrieval-info-auth-grs1.xml'; |
|
|
531 |
$config{'BIB_RETRIEVAL_CFG'} = |
532 |
$config{'BIB_INDEX_MODE'} eq 'dom' ? 'retrieval-info-bib-dom.xml' : 'retrieval-info-bib-grs1.xml'; |
525 |
} |
533 |
} |
526 |
|
534 |
|
527 |
if ($config{'INSTALL_MODE'} ne "dev") { |
535 |
if ($config{'INSTALL_MODE'} ne "dev") { |
Lines 942-947
Primary language for Zebra indexing);
Link Here
|
942 |
|
950 |
|
943 |
$msg = q( |
951 |
$msg = q( |
944 |
Koha can use one of two different indexing modes |
952 |
Koha can use one of two different indexing modes |
|
|
953 |
for the MARC bibliographic records: |
954 |
|
955 |
grs1 - uses the Zebra GRS-1 filter, available |
956 |
for legacy support |
957 |
dom - uses the DOM XML filter; offers improved |
958 |
functionality. |
959 |
|
960 |
Bibliographic indexing mode); |
961 |
$msg .= _add_valid_values_disp('BIB_INDEX_MODE', $valid_values); |
962 |
$config{'BIB_INDEX_MODE'} = _get_value('BIB_INDEX_MODE', $msg, $defaults->{'BIB_INDEX_MODE'}, $valid_values, $install_log_values); |
963 |
|
964 |
|
965 |
$msg = q( |
966 |
Koha can use one of two different indexing modes |
945 |
for the MARC authorities records: |
967 |
for the MARC authorities records: |
946 |
|
968 |
|
947 |
grs1 - uses the Zebra GRS-1 filter, available |
969 |
grs1 - uses the Zebra GRS-1 filter, available |