From db0e7b0fbec48436b599026e611fde0ac89c007c Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 7 Oct 2022 11:12:32 +0000 Subject: [PATCH] Bug 30036: (QA follow-up) Move system preference to OPAC tab * Moves the AuthorityXSLTOpacResultsDisplay from staff interface to OPAC tab * Fixes some capitalization opac in the database pref description Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/bug-30036.pl | 2 +- installer/data/mysql/mandatory/sysprefs.sql | 2 +- .../prog/en/modules/admin/preferences/opac.pref | 5 +++++ .../prog/en/modules/admin/preferences/staff_interface.pref | 7 +------ 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug-30036.pl b/installer/data/mysql/atomicupdate/bug-30036.pl index 13a97986e3..de0c91d710 100644 --- a/installer/data/mysql/atomicupdate/bug-30036.pl +++ b/installer/data/mysql/atomicupdate/bug-30036.pl @@ -9,7 +9,7 @@ return { $dbh->do(q{ INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) - VALUES ('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page display on opac','Free') + VALUES ('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page in the OPAC','Free') }); }, }; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 0cca336101..6ef1015d03 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -70,7 +70,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('AuthorityMergeLimit','50',NULL,'Maximum number of biblio records updated immediately when an authority record has been modified.','integer'), ('AuthorityMergeMode','loose','loose|strict','Authority merge mode','Choice'), ('AuthoritySeparator','--','10','Used to separate a list of authorities in a display. Usually --','free'), -('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page display on opac','Free'), +('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page in the OPAC','Free'), ('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free'), ('AuthSuccessLog','0',NULL,'If enabled, log successful authentications','YesNo'), ('autoBarcode','OFF','incremental|annual|hbyymmincr|EAN13|OFF','Used to autogenerate a barcode: incremental will be of the form 1, 2, 3; annual of the form 2007-0001, 2007-0002; hbyymmincr of the form HB08010001 where HB=Home Branch','Choice'), 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 18c74a709b..e66983e276 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 @@ -101,6 +101,11 @@ OPAC: - pref: OPACXSLTDetailsDisplay class: file - '
Options:
  • Enter "default" for the default stylesheet
  • Put a path to define an xslt file
  • Put a URL for an external specific stylesheet.
If you have multiple stylesheets for different languages the placeholder {langcode} will be replaced with current interface language.' + - + - 'Display authority results in the OPAC using the XSLT stylesheet at: ' + - pref: AuthorityXSLTOpacResultsDisplay + 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 193e7e5388..4279ddf828 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: +gStaff interface: Appearance: - - - - 'Display authority results in the OPAC using the XSLT stylesheet at: ' - - pref: AuthorityXSLTOpacResultsDisplay - 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