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

(-)a/Koha/SearchEngine/Elasticsearch.pm (-3 / +2 lines)
Lines 328-334 sub get_fixer_rules { Link Here
328
            $options = '-split => 1' unless $marc_field =~ m|_/| || $type eq 'sum';
328
            $options = '-split => 1' unless $marc_field =~ m|_/| || $type eq 'sum';
329
            push @rules, "marc_map('$marc_field','${name}.\$append', $options)";
329
            push @rules, "marc_map('$marc_field','${name}.\$append', $options)";
330
            if ($facet) {
330
            if ($facet) {
331
                push @rules, "marc_map('$marc_field','${name}__facet', $options)";
331
                push @rules, "marc_map('$marc_field','${name}__facet.\$append', $options)";
332
            }
332
            }
333
            if ($suggestible) {
333
            if ($suggestible) {
334
                push @rules,
334
                push @rules,
Lines 351-357 sub get_fixer_rules { Link Here
351
            # to do the default thing, which is make it sortable.
351
            # to do the default thing, which is make it sortable.
352
            if ($self->sort_fields()->{$name}) {
352
            if ($self->sort_fields()->{$name}) {
353
                if ($sort || !defined $sort) {
353
                if ($sort || !defined $sort) {
354
                    push @rules, "marc_map('$marc_field','${name}__sort', $options)";
354
                    push @rules, "marc_map('$marc_field','${name}__sort.\$append', $options)";
355
                }
355
                }
356
            }
356
            }
357
        }
357
        }
358
- 

Return to bug 18434