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

(-)a/admin/searchengine/elasticsearch/mappings.pl (-1 / +9 lines)
Lines 21-26 use C4::Koha; Link Here
21
use C4::Output;
21
use C4::Output;
22
use C4::Auth;
22
use C4::Auth;
23
23
24
use Koha::SearchEngine::Elasticsearch;
24
use Koha::SearchMarcMaps;
25
use Koha::SearchMarcMaps;
25
use Koha::SearchFields;
26
use Koha::SearchFields;
26
27
Lines 96-101 if ( $op eq 'edit' ) { Link Here
96
        $schema->storage->txn_commit;
97
        $schema->storage->txn_commit;
97
    }
98
    }
98
}
99
}
100
elsif( $op eq 'reset' ) {
101
    # TODO Move this feature to the interface
102
    my $sure = $input->param('i_know_what_i_am_doing');
103
    if ( $sure ) {
104
        Koha::SearchMarcMaps->search->delete;
105
        Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings;
106
    }
107
}
99
108
100
my @indexes;
109
my @indexes;
101
110
102
- 

Return to bug 14899