Project

General

Profile

« Previous | Next » 

Revision 53108

Fixed orgid generation

View differences:

modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/funders/fwf_2_db.xml
38 38
					<xsl:variable name="startDate" select=".//column[@name='from']"/>
39 39
					<xsl:variable name="endDate" select=".//column[@name='till']"/>
40 40
					<xsl:variable name="dateFormat" select="string('yyyy-MM-dd')"/>
41
					<xsl:variable name="organizationId" select="concat($namespacePrefix, '::', fwf:getMd5(normalize-space(.//column[@name='research place and institute'])))"/>
41
					<xsl:variable name="organizationId" select="fwf:getMd5(normalize-space(.//column[@name='research place and institute']))"/>
42 42
					<xsl:variable name="fundingID">
43 43
						<xsl:choose>
44 44
							<xsl:when test="string-length($fundingCode) &gt; 0">
......
111 111
							<ROW table="dsm_organizations">
112 112

  
113 113
								<FIELD name="_dnet_resource_identifier_">
114
									<xsl:value-of select="$organizationId"/>
114
									<xsl:value-of select="concat($namespacePrefix, '::',$organizationId)"/>
115 115
								</FIELD>
116 116
								<FIELD name="id">
117
									<xsl:value-of select="$organizationId"/>
117
									<xsl:value-of select="concat($namespacePrefix, '::',$organizationId)"/>
118 118
								</FIELD>
119 119
								<FIELD name="legalname">
120 120
									<xsl:variable name="orgName" select="normalize-space(.//column[@name='research place and institute'])"/>
......
138 138
						<xsl:if test="string-length($organizationId) &gt; 0">
139 139
							<ROW table="project_organization">
140 140
								<FIELD name="_dnet_resource_identifier_">
141
									<xsl:value-of select='concat($projectID, "@@", $organizationId)'/>
141
									<xsl:value-of select='concat($projectID, "@@", concat($namespacePrefix, '::',$organizationId))'/>
142 142
								</FIELD>
143 143
								<FIELD name="project">
144 144
									<xsl:value-of select="$projectID"/>
145 145
								</FIELD>
146 146
								<FIELD name="resporganization">
147
									<xsl:value-of select="$organizationId"/>
147
									<xsl:value-of select="concat($namespacePrefix, '::',$organizationId)"/>
148 148
								</FIELD>
149 149
								<FIELD name="semanticclass">participant</FIELD>
150 150

  

Also available in: Unified diff