Lines 630-636
my $showcomp = C4::Context->preference('ShowComponentRecords');
Link Here
|
630 |
my ( $parts, $show_analytics ); |
630 |
my ( $parts, $show_analytics ); |
631 |
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) { |
631 |
if ( $showcomp eq 'both' || $showcomp eq 'opac' ) { |
632 |
if ( my $components = $biblio->get_marc_components(C4::Context->preference('MaxComponentRecords')) ) { |
632 |
if ( my $components = $biblio->get_marc_components(C4::Context->preference('MaxComponentRecords')) ) { |
633 |
$show_analytics = 1; # just show link when having results |
633 |
$show_analytics = 1 if @{$components}; # just show link when having results |
634 |
for my $part ( @{$components} ) { |
634 |
for my $part ( @{$components} ) { |
635 |
$part = C4::Search::new_record_from_zebra( 'biblioserver', $part ); |
635 |
$part = C4::Search::new_record_from_zebra( 'biblioserver', $part ); |
636 |
my $id = Koha::SearchEngine::Search::extract_biblionumber( $part ); |
636 |
my $id = Koha::SearchEngine::Search::extract_biblionumber( $part ); |
637 |
- |
|
|