Bugzilla – Attachment 106666 Details for
Bug 25961
Add hooks for plugins to inject variables to XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[DO NOT PUSH] Bug 25961: Sample usage of the OPAC XSLT variables hooks
DO-NOT-PUSH-Bug-25961-Sample-usage-of-the-OPAC-XSL.patch (text/plain), 2.24 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-07-08 20:20:20 UTC
(
hide
)
Description:
[DO NOT PUSH] Bug 25961: Sample usage of the OPAC XSLT variables hooks
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-07-08 20:20:20 UTC
Size:
2.24 KB
patch
obsolete
>From d270b52fc6db0d8c6b6711e2f2d28d24d570e3a8 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 8 Jul 2020 17:12:09 -0300 >Subject: [PATCH] [DO NOT PUSH] Bug 25961: Sample usage of the OPAC XSLT > variables hooks > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 3 +++ > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 2 ++ > 2 files changed, 5 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index afaa37bcd56..58dd9b91130 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -127,9 +127,12 @@ > </h2> > </xsl:if> > >+ <xsl:variable name="nice_message" select="marc:variables/marc:variable[@name='nice_message']" /> >+ > <!--Bug 13381 --> > <xsl:if test="marc:datafield[@tag=245]"> > <h2 class="title" property="name"> >+ <xsl:value-of select="$nice_message"/><xsl:text> </xsl:text> > <xsl:for-each select="marc:datafield[@tag=245]"> > <xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">a</xsl:with-param> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 6ef7dad123b..0a1f95a3a46 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -421,7 +421,9 @@ > </xsl:attribute> > <xsl:attribute name="class"><xsl:value-of select="'title'" /></xsl:attribute> > >+ <xsl:variable name="nice_message" select="marc:variables/marc:variable[@name='nice_message']" /> > <xsl:if test="marc:datafield[@tag=245]"> >+ <xsl:value-of select="$nice_message"/><xsl:text> </xsl:text> > <xsl:for-each select="marc:datafield[@tag=245]"> > <xsl:call-template name="subfieldSelect"> > <xsl:with-param name="codes">a</xsl:with-param> >-- >2.27.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 25961
:
106666
|
106667
|
106832
|
106833
|
106954
|
106955
|
107477