Foundry: Additional general tags for displaying properties from a tab of an OrganizationalUnit.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3334 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-04-13 14:18:04 +00:00
parent 653933bb74
commit dab1a9159f
1 changed files with 28 additions and 0 deletions

View File

@ -107,6 +107,34 @@
</xsl:apply-templates> </xsl:apply-templates>
</xsl:template> </xsl:template>
<xsl:template match="content-item-layout//orgaunit-current-tab//tab//show-tab-property">
<xsl:param name="orgaunit-data" tunnel="yes"/>
<xsl:choose>
<xsl:when test="foundry:boolean(./@disable-output-escaping)">
<xsl:value-of disable-output-escaping="yes"
select="$orgaunit-data/*[name() = ./@name]"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$orgaunit-data/*[name() = ./@name]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="content-item-layout//orgaunit-current-tab//tab//show-tab-content">
<xsl:param name="orgaunit-data" tunnel="yes"/>
<xsl:choose>
<xsl:when test="foundry:boolean(./@disable-output-escaping)">
<xsl:value-of disable-output-escaping="yes"
select="$orgaunit-data"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$orgaunit-data"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//addendum"> <xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//addendum">
<xsl:param name="orgaunit-data" tunnel="yes"/> <xsl:param name="orgaunit-data" tunnel="yes"/>