From d88bd37f30d4b1ae52d0237582c1b927aa276b4d Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sun, 10 Mar 2013 09:17:21 -0400 Subject: [PATCH] Bug 9239 QA follow-up: the last QA follow-up was missing a require This patch also corrects the definition of the an= index, which was missing exactness. Signed-off-by: Katrin Fischer Signed-off-by: Jared Camins-Esakov --- C4/Search.pm | 1 + acqui/neworderbiblio.pl | 6 +----- etc/searchengine/queryparser.yaml | 3 +++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 1a1e2cfbdd..4237ea3d9b 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1212,6 +1212,7 @@ sub parseQuery { $QParser->parse( $query ); $operands[0] = "pqf=" . $QParser->target_syntax('biblioserver'); } else { + require Koha::QueryParser::Driver::PQF; my $modifier_re = '#(' . join( '|', @{Koha::QueryParser::Driver::PQF->modifiers}) . ')'; s/$modifier_re//g for @operands; } diff --git a/acqui/neworderbiblio.pl b/acqui/neworderbiblio.pl index 5824f6b5aa..bc782afe46 100755 --- a/acqui/neworderbiblio.pl +++ b/acqui/neworderbiblio.pl @@ -93,13 +93,9 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); # Searching the catalog. -my @operands = $query; -my ( @operators, @indexes, @sort_by, @limits ) = (); -my ( $builterror, $builtquery, $simple_query, $query_cgi, $query_desc, $limit, $limit_cgi, $limit_desc, $stopwords_removed, $query_type ) = - buildQuery( \@operators, \@operands, \@indexes, @limits, \@sort_by, undef, undef ); # find results -my ( $error, $marcresults, $total_hits ) = SimpleSearch( $builtquery, $results_per_page * ( $page - 1 ), $results_per_page ); +my ( $error, $marcresults, $total_hits ) = SimpleSearch( $query, $results_per_page * ( $page - 1 ), $results_per_page ); if (defined $error) { $template->param( diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml index 94f9d8ea87..f54ac3b4ce 100644 --- a/etc/searchengine/queryparser.yaml +++ b/etc/searchengine/queryparser.yaml @@ -1075,6 +1075,9 @@ field_mappings: bib1_mapping: biblioserver: 1: Koha-Auth-Number + 3: 1 + 4: 1 + 5: 100 enabled: 1 index: authority-number label: Authority-number -- 2.39.5