Some enhencements/bug fixes for Foundry

git-svn-id: https://svn.libreccm.org/ccm/trunk@3905 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2016-03-04 13:01:34 +00:00
parent 4358141570
commit 18f8d590d4
2 changed files with 38 additions and 12 deletions

View File

@ -365,6 +365,21 @@
</xsl:if>
</xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//*[ends-with(name(), 'members')]//member//if-member-status-is">
<xsl:param name="member-status" tunnel="yes"/>
<xsl:if test="$member-status = ./@status">
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
<p>

View File

@ -149,6 +149,9 @@
<xsl:when test="$orgaunit-data/shortDesc">
<xsl:value-of select="$orgaunit-data/shortDesc"/>
</xsl:when>
<xsl:when test="$orgaunit-data/shortDescription">
<xsl:value-of select="$orgaunit-data/shortDescription"/>
</xsl:when>
</xsl:choose>
</xsl:template>
@ -241,7 +244,7 @@
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//funding">
<xsl:param name="orgaunit-data" tunnel="yes"/>
<xsl:value-of select="$orgaunit-data/funding"/>
<xsl:value-of disable-output-escaping="yes" select="$orgaunit-data/funding"/>
</xsl:template>
<foundry:doc section="user" type="template-tag">
@ -320,7 +323,8 @@
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//member">
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//member
| content-item-layout//*[starts-with(name(), 'orgaunit')]//members//project-member">
<xsl:param name="members-datatree" tunnel="yes"/>
<xsl:param name="class-first" select="''"/>
<xsl:param name="class-last" select="''"/>
@ -351,6 +355,12 @@
</xsl:when>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="member-role"
tunnel="yes"
select="./@role"/>
<xsl:with-param name="member-status"
tunnel="yes"
select="./@status"/>
</xsl:apply-templates>
<xsl:if test="position() != last()">
<xsl:value-of select="$separator"/>
@ -365,7 +375,7 @@
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//member//surname">
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//project-member//surname">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="string-length($contentitem-tree/surname) &gt; 0">
@ -386,7 +396,7 @@
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//member//givenname">
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//project-member//givenName">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="string-length($contentitem-tree/givenName) &gt; 0">
@ -411,7 +421,7 @@
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//member//titlePre">
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//project-member//titlePre">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="string-length($contentitem-tree/titlePre) &gt; 0">
@ -433,7 +443,7 @@
</p>
</foundry:doc-desc>
</foundry:doc>
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//member//titlePost">
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//members//project-member//titlePost">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="string-length($contentitem-tree/titlePost) &gt; 0">
@ -446,4 +456,5 @@
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>