Bug 8791: OPAC UNIMARC XSLT details: subject with subfield 3
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. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
ebfe2b0cc7
commit
e7b91d6a82
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue