=cut
-use strict;
-#use warnings; FIXME - Bug 2505
+use Modern::Perl;
use C4::Search;
use CGI qw ( -utf8 );
use C4::Output;
use C4::Koha;
use C4::Budgets qw/ GetBudgetHierarchy /;
+use C4::Languages qw(getlanguage);
use Koha::Acquisition::Booksellers;
use Koha::SearchEngine;
my $basketno = $params->{'basketno'};
my $sub = $params->{'sub'};
my $bookseller = Koha::Acquisition::Booksellers->find( $booksellerid );
+my $lang = C4::Languages::getlanguage($input);
# getting the template
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
if ($QParser) {
$builtquery = $query;
} else {
- ( undef,$builtquery,undef,undef,undef,undef,undef,undef,undef,undef) = $builder->build_query_compat(undef,\@operands);
+ ( undef, $builtquery, undef, undef, undef, undef, undef, undef, undef, undef ) =
+ $builder->build_query_compat( undef, \@operands, undef, undef, undef, 0, $lang );
}
my ( $error, $marcresults, $total_hits ) = $searcher->simple_search_compat($builtquery, $results_per_page * ($page - 1), $results_per_page);