Project

General

Profile

« Previous | Next » 

Revision 10424

Merge changes from 2.8 branch - added a display of "Role" to the eml-party.xsl stylesheet for Associated Parties

View differences:

lib/style/skins/metacatui/eml-2/eml-party.xsl
89 89
        </div>
90 90
      </xsl:if>
91 91
  </xsl:template>
92
  
93
  <xsl:template match="role" mode="party">
94
      <xsl:param name="partyfirstColStyle"/>
95
      <xsl:if test="normalize-space(.)!=''">
96
        <div class="control-group">
97
        	<label class="control-label">Role</label>
98
        	<div class="controls" >
99
        		
100
        		<xsl:variable name="role" select="." />
101
        		
102
        		<xsl:choose>
103
			        <xsl:when test="$role='principalInvestigator'">
104
			           <xsl:text>Principal Investigator</xsl:text>
105
			        </xsl:when>
106
			         <xsl:when test="$role='collaboratingPrincipalInvestigator'">
107
			           <xsl:text>Collaborating Principal Investigator</xsl:text>
108
			        </xsl:when>
109
			        <xsl:when test="$role='custodianSteward'">
110
			           <xsl:text>Custodian / Steward</xsl:text>
111
			        </xsl:when>
112
			        <xsl:when test="$role='coPrincipalInvestigator'">
113
			           <xsl:text>Co-Principal Investigator</xsl:text>
114
			        </xsl:when>
115
			        <xsl:otherwise>
116
			         	<xsl:value-of select="concat(
117
							  translate(
118
							    substring($role, 1, 1),
119
							    'abcdefghijklmnopqrstuvwxyz',
120
							    'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
121
							  ),
122
							  substring($role,2,string-length($role)-1)
123
							)"/>
124
			        </xsl:otherwise>
125
			     </xsl:choose>
126
        		
127
        	</div>
128
        </div>	
129
      </xsl:if>
130
  </xsl:template>
92 131

  
93 132

  
94 133
  <xsl:template match="positionName" mode="party">

Also available in: Unified diff