Bugzilla – Attachment 195191 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.90 KB, created by
Caroline Cyr La Rose
on 2026-03-12 13:53:18 UTC
(
hide
)
Description:
Bug 40879: Only prepare cites data when OPACCite is enabled
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2026-03-12 13:53:18 UTC
Size:
1.90 KB
patch
obsolete
>From eb72594a39b7d72a41bbc7048d1f1a5782f69a9a 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 > >Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >--- > 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.43.0
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
|
195185
|
195186
|
195187
|
195188
|
195189
|
195190
|
195191
|
195204
|
195205
|
195206
|
195207
|
195208
|
195209
|
195210
|
195211
|
195212
|
195213
|
195214
|
195215
|
195216
|
195217