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:

wellcometrust_2_db.xml
92 92
							<FIELD name="collectedfrom">
93 93
								<xsl:value-of select="$varDataSourceId"/>
94 94
							</FIELD>
95
							<FIELD name="optional1">
96
								<xsl:value-of select="concat(.//Grant/Amount, ' ', .//Grant/Amount/@Currency)"/>
97
							</FIELD>
95
							 <xsl:if test=".//Grant/Abstract">
96
                                <FIELD name="summary">
97
                                    <xsl:value-of select=".//Grant/Abstract"/>
98
                                </FIELD>
99
                            </xsl:if>
100
                            <xsl:if test=".//Grant/Amount">
101
                                <FIELD name="fundedamount" type="float">
102
                                    <xsl:value-of select=".//Grant/Amount"/>
103
                                </FIELD>
104
                                <FIELD name="currency">
105
                                    <xsl:value-of select=".//Grant/Amount/@Currency"/>
106
                                </FIELD>
107
                            </xsl:if>
98 108
							<xsl:if test="string-length(normalize-space(.//Grant/Alias[1]/text())) > 0">
99 109
								<xsl:variable name="projectAlias">
100 110
									<xsl:call-template name="getJson">

Also available in: Unified diff