Project

General

Profile

« Previous | Next » 

Revision 57756

update of the TR for corda, fwf, and arc

View differences:

modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/funders/cordah2020_2_db.xml
88 88
							<FIELD name="collectedfrom">
89 89
								<xsl:value-of select="$varDataSourceId"/>
90 90
							</FIELD>
91
							<FIELD name="contracttype">
91
							<FIELD name="contracttypeclass">
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
<!--							<FIELD name="contracttypename">-->
96
<!--								<xsl:value-of select="./ProjectTOADescr"/>-->
97
<!--							</FIELD>-->
98 98
							<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
99 99
							<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
100 100
							<FIELD name="websiteurl">
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/funders/arc_2_db.xml
18 18

  
19 19
	<xsl:output indent="yes"/>
20 20

  
21
	<xsl:param name="varDatasourceId"/>
21
	<xsl:param name="varDataSourceId"/>
22 22

  
23 23
	<xsl:template match="/">
24 24
		<record>
......
80 80
                                <xsl:value-of select="//ands:description[@type='brief']"/>
81 81
                            </FIELD>
82 82
                            <xsl:if test="//ands:description[@type='fundingAmount']">
83
                            	<xsl:variable name="fundedamount" select="translate(//ands:description[@type='fundingAmount'],'$,','')"/>
84
                            	<xsl:if test="numeric($fundedamount)">
83 85
                                <FIELD name="fundedamount" type="float">
84 86
                                    <xsl:value-of select="translate(//ands:description[@type='fundingAmount'],'$,','')"/>
85 87
                                </FIELD>
86 88
                                <FIELD name="currency">
87 89
                                    <xsl:value-of select="string('AUD')"/>
88 90
                                </FIELD>
91
                                </xsl:if>
89 92
                            </xsl:if>
90 93
							<FIELD name="collectedfrom">
91
								<xsl:value-of select="$varDatasourceId"/>
94
								<xsl:value-of select="$varDataSourceId"/>
92 95
							</FIELD>
93 96
							<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
94 97
							<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/funders/fwf_2_db.xml
15 15
					<![CDATA[
16 16
<xsl:stylesheet xmlns:fwf="eu.dnetlib.data.transform.xml.FWFXsltFunctions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
17 17

  
18
	<xsl:param name="varDatasourceId"/>
18
	<xsl:param name="varDataSourceId"/>
19 19
	<xsl:variable name="namespacePrefix" select="string('fwf_________')"/>
20 20

  
21 21
	<xsl:variable name="funderID" select="concat($namespacePrefix, '::FWF')"/>
......
89 89
							<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
90 90
							<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
91 91
							<FIELD name="collectedfrom">
92
								<xsl:value-of select="$varDatasourceId"/>
92
								<xsl:value-of select="$varDataSourceId"/>
93 93
							</FIELD>
94 94
							<FIELD name="lastupdate" type="date"><xsl:value-of select="current-dateTime()"/></FIELD>
95 95
						</ROW>
......
135 135
									<xsl:value-of select="string('AT')"/>
136 136
								</FIELD>
137 137
								<FIELD name="collectedfrom">
138
									<xsl:value-of select="$varDatasourceId"/>
138
									<xsl:value-of select="$varDataSourceId"/>
139 139
								</FIELD>
140 140
								<FIELD name="provenanceaction">sysimport:crosswalk:entityregistry</FIELD>
141 141

  

Also available in: Unified diff