Bugzilla – Attachment 107477 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: [DO NOT PUSH] Sample usage of the OPAC XSLT variables hooks
Bug-25961-DO-NOT-PUSH-Sample-usage-of-the-OPAC-XSL.patch (text/plain), 2.35 KB, created by
Jonathan Druart
on 2020-07-29 08:10:58 UTC
(
hide
)
Description:
Bug 25961: [DO NOT PUSH] Sample usage of the OPAC XSLT variables hooks
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-07-29 08:10:58 UTC
Size:
2.35 KB
patch
obsolete
>From 42d3099935b3063036e186ef78d37e18d886c7c8 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: [DO NOT PUSH] 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 8286a94fc4..63b810ed9c 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