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

(-)a/Koha/SearchEngine/Elasticsearch.pm (-3 / +9 lines)
Lines 262-271 sub raw_elasticsearch_mappings { Link Here
262
    my $mappings = {};
262
    my $mappings = {};
263
    while ( my $search_field = $search_fields->next ) {
263
    while ( my $search_field = $search_fields->next ) {
264
264
265
        my $marc_to_fields = $schema->resultset('SearchMarcToField')->search( { search_field_id => $search_field->id } );
265
        my $marc_to_fields = $schema->resultset('SearchMarcToField')->search(
266
            { search_field_id => $search_field->id },
267
            {
268
                join     => 'search_marc_map',
269
                order_by => { -asc => 'search_marc_map.marc_field' }
270
            }
271
        );
266
272
267
        while ( my $marc_to_field = $marc_to_fields->next ) {
273
        while ( my $marc_to_field = $marc_to_fields->next ) {
268
            my $marc_map = Koha::SearchMarcMaps->find( $marc_to_field->search_marc_map_id );
274
275
            my $marc_map = $marc_to_field->search_marc_map;
269
276
270
            next if $marc_type && $marc_map->marc_type ne $marc_type;
277
            next if $marc_type && $marc_map->marc_type ne $marc_type;
271
278
272
- 

Return to bug 23204