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

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-2 / +1 lines)
Lines 416-422 sub _convert_facets { Link Here
416
            "type_label_$type_to_label{$type}" => 1,
416
            "type_label_$type_to_label{$type}" => 1,
417
            type_link_value                    => $type,
417
            type_link_value                    => $type,
418
        };
418
        };
419
        $limit = $#{ $data->{terms} } if ( $limit > @{ $data->{terms} } );
419
        $limit = @{ $data->{terms} } if ( $limit > @{ $data->{terms} } );
420
        foreach my $term ( @{ $data->{terms} }[ 0 .. $limit - 1 ] ) {
420
        foreach my $term ( @{ $data->{terms} }[ 0 .. $limit - 1 ] ) {
421
            my $t = $term->{term};
421
            my $t = $term->{term};
422
            my $c = $term->{count};
422
            my $c = $term->{count};
423
- 

Return to bug 12478