|
Lines 24-35
use C4::Output;
Link Here
|
| 24 |
use C4::Auth; |
24 |
use C4::Auth; |
| 25 |
|
25 |
|
| 26 |
use Koha::SearchEngine::Elasticsearch; |
26 |
use Koha::SearchEngine::Elasticsearch; |
| 27 |
use Koha::SearchEngine::Elasticsearch::Indexer; |
|
|
| 28 |
use Koha::SearchMarcMaps; |
27 |
use Koha::SearchMarcMaps; |
| 29 |
use Koha::SearchFields; |
28 |
use Koha::SearchFields; |
| 30 |
use Koha::Caches; |
29 |
use Koha::Caches; |
| 31 |
|
30 |
|
| 32 |
use Try::Tiny; |
31 |
use Try::Tiny; |
|
|
32 |
use Module::Load::Conditional qw(can_load); |
| 33 |
|
| 33 |
|
34 |
|
| 34 |
my $input = new CGI; |
35 |
my $input = new CGI; |
| 35 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
36 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
|
Lines 41-46
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
| 41 |
} |
42 |
} |
| 42 |
); |
43 |
); |
| 43 |
|
44 |
|
|
|
45 |
unless ( can_load( modules => { 'Koha::SearchEngine::Elasticsearch::Indexer' => undef } ) ) { |
| 46 |
output_and_exit( $input, $cookie, $template, 'missing_es_modules'); |
| 47 |
} |
| 48 |
|
| 49 |
|
| 44 |
my $index = $input->param('index') || 'biblios'; |
50 |
my $index = $input->param('index') || 'biblios'; |
| 45 |
my $op = $input->param('op') || 'list'; |
51 |
my $op = $input->param('op') || 'list'; |
| 46 |
my @messages; |
52 |
my @messages; |