View | Details | Raw Unified | Return to bug 20484
Collapse All | Expand All

(-)a/admin/searchengine/elasticsearch/mappings.pl (-1 / +7 lines)
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;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/blocking_errors.inc (+2 lines)
Lines 17-22 Link Here
17
        <div class="dialog message">The form submission failed (Wrong CSRF token). Try to come back, refresh the page, then try again.</div>
17
        <div class="dialog message">The form submission failed (Wrong CSRF token). Try to come back, refresh the page, then try again.</div>
18
    [% CASE 'budget_is_locked' %]
18
    [% CASE 'budget_is_locked' %]
19
        <div class="dialog message">The budget is locked, fund creation is not possible.</div>
19
        <div class="dialog message">The budget is locked, fund creation is not possible.</div>
20
    [% CASE 'missing_es_modules' %]
21
        <div class="dialog message">Necessary Elasticsearch packages are not installed on your server. Please contact your server admin if you wish to configure Elasticsearch</div>
20
    [% CASE %][% blocking_error | html %]
22
    [% CASE %][% blocking_error | html %]
21
    [% END %]
23
    [% END %]
22
24
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-1 / +2 lines)
Lines 70-75 a.add, a.delete { Link Here
70
70
71
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Search engine configuration (Elasticsearch)</div>
71
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Search engine configuration (Elasticsearch)</div>
72
72
73
[% INCLUDE 'blocking_errors.inc' %]
74
73
<div class="main container-fluid">
75
<div class="main container-fluid">
74
    <div class="row">
76
    <div class="row">
75
        <div class="col-sm-10 col-sm-push-2">
77
        <div class="col-sm-10 col-sm-push-2">
76
- 

Return to bug 20484