From dee9ddc06219673873871557d19c10d9af54aa3e 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. --- 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 525f29e..83b95ce 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1211,6 +1211,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 5824f6b..bc782af 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 94f9d8e..f54ac3b 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 -- 1.7.9.5