diff --git a/C4/Items.pm b/C4/Items.pm index e08376fb7b..8204b3e562 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1259,6 +1259,10 @@ counts Usage of itemnumber in Analytical bibliorecords. sub GetAnalyticsCount { my ($itemnumber) = @_; + if ( !C4::Context->preference('EasyAnalyticalRecords') ) { + return 0; + } + ### ZOOM search here my $query; $query= "hi=".$itemnumber;