From 2ad0fa83e2074fd255bd90a65510afc8c3d773eb Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 28 Mar 2023 21:56:51 -1000 Subject: [PATCH] Bug 21330: (follow-up) Fix new preference text and place Atomic updated fixed : intranet => OPAC Changed to be more like the one adding AuthorityXSLTOpacResultsDisplay New preference moved to opac.pref --- installer/data/mysql/atomicupdate/bug-21330.pl | 6 ++++-- .../prog/en/modules/admin/preferences/opac.pref | 5 +++++ .../prog/en/modules/admin/preferences/staff_interface.pref | 5 ----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug-21330.pl b/installer/data/mysql/atomicupdate/bug-21330.pl index fb1f231bf0..9c8576139c 100644 --- a/installer/data/mysql/atomicupdate/bug-21330.pl +++ b/installer/data/mysql/atomicupdate/bug-21330.pl @@ -2,14 +2,16 @@ use Modern::Perl; return { bug_number => '21330', - description => 'Add syspref AuthorityXSLTOpacDetailsDisplay', + description => 'Add XSLT for authority details view in OPAC', up => sub { my ($args) = @_; my ($dbh, $out) = @$args{qw(dbh out)}; $dbh->do(q{ INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) - VALUES ('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free') + VALUES ('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority details page in the OPAC','Free') }); + + say $out "Added new system preference 'AuthorityXSLTOpacDetailsDisplay'"; }, }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref index 25796a1a37..04d6cc39d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -106,6 +106,11 @@ OPAC: - pref: AuthorityXSLTOpacResultsDisplay class: file - '
Options:If you have multiple stylesheets for: