Bugzilla – Attachment 195217 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 cite data when OPACCite is enabled
Bug-40879-Only-prepare-cite-data-when-OPACCite-is-.patch (text/plain), 1.89 KB, created by
David Nind
on 2026-03-12 19:45:23 UTC
(
hide
)
Description:
Bug 40879: Only prepare cite data when OPACCite is enabled
Filename:
MIME Type:
Creator:
David Nind
Created:
2026-03-12 19:45:23 UTC
Size:
1.89 KB
patch
obsolete
>From 83471be449689252b1ecc36e9819c4ff02445414 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 cite 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 45e83c393d..98c15c15d0 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 03c2d18dd0..790bf328d7 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 edf609cb02..50a0a69647 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
|
195185
|
195186
|
195187
|
195188
|
195189
|
195190
|
195191
|
195204
|
195205
|
195206
|
195207
|
195208
|
195209
|
195210
|
195211
|
195212
|
195213
|
195214
|
195215
|
195216
| 195217