Lines 67-72
if ( $op eq "do_search" ) {
Link Here
|
67 |
my $orderby = $query->param('orderby') || ''; |
67 |
my $orderby = $query->param('orderby') || ''; |
68 |
my $startfrom = $query->param('startfrom') || 0; |
68 |
my $startfrom = $query->param('startfrom') || 0; |
69 |
my $resultsperpage = $query->param('resultsperpage') || 20; |
69 |
my $resultsperpage = $query->param('resultsperpage') || 20; |
|
|
70 |
my $est_headings = $query->param('est_headings') || undef; |
71 |
|
72 |
if ( $est_headings ) { |
73 |
my @value_established = ( 'a', 'f', '|' ); |
74 |
foreach ( @value_established ) { |
75 |
push @marclist, 'Kind-of-record'; |
76 |
push @and_or, 'or'; |
77 |
push @excluding, ''; |
78 |
push @operator, 'contains'; |
79 |
push @value, $_; |
80 |
} |
81 |
} |
82 |
|
83 |
use Data::Dumper; |
84 |
warn Dumper(\@marclist); |
85 |
warn Dumper(\@and_or); |
86 |
warn Dumper(\@excluding); |
87 |
warn Dumper(\@operator); |
88 |
warn Dumper(\@value); |
89 |
warn Dumper($authtypecode); |
90 |
warn Dumper($orderby); |
70 |
|
91 |
|
71 |
my $builder = Koha::SearchEngine::QueryBuilder->new( |
92 |
my $builder = Koha::SearchEngine::QueryBuilder->new( |
72 |
{ index => $Koha::SearchEngine::AUTHORITIES_INDEX } ); |
93 |
{ index => $Koha::SearchEngine::AUTHORITIES_INDEX } ); |
Lines 76-81
if ( $op eq "do_search" ) {
Link Here
|
76 |
\@marclist, \@and_or, \@excluding, \@operator, |
97 |
\@marclist, \@and_or, \@excluding, \@operator, |
77 |
\@value, $authtypecode, $orderby |
98 |
\@value, $authtypecode, $orderby |
78 |
); |
99 |
); |
|
|
100 |
|
79 |
$template->param( search_query => $search_query ) if C4::Context->preference('DumpSearchQueryTemplate'); |
101 |
$template->param( search_query => $search_query ) if C4::Context->preference('DumpSearchQueryTemplate'); |
80 |
my $offset = $startfrom * $resultsperpage; |
102 |
my $offset = $startfrom * $resultsperpage; |
81 |
my ( $results, $total ) = |
103 |
my ( $results, $total ) = |