Bug 9239 QA follow-up: the last QA follow-up was missing a require
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 10 Mar 2013 13:17:21 +0000 (09:17 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 17 Mar 2013 01:32:34 +0000 (21:32 -0400)
This patch also corrects the definition of the an= index, which was
missing exactness.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Search.pm
acqui/neworderbiblio.pl
etc/searchengine/queryparser.yaml

index 1a1e2cf..4237ea3 100644 (file)
@@ -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;
     }
index 5824f6b..bc782af 100755 (executable)
@@ -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(
index 94f9d8e..f54ac3b 100644 (file)
@@ -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