Lines 32-37
use C4::Creators::Lib qw( html_table );
Link Here
|
32 |
use Koha::Logger; |
32 |
use Koha::Logger; |
33 |
use Koha::Items; |
33 |
use Koha::Items; |
34 |
use Koha::ItemTypes; |
34 |
use Koha::ItemTypes; |
|
|
35 |
use Koha::SearchEngine::QueryBuilder; |
35 |
use Koha::SearchEngine::Search; |
36 |
use Koha::SearchEngine::Search; |
36 |
|
37 |
|
37 |
my $query = CGI->new; |
38 |
my $query = CGI->new; |
Lines 76-95
if ( $op eq "do_search" ) {
Link Here
|
76 |
push(@limits, "acqdate,le,st-date-normalized=$dateto"); |
77 |
push(@limits, "acqdate,le,st-date-normalized=$dateto"); |
77 |
} |
78 |
} |
78 |
|
79 |
|
79 |
my ( $error, $query, $simple_query, $query_cgi, |
80 |
my ( $build_error, $query, $simple_query, $query_cgi, |
80 |
$query_desc, $limit, $limit_cgi, $limit_desc, |
81 |
$query_desc, $limit, $limit_cgi, $limit_desc, |
81 |
$query_type ) |
82 |
$query_type ) |
82 |
= $builder->build_query_compat( undef, [$ccl_textbox], [$idx], \@limits); |
83 |
= $builder->build_query_compat( undef, [$ccl_textbox], [$idx], \@limits); |
83 |
|
84 |
|
84 |
my $offset = $startfrom > 1 ? $startfrom - 1 : 0; |
85 |
my $offset = $startfrom > 1 ? $startfrom - 1 : 0; |
85 |
|
86 |
|
86 |
my ( $error, $marcresults, $facets ) = $searcher->search_compat( |
87 |
my ( $error, $results, $facets ) = $searcher->search_compat( |
87 |
$query, $simple_query, undef, ['biblioserver'], $resultsperpage, $offset, |
88 |
$query, $simple_query, [], ['biblioserver'], $resultsperpage, $offset, |
88 |
undef, undef, $query_type, undef |
89 |
undef, undef, $query_type, undef |
89 |
); |
90 |
); |
90 |
|
91 |
|
91 |
if (!defined $error && $marcresults->{biblioserver}{RECORDS} ) { |
92 |
if (!defined $error && @{$results->{biblioserver}{RECORDS}} ) { |
92 |
$show_results = $marcresults->{biblioserver}{RECORDS}; |
93 |
$show_results = @{$results->{biblioserver}{RECORDS}}; |
|
|
94 |
$marcresults = $results->{biblioserver}{RECORDS}; |
93 |
} |
95 |
} |
94 |
else { |
96 |
else { |
95 |
Koha::Logger->get->warn("ERROR label-item-search: no results from simple_search_compat"); |
97 |
Koha::Logger->get->warn("ERROR label-item-search: no results from simple_search_compat"); |
96 |
- |
|
|