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

(-)a/admin/searchengine/elasticsearch/mappings.pl (+5 lines)
Lines 22-27 use List::Util qw( first ); Link Here
22
use C4::Koha;
22
use C4::Koha;
23
use C4::Output;
23
use C4::Output;
24
use C4::Auth;
24
use C4::Auth;
25
use C4::Log;
25
26
26
use Koha::SearchEngine::Elasticsearch;
27
use Koha::SearchEngine::Elasticsearch;
27
use Koha::SearchMarcMaps;
28
use Koha::SearchMarcMaps;
Lines 168-173 if ( $op eq 'edit' ) { Link Here
168
        $schema->storage->txn_rollback;
169
        $schema->storage->txn_rollback;
169
    } else {
170
    } else {
170
        push @messages, { type => 'message', code => 'success_on_update' };
171
        push @messages, { type => 'message', code => 'success_on_update' };
172
173
        C4::Log::logaction( 'SEARCHENGINE', 'EDIT_MAPPINGS', undef, q{} );
174
171
        $schema->storage->txn_commit;
175
        $schema->storage->txn_commit;
172
176
173
        Koha::SearchEngine::Elasticsearch->clear_search_fields_cache();
177
        Koha::SearchEngine::Elasticsearch->clear_search_fields_cache();
Lines 178-183 if ( $op eq 'edit' ) { Link Here
178
elsif( $op eq 'reset_confirmed' ) {
182
elsif( $op eq 'reset_confirmed' ) {
179
    Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings;
183
    Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings;
180
    push @messages, { type => 'message', code => 'success_on_reset' };
184
    push @messages, { type => 'message', code => 'success_on_reset' };
185
    C4::Log::logaction( 'SEARCHENGINE', 'RESET_MAPPINGS', undef, q{} );
181
}
186
}
182
elsif( $op eq 'reset_confirm' ) {
187
elsif( $op eq 'reset_confirm' ) {
183
    $template->param( reset_confirm => 1 );
188
    $template->param( reset_confirm => 1 );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-3 / +6 lines)
Lines 94-99 Link Here
94
94
95
[%        CASE 'REPORTS'      %]Reports[% UNLESS Koha.Preference('ReportsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
95
[%        CASE 'REPORTS'      %]Reports[% UNLESS Koha.Preference('ReportsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %]
96
96
97
[%        CASE 'SEARCHENGINE' %]Search engine
98
97
[%        CASE %][% module | html %]
99
[%        CASE %][% module | html %]
98
[%    END %]
100
[%    END %]
99
[% END %]
101
[% END %]
Lines 117-122 Link Here
117
[%        CASE 'STATUS_CHANGE'  %]Change ILL request status
119
[%        CASE 'STATUS_CHANGE'  %]Change ILL request status
118
[%        CASE 'PATRON_NOTICE'  %]ILL notice sent to patron
120
[%        CASE 'PATRON_NOTICE'  %]ILL notice sent to patron
119
[%        CASE 'Run'    %]Run
121
[%        CASE 'Run'    %]Run
122
[%        CASE 'EDIT_MAPPINGS' %]Edit mappings
123
[%        CASE 'RESET_MAPPINGS' %]Reset mappings
120
[%        CASE %][% action | html %]
124
[%        CASE %][% action | html %]
121
[%    END %]
125
[%    END %]
122
[% END %]
126
[% END %]
Lines 168-174 Link Here
168
                                        [% ELSE %]
172
                                        [% ELSE %]
169
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
173
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
170
                                        [% END %]
174
                                        [% END %]
171
                                        [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'LETTER' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS' ] %]
175
                                        [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'LETTER' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS', 'SEARCHENGINE' ] %]
172
                                            [% IF modules.grep(modx).size %]
176
                                            [% IF modules.grep(modx).size %]
173
                                                <label for="module[% modx | html %]" class="viewlog"><input type="checkbox" id="module[% modx | html %]" name="modules" value="[% modx | html %]" checked="checked"> [% PROCESS translate_log_module module=modx %]</label>
177
                                                <label for="module[% modx | html %]" class="viewlog"><input type="checkbox" id="module[% modx | html %]" name="modules" value="[% modx | html %]" checked="checked"> [% PROCESS translate_log_module module=modx %]</label>
174
                                            [% ELSE %]
178
                                            [% ELSE %]
Lines 190-196 Link Here
190
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
194
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value=""> All</label>
191
                                    [% END %]
195
                                    [% END %]
192
196
193
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'PATRON_NOTICE' 'CHANGE PASS' 'Run' ] %]
197
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'PATRON_NOTICE' 'CHANGE PASS' 'Run' 'EDIT_MAPPINGS' 'RESET_MAPPINGS' ] %]
194
                                        [% IF actions.grep(actx).size %]
198
                                        [% IF actions.grep(actx).size %]
195
                                            <label for="action[% actx| replace('\s+', '_') | html %]" class="viewlog"><input type="checkbox" id="action[% actx | replace('\s+', '_') | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label>
199
                                            <label for="action[% actx| replace('\s+', '_') | html %]" class="viewlog"><input type="checkbox" id="action[% actx | replace('\s+', '_') | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label>
196
                                        [% ELSE %]
200
                                        [% ELSE %]
197
- 

Return to bug 26991