Bugzilla – Attachment 194902 Details for
Bug 40879
Add system preference to enable/disable the “Cite” option in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40879: Only prepare cites data when OPACCite is enabled
Bug-40879-Only-prepare-cites-data-when-OPACCite-is.patch (text/plain), 1.83 KB, created by
Laura Escamilla
on 2026-03-06 18:59:04 UTC
(
hide
)
Description:
Bug 40879: Only prepare cites data when OPACCite is enabled
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2026-03-06 18:59:04 UTC
Size:
1.83 KB
patch
obsolete
>From 7e348764878e5858c2cd5d48e6d0d0179762c8b1 Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40879
:
186928
|
186929
|
186930
|
186931
|
186932
|
186933
|
186935
|
186936
|
186937
|
186938
|
186939
|
186940
|
186941
|
190032
|
190033
|
190034
|
190035
|
190036
|
190065
|
190087
|
190088
|
190089
|
190090
|
190091
|
190092
| 194902