[Koha-patches] [PATCH 08/11] MT3652 : Unifying the search of neworder with Search
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Thu Jun 24 19:26:18 CEST 2010
This patch unifies the search in neworder so that the same biblios should be sent back when searching from catalogue search or from box.
---
acqui/neworderbiblio.pl | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/acqui/neworderbiblio.pl b/acqui/neworderbiblio.pl
index 09709d7..a06faca 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;
--
1.7.0.4
More information about the Koha-patches
mailing list