Bugzilla – Attachment 182054 Details for
Bug 39860
Add a system preference to allow for addtional/custom MARC fields in the record display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39860: Add ExtraContentForXSLTDisplay system preference
Bug-39860-Add-ExtraContentForXSLTDisplay-system-pr.patch (text/plain), 3.58 KB, created by
Lucas Gass (lukeg)
on 2025-05-07 21:43:39 UTC
(
hide
)
Description:
Bug 39860: Add ExtraContentForXSLTDisplay system preference
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-05-07 21:43:39 UTC
Size:
3.58 KB
patch
obsolete
>From c5158f39799d55469d0b0d5962311c1338662bfa Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 7 May 2025 21:38:21 +0000 >Subject: [PATCH] Bug 39860: Add ExtraContentForXSLTDisplay system preference > >--- > .../data/mysql/atomicupdate/bug_39860.pl | 19 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../admin/preferences/staff_interface.pref | 6 ++++++ > 3 files changed, 26 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_39860.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_39860.pl b/installer/data/mysql/atomicupdate/bug_39860.pl >new file mode 100755 >index 00000000000..8fa67a3284b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_39860.pl >@@ -0,0 +1,19 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "39860", >+ description => "Add the ExtraContentForXSLTDisplay system preference", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) >+ VALUES ('ExtraContentForXSLTDisplay','','','Enable additional content in XSLT displays','Free') >+ } >+ ); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index f788223be19..878e165b6f9 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -273,6 +273,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ExpireReservesOnHolidays', '1', NULL, 'If false, reserves at a library will not be canceled on days the library is not open.', 'YesNo'), > ('ExportCircHistory', 0, NULL, "Display the export circulation options", 'YesNo' ), > ('ExportRemoveFields','',NULL,'List of fields for non export in circulation.pl (separated by a space)','Free'), >+('ExtraContentForXSLTDisplay','','','ExtraContentForXSLTDisplay','Free'), > ('ExtendedPatronAttributes','1',NULL,'Use extended patron IDs and attributes','YesNo'), > ('FacetLabelTruncationLength','20',NULL,'Specify the facet max length in OPAC','Integer'), > ('FacetMaxCount','20',NULL,'Specify the max facet count for each category','Integer'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >index 8da36fceb14..feee5edbb98 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >@@ -77,6 +77,12 @@ Staff interface: > - pref: XSLTListsDisplay > class: file > - '<br />Options:<ul><li>Enter "<a href="#" class="set_syspref" data-syspref="XSLTListsDisplay" data-value="default">default</a>" for the default stylesheet</li><li>Put a path to define an xslt file</li><li>Put a URL for an external specific stylesheet.</li></ul>If you have multiple stylesheets for different languages the placeholder {langcode} will be replaced with current interface language.' >+ - >+ - "Additional content for the staff interface XSLT displays:" >+ - pref: ExtraContentForXSLTDisplay >+ type: textarea >+ syntax: html >+ class: code > - > - 'Display results in the staff interface using XSLT stylesheet at: ' > - pref: XSLTResultsDisplay >-- >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 39860
:
182054
|
182055
|
182056
|
182057
|
182058
|
182059
|
182230
|
182231
|
182232
|
182233