Lines 608-624
sub _new_Zconn {
Link Here
|
608 |
my $tried=0; # first attempt |
608 |
my $tried=0; # first attempt |
609 |
my $Zconn; # connection object |
609 |
my $Zconn; # connection object |
610 |
my $elementSetName; |
610 |
my $elementSetName; |
611 |
my $index_mode; |
|
|
612 |
my $syntax; |
611 |
my $syntax; |
613 |
|
612 |
|
614 |
$server //= "biblioserver"; |
613 |
$server //= "biblioserver"; |
615 |
|
614 |
|
616 |
if ( $server eq 'biblioserver' ) { |
|
|
617 |
$index_mode = $context->{'config'}->{'zebra_bib_index_mode'} // 'dom'; |
618 |
} elsif ( $server eq 'authorityserver' ) { |
619 |
$index_mode = $context->{'config'}->{'zebra_auth_index_mode'} // 'dom'; |
620 |
} |
621 |
|
622 |
$syntax = 'xml'; |
615 |
$syntax = 'xml'; |
623 |
$elementSetName = 'marcxml'; |
616 |
$elementSetName = 'marcxml'; |
624 |
|
617 |
|