Bug 12478: fix wrong counts/results for authority searches
Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
7e87829166
commit
efe300993c
|
|
@ -260,7 +260,6 @@ The search description is a hashref that looks something like:
|
|||
sub build_authorities_query {
|
||||
my ($self, $search) = @_;
|
||||
|
||||
warn "Search is " . Dumper $search;
|
||||
# Start by making the query parts
|
||||
my @query_parts;
|
||||
my @filter_parts;
|
||||
|
|
@ -637,6 +636,9 @@ sub _clean_search_term {
|
|||
|
||||
$term = $self->_convert_index_strings_freeform($term);
|
||||
$term =~ s/[{}]/"/g;
|
||||
# Some hardcoded searches (like with authorities) produce things like
|
||||
# 'an=123', when it ought to be 'an:123'.
|
||||
$term =~ s/=/:/g;
|
||||
return $term;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue