Bugzilla – Attachment 148855 Details for
Bug 21330
Add XSLT for authority detail page in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21330: (follow-up) Fix new preference text and place
Bug-21330-follow-up-Fix-new-preference-text-and-pl.patch (text/plain), 4.37 KB, created by
Fridolin Somers
on 2023-03-29 07:59:34 UTC
(
hide
)
Description:
Bug 21330: (follow-up) Fix new preference text and place
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2023-03-29 07:59:34 UTC
Size:
4.37 KB
patch
obsolete
>From 2ad0fa83e2074fd255bd90a65510afc8c3d773eb Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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 > - '<br />Options:<ul><li>Empty. No XSLT will be applied (<strong>default</strong>)</li><li>Enter a path to a custom XSLT file.</li><li>Enter a URL for an external stylesheet.</li></ul>If you have multiple stylesheets for: <ul><li>different languages: use the placeholder {langcode} - this will be replaced with the current interface language</li><li>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 >+ - '<br />Options:<ul><li>Enter a path to a custom XSLT file.</li><li>Enter a URL for an external stylesheet.</li></ul>If you have multiple stylesheets for: <ul><li>different languages: use the placeholder {langcode} - this will be replaced with the current interface language</li><li>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 >- - '<br />Options:<ul><li>Enter a path to a custom XSLT file.</li><li>Enter a URL for an external stylesheet.</li></ul>If you have multiple stylesheets for: <ul><li>different languages: use the placeholder {langcode} - this will be replaced with the current interface language</li><li>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.0
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 21330
:
130208
|
130224
|
130231
|
130235
|
130276
|
138515
|
140333
|
140408
|
140409
|
148853
|
148854
|
148855
|
148969
|
148970
|
148971
|
149366
|
149367
|
149368
|
149369