From: Matthias Meusburger <[email protected]>
---
C4/Search.pm | 1 -
cataloguing/addbooks.pl | 7 ++++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index 81e7d5a..de02b83 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1648,7 +1648,6 @@ sub searchResults {
}
# XSLT processing of some stuff
- my $debug=1;
use C4::Charset;
SetUTF8Flag($marcrecord);
$debug && warn $marcrecord->as_formatted;
diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl
index e911391..b08f1e5 100755
--- a/cataloguing/addbooks.pl
+++ b/cataloguing/addbooks.pl
@@ -68,8 +68,13 @@ foreach my $thisframeworkcode ( sort {$frameworks->{$a} cmp
$frameworks->{$b}}ke
# Searching the catalog.
if ($query) {
+ # build query
+ 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($query,
$results_per_page * ($page - 1), $results_per_page);
+ my ( $error, $marcresults, $total_hits ) = SimpleSearch($builtquery,
$results_per_page * ($page - 1), $results_per_page);
if ( defined $error ) {
$template->param( error => $error );
--
1.6.3.3
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches