From c5158f39799d55469d0b0d5962311c1338662bfa Mon Sep 17 00:00:00 2001 From: Lucas Gass 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 - '
Options: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