Bugzilla – Attachment 124255 Details for
Bug 28373
Items fields not used in default XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28373: Add warning if custom stylesheets are defined
Bug-28373-Add-warning-if-custom-stylesheets-are-de.patch (text/plain), 1.67 KB, created by
Nick Clemens
on 2021-08-30 19:55:17 UTC
(
hide
)
Description:
Bug 28373: Add warning if custom stylesheets are defined
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2021-08-30 19:55:17 UTC
Size:
1.67 KB
patch
obsolete
>From b8a54a18c8ba84e686748d1137fc951553922f98 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 30 Aug 2021 19:53:40 +0000 >Subject: [PATCH] Bug 28373: Add warning if custom stylesheets are defined > >This patch adds a check of the current XSLT prefs and warns to check the new pref >if any are not set to default >--- > .../bug28373_add_PassItemMarcToXSLT_preference.perl | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/installer/data/mysql/atomicupdate/bug28373_add_PassItemMarcToXSLT_preference.perl b/installer/data/mysql/atomicupdate/bug28373_add_PassItemMarcToXSLT_preference.perl >index f411e02cab..ef7ec1e5e8 100644 >--- a/installer/data/mysql/atomicupdate/bug28373_add_PassItemMarcToXSLT_preference.perl >+++ b/installer/data/mysql/atomicupdate/bug28373_add_PassItemMarcToXSLT_preference.perl >@@ -4,6 +4,12 @@ if( CheckVersion( $DBversion ) ) { > INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES > ('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo'); > }); >+ foreach my $pref ('XSLTDetailsDisplay','XSLTListsDisplay','XSLTResultsDisplay','OPACXSLTDetailsDisplay','OPACXSLTListsDisplay','OPACXSLTResultsDisplay'){ >+ if( C4::Context->preference($pref) ne 'default' ){ >+ print "NOTE: You have defined a custom stylesheet. If your custom stylesheets are utilizing item fields you must enable the system preference 'PassItemMarcToXSLT'\n"; >+ last; >+ } >+ } > > NewVersion( $DBversion, 28373, "Add PassItemMarcToXSLT system preference"); > } >-- >2.20.1
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 28373
:
121115
|
121610
|
121611
|
122614
|
122615
|
122616
|
122628
|
122629
|
122630
|
124019
|
124222
|
124223
|
124224
|
124225
|
124226
|
124254
| 124255 |
124495
|
124496
|
124686