Skip to content

Commit

Permalink
Bug 9239 QA follow-up: remove stray debug code
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jared Camins-Esakov <[email protected]>
  • Loading branch information
jcamins committed Mar 17, 2013
1 parent 31b105a commit 376c55d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion C4/AuthoritiesMarc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ sub SearchAuthorities {
$dosearch=1;
++$attr_cnt;
if ($QParser) {
$qpquery .= " $tags->[$i]:$value->[$i]";
$qpquery .= " $tags->[$i]:\"$value->[$i]\"";
}
}#if value
}
Expand Down
2 changes: 1 addition & 1 deletion C4/Biblio.pm
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ sub _check_valid_auth_link {
require C4::AuthoritiesMarc;

my $authorized_heading =
C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } );
C4::AuthoritiesMarc::GetAuthorizedHeading( { 'authid' => $authid } ) || '';

return ($field->as_string('abcdefghijklmnopqrstuvwxyz') eq $authorized_heading);
}
Expand Down
2 changes: 1 addition & 1 deletion Koha/QueryParser/Driver/PQF/query_plan/node.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sub target_syntax {
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);
Expand Down
2 changes: 1 addition & 1 deletion OpenILS/QueryParser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ sub decompose {
# 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;

}

Expand Down
3 changes: 3 additions & 0 deletions etc/searchengine/queryparser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,9 @@ field_mappings:
bib1_mapping:
authorityserver:
1: Match-heading
4: 1
5: 100
6: 3
enabled: 1
index: matchheading
label: Matchheading
Expand Down

0 comments on commit 376c55d

Please sign in to comment.