Foundry: Some bugfixes
git-svn-id: https://svn.libreccm.org/ccm/trunk@3573 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
8a14da390a
commit
4a8ee8eb2b
|
|
@ -24,10 +24,29 @@
|
||||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||||
xmlns:foundry="http://foundry.libreccm.org"
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
|
xmlns:terms="http://xmlns.redhat.com/london/terms/1.0"
|
||||||
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
||||||
exclude-result-prefixes="xsl xs bebop cms foundry nav ui"
|
exclude-result-prefixes="xsl xs bebop cms foundry nav terms ui"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
||||||
|
<xsl:template match="content-item-layout//scipublications//assigned-terms">
|
||||||
|
<xsl:variable name="separator">
|
||||||
|
<xsl:value-of select="./@separator"/>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
|
<xsl:for-each select="./domain">
|
||||||
|
<xsl:variable name="domain">
|
||||||
|
<xsl:value-of select="normalize-space(.)"/>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
|
<xsl:if test="$data-tree/terms:assignedTerms">
|
||||||
|
<xsl:value-of select="if(position() < count($data-tree//terms:assignedTerms/terms:term[@domain=$domain]))
|
||||||
|
then concat(./@name, $separator)
|
||||||
|
else ./@name"/>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="content-item-layout//scipublications//authors">
|
<xsl:template match="content-item-layout//scipublications//authors">
|
||||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue