From 7e348764878e5858c2cd5d48e6d0d0179762c8b1 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Fri, 6 Mar 2026 18:57:39 +0000 Subject: [PATCH] Bug 40879: Only prepare cites data when OPACCite is enabled --- opac/opac-ISBDdetail.pl | 4 +++- opac/opac-MARCdetail.pl | 4 +++- opac/opac-detail.pl | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl index 45e83c393d4..98c15c15d07 100755 --- a/opac/opac-ISBDdetail.pl +++ b/opac/opac-ISBDdetail.pl @@ -238,6 +238,8 @@ if ( C4::Context->preference('ArticleRequests') ) { } # Cites -$template->param( cites => C4::Record::marc2cites($record) ); +if ( C4::Context->preference('OPACCite') ) { + $template->param( cites => C4::Record::marc2cites($record) ); +} output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl index 03c2d18dd04..790bf328d78 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -387,6 +387,8 @@ $template->param( ); # Cites -$template->param( cites => C4::Record::marc2cites($record) ); +if ( C4::Context->preference('OPACCite') ) { + $template->param( cites => C4::Record::marc2cites($record) ); +} output_html_with_http_headers $query, $cookie, $template->output; diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index edf609cb021..50a0a696470 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -1287,6 +1287,8 @@ if ( C4::Context->preference('OPACAuthorIdentifiersAndInformation') ) { } # Cites -$template->param( cites => C4::Record::marc2cites($record) ); +if ( C4::Context->preference('OPACCite') ) { + $template->param( cites => C4::Record::marc2cites($record) ); +} output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5