Lines 198-204
foreach my $subscription (@subscriptions) {
Link Here
|
198 |
my $showcomp = C4::Context->preference('ShowComponentRecords'); |
198 |
my $showcomp = C4::Context->preference('ShowComponentRecords'); |
199 |
my $show_analytics; |
199 |
my $show_analytics; |
200 |
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) { |
200 |
if ( $showcomp eq 'both' || $showcomp eq 'staff' ) { |
201 |
if ( my $components = $biblio->get_marc_components(C4::Context->preference('MaxComponentRecords')) ) { |
201 |
if ( my $components = $marc_record ? $biblio->get_marc_components(C4::Context->preference('MaxComponentRecords')) : undef ) { |
202 |
$show_analytics = 1 if @{$components}; # just show link when having results |
202 |
$show_analytics = 1 if @{$components}; # just show link when having results |
203 |
$template->param( analytics_error => 1 ) if grep { $_->message eq 'component_search' } @{$biblio->object_messages}; |
203 |
$template->param( analytics_error => 1 ) if grep { $_->message eq 'component_search' } @{$biblio->object_messages}; |
204 |
my $parts; |
204 |
my $parts; |
205 |
- |
|
|