Project

General

Profile

« Previous | Next » 

Revision 57276

Transformation rules modified to consider also funded amount and summary for the projects. Not all the rules consider both the updates (not all the funders provide both funded amount and summary for the project) ref #4965

View differences:

fwf_2_db.xml
76 76
							<FIELD name="keywords">
77 77
								<xsl:value-of select=".//column[@name='keywords']"/>
78 78
							</FIELD>
79
							<FIELD name="optional1">
80
								<xsl:variable name="grantAmount" select=".//column[@name='grants awarded']"/>
81
								<xsl:variable name="tmp" select="substring(normalize-space($grantAmount),1,1)"/>
82
								<xsl:value-of select="concat($tmp,' ',substring-after($grantAmount,$tmp))"/>
83
							</FIELD>
79
							<FIELD name="fundedamount" type="float">
80
                                <xsl:variable name="grantAmount" select=".//column[@name='grants awarded']"/>
81
                                <xsl:variable name="tmp" select="substring(normalize-space($grantAmount),1,1)"/>
82
                                <xsl:value-of select="translate(substring-after($grantAmount,$tmp),',','')"/>
83
                            </FIELD>
84
                            <FIELD name="currency">
85
                                <xsl:value-of select="string('EUR')"/>
86
                            </FIELD>
84 87

  
88

  
85 89
							<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
86 90
							<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
87 91
							<FIELD name="collectedfrom">
......
137 141

  
138 142
								 <FIELD name="lastupdate" type="date"><xsl:value-of select="current-dateTime()"/></FIELD>
139 143
							</ROW>
140
						</xsl:if>
141
						<xsl:if test="string-length($organizationId) &gt; 0">
144
						<!--</xsl:if>
145
						<xsl:if test="string-length($organizationId) &gt; 0">-->
142 146
							<ROW table="project_organization">
143 147
								<FIELD name="_dnet_resource_identifier_">
144 148
									<xsl:value-of select="concat($projectID, '@@', concat($namespacePrefix, '::',$organizationId))"/>

Also available in: Unified diff