From 7e8f7eb2589bc6d7a1c2867bf10a0a57d1a4fe0e Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Thu, 24 Jun 2010 19:26:18 +0200 Subject: [PATCH] MT3652 : Unifying the search of neworder with Search This patch unifies the search in neworder so that the same biblios should be sent back when searching from catalogue search or from box. Signed-off-by: Galen Charlton --- acqui/neworderbiblio.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/acqui/neworderbiblio.pl b/acqui/neworderbiblio.pl index 09709d7aa8..a06facac55 100755 --- a/acqui/neworderbiblio.pl +++ b/acqui/neworderbiblio.pl @@ -91,7 +91,13 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); # Searching the catalog. -my ($error, $marcresults, $total_hits) = SimpleSearch($query, $results_per_page * ($page - 1), $results_per_page); +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 ); if (defined $error) { warn "error: ".$error; -- 2.20.1