Lines 459-465
sub _convert_facets {
Link Here
|
459 |
homebranch => $library_names |
459 |
homebranch => $library_names |
460 |
); |
460 |
); |
461 |
|
461 |
|
462 |
my @hidden_itemtypes = map { $_->itemtype } ( grep { $opac && $_->hideinopac } @itypes ); |
462 |
my %hidden_itemtypes = map { $_->itemtype => 1 } ( grep { $opac && $_->hideinopac } @itypes ); |
463 |
|
463 |
|
464 |
my @facets; |
464 |
my @facets; |
465 |
$exp_facet //= ''; |
465 |
$exp_facet //= ''; |
Lines 481-487
sub _convert_facets {
Link Here
|
481 |
next unless length($t); # FIXME Currently we cannot search for an empty faceted field i.e. ln:"" to find records missing languages, though ES does count them correctly |
481 |
next unless length($t); # FIXME Currently we cannot search for an empty faceted field i.e. ln:"" to find records missing languages, though ES does count them correctly |
482 |
my $c = $term->{doc_count}; |
482 |
my $c = $term->{doc_count}; |
483 |
my $label; |
483 |
my $label; |
484 |
next if $type eq 'itype' && grep { $_ eq $t } @hidden_itemtypes; |
484 |
next if $type eq 'itype' && $hidden_itemtypes{ $t }; |
485 |
if ( exists( $special{$type} ) ) { |
485 |
if ( exists( $special{$type} ) ) { |
486 |
$label = $special{$type}->{$t} // $t; |
486 |
$label = $special{$type}->{$t} // $t; |
487 |
} |
487 |
} |
488 |
- |
|
|