Bugzilla – Attachment 12334 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]
Proposed patch
0001-Bug-8791-OPAC-UNIMARC-XSLT-details-subject-with-subf.patch (text/plain), 1.58 KB, created by
Fridolin Somers
on 2012-09-19 09:46:25 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2012-09-19 09:46:25 UTC
Size:
1.58 KB
patch
obsolete
>From 8a7d6abaf307d8d555d064b27118e2243878b79c 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 > >--- > .../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.9.5 >
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