From edd6d7d066167d632573d177285f659711113a9c 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 Signed-off-by: Thibault Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- 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 dbb3095010..04bfe058ca 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:
  • Empty. No XSLT will be applied (default)
  • Enter a path to a custom XSLT file.
  • Enter a URL for an external stylesheet.
If you have multiple stylesheets for:
  • different languages: use the placeholder {langcode} - this will be replaced with the current interface language
  • authority types: use the placeholder {authtypecode} - this will be replaced with the authority type code' + - + - 'Display authority details in the OPAC using the XSLT stylesheet at: ' + - pref: AuthorityXSLTOpacDetailsDisplay + class: file + - '
    Options:
    • Enter a path to a custom XSLT file.
    • Enter a URL for an external stylesheet.
    If you have multiple stylesheets for:
    • different languages: use the placeholder {langcode} - this will be replaced with the current interface language
    • authority types: use the placeholder {authtypecode} - this will be replaced with the authority type code' - - pref: OpacNoItemTypeImages default: 0 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 d557b16346..0e5bb27f4c 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 @@ -1,10 +1,5 @@ Staff interface: Appearance: - - - - 'Display authority details in the OPAC using the XSLT stylesheet at: ' - - pref: AuthorityXSLTOpacDetailsDisplay - class: file - - '
      Options:
      • Enter a path to a custom XSLT file.
      • Enter a URL for an external stylesheet.
      If you have multiple stylesheets for:
      • different languages: use the placeholder {langcode} - this will be replaced with the current interface language
      • authority types: use the placeholder {authtypecode} - this will be replaced with the authority type code' - - 'Display authority results in the staff interface using XSLT stylesheet at: ' - pref: AuthorityXSLTResultsDisplay -- 2.39.5