From 1f86b853ba831e4926245154132874abede05ed3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Jan 2014 09:31:09 +0100 Subject: [PATCH] Bug 11096: If zebra_bib_index_mode is not defined, assume it is grs1. Signed-off-by: Jonathan Druart --- C4/Context.pm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/C4/Context.pm b/C4/Context.pm index 746d24b..739b66d 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -734,18 +734,19 @@ sub _new_Zconn { $server //= "biblioserver"; $syntax //= "XML"; - if ( ($server eq 'biblioserver' and $context->{'config'}->{'zebra_bib_index_mode'} eq 'grs1') - or ($server eq 'authorityserver' and $context->{'config'}->{'zebra_auth_index_mode'} eq 'grs1')) { + if ( ($server eq 'biblioserver' and $context->{'config'}->{'zebra_bib_index_mode'} eq 'dom') + and ($server eq 'authorityserver' and $context->{'config'}->{'zebra_auth_index_mode'} eq 'dom')) { + + $elementSetName = 'marcxml'; + $syntax = 'XML'; + + } else { $elementSetName = 'F'; $syntax = ( $context->preference("marcflavour") eq 'UNIMARC' ) ? 'unimarc' : 'usmarc'; - } else { - - $elementSetName = 'marcxml'; - $syntax = 'XML'; } my $host = $context->{'listen'}->{$server}->{'content'}; -- 1.7.10.4