Lines 64-69
use C4::Auth;
Link Here
|
64 |
use C4::Output; |
64 |
use C4::Output; |
65 |
use C4::Koha; |
65 |
use C4::Koha; |
66 |
use C4::Budgets qw/ GetBudgetHierarchy /; |
66 |
use C4::Budgets qw/ GetBudgetHierarchy /; |
|
|
67 |
use C4::Languages qw(getlanguage); |
67 |
|
68 |
|
68 |
use Koha::Acquisition::Booksellers; |
69 |
use Koha::Acquisition::Booksellers; |
69 |
use Koha::SearchEngine; |
70 |
use Koha::SearchEngine; |
Lines 83-88
my $booksellerid = $params->{'booksellerid'};
Link Here
|
83 |
my $basketno = $params->{'basketno'}; |
84 |
my $basketno = $params->{'basketno'}; |
84 |
my $sub = $params->{'sub'}; |
85 |
my $sub = $params->{'sub'}; |
85 |
my $bookseller = Koha::Acquisition::Booksellers->find( $booksellerid ); |
86 |
my $bookseller = Koha::Acquisition::Booksellers->find( $booksellerid ); |
|
|
87 |
my $lang = C4::Languages::getlanguage($input); |
86 |
|
88 |
|
87 |
# getting the template |
89 |
# getting the template |
88 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
90 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
Lines 106-112
my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::BI
Link Here
|
106 |
if ($QParser) { |
108 |
if ($QParser) { |
107 |
$builtquery = $query; |
109 |
$builtquery = $query; |
108 |
} else { |
110 |
} else { |
109 |
( undef,$builtquery,undef,undef,undef,undef,undef,undef,undef,undef) = $builder->build_query_compat(undef,\@operands); |
111 |
( undef, $builtquery, undef, undef, undef, undef, undef, undef, undef, undef ) = |
|
|
112 |
$builder->build_query_compat( undef, \@operands, undef, undef, undef, 0, $lang ); |
110 |
} |
113 |
} |
111 |
my ( $error, $marcresults, $total_hits ) = $searcher->simple_search_compat($builtquery, $results_per_page * ($page - 1), $results_per_page); |
114 |
my ( $error, $marcresults, $total_hits ) = $searcher->simple_search_compat($builtquery, $results_per_page * ($page - 1), $results_per_page); |
112 |
|
115 |
|