diff --git a/C4/Items.pm b/C4/Items.pm index 301fb51ebe..9bb261f164 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1274,6 +1274,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;