XSL base style for the project content type
git-svn-id: https://svn.libreccm.org/ccm/trunk@278 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
1b7d0b1d8b
commit
a933638e6e
|
|
@ -27,7 +27,7 @@ object type Project extends ContentPage {
|
||||||
String[0..1] projectname = ct_projects.projectname VARCHAR(512);
|
String[0..1] projectname = ct_projects.projectname VARCHAR(512);
|
||||||
String[0..1] funding = ct_projects.funding VARCHAR(2048);
|
String[0..1] funding = ct_projects.funding VARCHAR(2048);
|
||||||
String[0..1] projectDescription = ct_projects.projectdescription VARCHAR(2048);
|
String[0..1] projectDescription = ct_projects.projectdescription VARCHAR(2048);
|
||||||
Project2OrgaUnit[0..n] organizationalUnits = join ct_projects.project_id to ct_project2orgaunits.owner_id;
|
//Project2OrgaUnit[0..n] organizationalUnits = join ct_projects.project_id to ct_project2orgaunits.owner_id;
|
||||||
Date[0..1] beginDate = ct_projects.beginDate DATE;
|
Date[0..1] beginDate = ct_projects.beginDate DATE;
|
||||||
Date[0..1] endDate = ct_projects.endDate DATE;
|
Date[0..1] endDate = ct_projects.endDate DATE;
|
||||||
//boolean finished = ct_projects.finished BOOLEAN;
|
//boolean finished = ct_projects.finished BOOLEAN;
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,11 @@
|
||||||
extends="com.arsdigita.cms.ContentPage">
|
extends="com.arsdigita.cms.ContentPage">
|
||||||
|
|
||||||
<xrd:associations rule="include">
|
<xrd:associations rule="include">
|
||||||
<xrd:property name="/object/Project2OrgaUnit"/>
|
<xrd:property name="/object/units"/>
|
||||||
<xrd:property name="/object/Project2OrgaUnit/targetItem"/>
|
<xrd:property name="/object/units/targetItem"/>
|
||||||
<xrd:property name="/object/Project2Person"/>
|
<xrd:property name="/object/project2Person"/>
|
||||||
<xrd:property name="/object/Project2Person/targetItem"/>
|
<xrd:property name="/object/project2Person/task"/>
|
||||||
|
<xrd:property name="/object/project2Person/targetItem"/>
|
||||||
</xrd:associations>
|
</xrd:associations>
|
||||||
|
|
||||||
</xrd:adapter>
|
</xrd:adapter>
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,49 @@
|
||||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
|
|
||||||
<!-- ToDo: Add stylesheet here -->
|
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Project']"
|
||||||
|
mode="cms:CT_graphics"
|
||||||
|
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_Project">
|
||||||
|
<h2>
|
||||||
|
<xsl:value-of select="./projectname"/>
|
||||||
|
</h2>
|
||||||
|
<div class="projectDescription">
|
||||||
|
<xsl:value-of select="./projectDescription"
|
||||||
|
disable-output-escaping="yes" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<xsl:value-of select="./funding"
|
||||||
|
disable-output-escaping="yes" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="projectTeam">
|
||||||
|
<xsl:for-each select="project2Person">
|
||||||
|
<li>
|
||||||
|
<a>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:text>/redirect?oid=</xsl:text>
|
||||||
|
<xsl:value-of select="./targetItem/@oid"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:value-of select="./targetItem/titlePre"/> <xsl:value-of select="./targetItem/givenname"/> <xsl:value-of select="./targetItem/surname"/> <xsl:value-of select="./targetItem/titlePost"/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</xsl:for-each>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<xsl:for-each select="units">
|
||||||
|
<li>
|
||||||
|
<a>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:text>/redirect?oid=</xsl:text>
|
||||||
|
<xsl:value-of select="./targetItem/@oid" />
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:value-of select="./targetItem/organizationalunitName"/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</xsl:for-each>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
Loading…
Reference in New Issue