Bugzilla – Attachment 106954 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]
Bug 25961: Sample usage of the OPAC XSLT variables hooks
Bug-25961-Sample-usage-of-the-OPAC-XSLT-variables-.patch (text/plain), 2.34 KB, created by
Martin Renvoize (ashimema)
on 2020-07-16 14:50:42 UTC
(
hide
)
Description:
Bug 25961: Sample usage of the OPAC XSLT variables hooks
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-07-16 14:50:42 UTC
Size:
2.34 KB
patch
obsolete
>From 3e8f3b5f52998b58a31ad264c9c334976a68ca75 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] Bug 25961: Sample usage of the OPAC XSLT variables hooks > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../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 afaa37bcd5..58dd9b9113 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 6ef7dad123..0a1f95a3a4 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.20.1
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