Bugfix for Foundry: The if-collected-volume and if-proceedings tags put the collected volume/proceedings item into the context, therefore it was not possible to use data from an article or paper in the these. The put the collected volume/procedings into the

context use the collected-volume or the proceedings tag.


git-svn-id: https://svn.libreccm.org/ccm/trunk@4314 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2016-09-23 08:43:34 +00:00
parent 33af4f199a
commit 60ae856a4b
1 changed files with 24 additions and 8 deletions

View File

@ -661,16 +661,24 @@
select="foundry:generate-contentitem-link($contentitem-tree/journal/@oid)"/> select="foundry:generate-contentitem-link($contentitem-tree/journal/@oid)"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:template> </xsl:template>
<xsl:template match="content-item-layout//scipublications//if-collected-volume"> <xsl:template match="content-item-layout//scipublications//collected-volume">
<xsl:param name="contentitem-tree" tunnel="yes"/> <xsl:param name="$contentitem-tree" tunnel="yes" />
<xsl:if test="$contentitem-tree/collectedVolume"> <xsl:if test="$contentitem-tree/collectedVolume">
<xsl:apply-templates> <xsl:apply-templates>
<xsl:with-param name="contentitem-tree" <xsl:with-param name="contentitem-tree"
tunnel="yes" tunnel="yes"
select="$contentitem-tree/collectedVolume"/> select="$contentitem-tree/collectedVolume"/>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:if>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//if-collected-volume">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/collectedVolume">
<xsl:apply-templates />
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
@ -743,8 +751,8 @@
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="content-item-layout//scipublications//if-proceedings"> <xsl:template match="content-item-layout//scipublications//proceedings">
<xsl:param name="contentitem-tree" tunnel="yes"/> <xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/proceedings"> <xsl:if test="$contentitem-tree/proceedings">
@ -756,6 +764,14 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="content-item-layout//scipublications//if-proceedings">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/proceedings">
<xsl:apply-templates />
</xsl:if>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//articles"> <xsl:template match="content-item-layout//scipublications//articles">
<xsl:param name="contentitem-tree" tunnel="yes"/> <xsl:param name="contentitem-tree" tunnel="yes"/>
@ -884,4 +900,4 @@
<xsl:value-of select="$export-formatname"/> <xsl:value-of select="$export-formatname"/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>