Remove a line of debug code from EG, provide better error handling
when presented with weird data in the authority linker, and correct
queryparser configuration to reflect the correct configuration for
Zebra.
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
$dosearch=1;
++$attr_cnt;
if ($QParser) {
- $qpquery .= " $tags->[$i]:$value->[$i]";
+ $qpquery .= " $tags->[$i]:\"$value->[$i]\"";
}
}#if value
}
require C4::AuthoritiesMarc;
my $authorized_heading =
- C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } );
+ C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } ) || '';
return ($field->as_string('abcdefghijklmnopqrstuvwxyz') eq $authorized_heading);
}
if ($relbump) {
$fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'};
}
- push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && scalar @fields));
+ push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && @{$self->fields} > 1));
}
} else {
$fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $self->classname, $server);
# Cleanup the phrase to make it so that we don't parse things in it as anything other than atoms
$phrase =~ s/$phrase_cleanup_re/ /g;
- $_ = $phrase . $temp_val;
+ $_ = $temp_val;
}
bib1_mapping:
authorityserver:
1: Match-heading
+ 4: 1
+ 5: 100
+ 6: 3
enabled: 1
index: matchheading
label: Matchheading