Revision 57310
Added by Miriam Baglioni over 4 years ago
cordah2020_2_db.xml | ||
---|---|---|
88 | 88 |
<FIELD name="collectedfrom"> |
89 | 89 |
<xsl:value-of select="$varDataSourceId"/> |
90 | 90 |
</FIELD> |
91 |
<FIELD name="contracttypeclass">
|
|
91 |
<FIELD name="contracttype"> |
|
92 | 92 |
<xsl:value-of select="./ProjectTOACode"/> |
93 | 93 |
</FIELD> |
94 | 94 |
<FIELD name="contracttypescheme">ec:h2020toas</FIELD> |
95 |
<FIELD name="contracttypename"> |
|
96 |
<xsl:value-of select="./ProjectTOADescr"/> |
|
97 |
</FIELD> |
|
95 | 98 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
96 | 99 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
97 | 100 |
<FIELD name="websiteurl"> |
... | ... | |
241 | 244 |
<FIELD name="resporganization"> |
242 | 245 |
<xsl:value-of select="$organizationId"/> |
243 | 246 |
</FIELD> |
244 |
<FIELD name="contribution" type="float"> |
|
247 |
<xsl:if test="number(./ParticipantRequestedEUContrib)"> |
|
248 |
<FIELD name="contribution" type="float"> |
|
245 | 249 |
<xsl:value-of select="./ParticipantRequestedEUContrib"/> |
246 | 250 |
</FIELD> |
251 |
</xsl:if> |
|
247 | 252 |
<xsl:choose> |
248 | 253 |
<xsl:when test="./ParticipantOrder = 1"> |
249 | 254 |
<FIELD name="semanticclass">coordinator</FIELD> |
Also available in: Unified diff
updated transformation to match #4969 and added if statement to handle cases where the contribution for the organization is not a valid number (i.e. the value is simply '.'). In cases like this one generally the contribution for the organization in 0. In the transformation rule when the value to be transformed is not a number (that is a Natural number) the contribution element is not produced