Bug 27683: Impact on catalogue/detail.pl
Since EasyAnalyticalRecords pref is now in GetAnalyticsCount, remove
test in catalogue/detail.pl.
Test plan :
1) Build an item and a linked analytical record with 773$0 and $9
2) Go to record detail page
3) Enable EasyAnalyticalRecords
4) You see analytics tab and analytical count on item
5) Disable EasyAnalyticalRecords
6) You dont see analytics tab
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit cc23a4c478)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
28b5880d71
commit
e9daeb70a2
|
|
@ -379,7 +379,7 @@ foreach my $item (@items) {
|
|||
if ( $analyze ) {
|
||||
# count if item is used in analytical bibliorecords
|
||||
# The 'countanalytics' flag is only used in the templates if analyze is set
|
||||
my $countanalytics = C4::Context->preference('EasyAnalyticalRecords') ? GetAnalyticsCount($item->{itemnumber}) : 0;
|
||||
my $countanalytics = GetAnalyticsCount( $item->{itemnumber} );
|
||||
if ($countanalytics > 0){
|
||||
$analytics_flag=1;
|
||||
$item->{countanalytics} = $countanalytics;
|
||||
|
|
|
|||
Loading…
Reference in New Issue