Bugzilla – Attachment 12687 Details for
Bug 8791
OPAC UNIMARC XSLT details : subject with subfield 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8791: OPAC UNIMARC XSLT details: subject with subfield 3
Bug-8791-OPAC-UNIMARC-XSLT-details-subject-with-su.patch (text/plain), 1.85 KB, created by
Frédéric Demians
on 2012-10-04 16:41:36 UTC
(
hide
)
Description:
Bug 8791: OPAC UNIMARC XSLT details: subject with subfield 3
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2012-10-04 16:41:36 UTC
Size:
1.85 KB
patch
obsolete
>From 92fd06a1cbb8f55a8002bc789a6de3675a631646 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 19 Sep 2012 11:45:19 +0200 >Subject: [PATCH] Bug 8791: OPAC UNIMARC XSLT details: subject with subfield 3 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> > >I can reproduce the bug, and confirm that this patch fix it. The issue arises >when $9 come first, and then $3, which is not that usual. >--- > koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl >index 32f8cde..09bd9e0 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl >@@ -214,7 +214,7 @@ > <xsl:variable name="start" select="position()"/> > <xsl:variable name="ends"> > <xsl:for-each select="../marc:subfield[position() > $start]"> >- <xsl:if test="@code=3 or @code=9 or @code=2"> >+ <xsl:if test="@code=9"> > <xsl:variable name="end" select="position() + $start"/> > <xsl:value-of select="$end"/> > <xsl:text>,</xsl:text> >@@ -232,7 +232,7 @@ > </xsl:choose> > </xsl:variable> > <xsl:variable name="display"> >- <xsl:for-each select="../marc:subfield[position() > $start and position() < $end]"> >+ <xsl:for-each select="../marc:subfield[position() > $start and position() < $end and @code!=2 and @code!=3]"> > <xsl:value-of select="."/> > <xsl:if test="not(position()=last())"> > <xsl:text>, </xsl:text> >-- >1.7.11.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 8791
:
12334
| 12687