Foundry: More support for Orga types
git-svn-id: https://svn.libreccm.org/ccm/trunk@3336 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
dab1a9159f
commit
ab1a8e89a5
|
|
@ -785,4 +785,11 @@
|
|||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:function name="foundry:generate-contentitem-link">
|
||||
<xsl:param name="oid"/>
|
||||
|
||||
<xsl:sequence select="concat($context-prefix, '/redirect/?oid=', $oid)"/>
|
||||
</xsl:function>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
|||
|
|
@ -56,4 +56,25 @@
|
|||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//*[starts-with[name(), 'orgaunit')]//scidepartment-projects">
|
||||
<xsl:param name="orgaunit-data" tunnel="yes"/>
|
||||
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="projects" tunnel="yes" select="."/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//*[starts-with[name(), 'orgaunit')]//scidepartment-projects//project">
|
||||
<xsl:param name="projects" tunnel="yes"/>
|
||||
|
||||
<xs:variable name="layout-tree" select="./*"/>
|
||||
|
||||
<!-- ToDo: Call listview -->
|
||||
<xsl:for-each select="$projects/project">
|
||||
<xsl:apply-templates select="$layout-tree">
|
||||
<xsl:with-param name="project" select="."/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -66,5 +66,45 @@
|
|||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//sciinstitute-departments">
|
||||
<xsl:param name="orgaunit-data" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="$orgaunit-data/departments">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="departments"
|
||||
tunnel="yes"
|
||||
select="$orgaunit-data/departments"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//sciinstitute-departments//department">
|
||||
<xsl:param name="departments" tunnel="yes"/>
|
||||
|
||||
<xsl:variable name="layout-tree" select="./*"/>
|
||||
|
||||
<xsl:for-each select="$departments/department">
|
||||
<xsl:apply-templates select="$layout-tree">
|
||||
<xsl:with-param name="oid" tunnel="yes" select="./@oid"/>
|
||||
<xsl:with-param name="title" tunnel="yes" select="./title"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//sciinstitute-departments//department//department-link">
|
||||
<xsl:param name="oid" tunnel="yes"/>
|
||||
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="href"
|
||||
tunnel="yes"
|
||||
select="foundry:generate-contentitem-link($oid)"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//*[starts-with(name(), 'orgaunit')]//sciinstitute-departments//department//department-name">
|
||||
<xsl:param name="title" tunnel="yes"/>
|
||||
|
||||
<xsl:value-of select="$title"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Reference in New Issue