Lines 458-463
sub _convert_facets {
Link Here
|
458 |
holdingbranch => $library_names, |
458 |
holdingbranch => $library_names, |
459 |
homebranch => $library_names |
459 |
homebranch => $library_names |
460 |
); |
460 |
); |
|
|
461 |
|
462 |
my @hidden_itemtypes = map { $_->itemtype } ( grep { $opac && $_->hideinopac } @itypes ); |
463 |
|
461 |
my @facets; |
464 |
my @facets; |
462 |
$exp_facet //= ''; |
465 |
$exp_facet //= ''; |
463 |
while ( my ( $type, $data ) = each %$es ) { |
466 |
while ( my ( $type, $data ) = each %$es ) { |
Lines 478-483
sub _convert_facets {
Link Here
|
478 |
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 |
479 |
my $c = $term->{doc_count}; |
482 |
my $c = $term->{doc_count}; |
480 |
my $label; |
483 |
my $label; |
|
|
484 |
next if $type eq 'itype' && grep { $_ eq $t } @hidden_itemtypes; |
481 |
if ( exists( $special{$type} ) ) { |
485 |
if ( exists( $special{$type} ) ) { |
482 |
$label = $special{$type}->{$t} // $t; |
486 |
$label = $special{$type}->{$t} // $t; |
483 |
} |
487 |
} |
484 |
- |
|
|