Revision 60428
Added by Miriam Baglioni about 3 years ago
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/funders/mestd2db.xml | ||
---|---|---|
12 | 12 |
<SCRIPT> |
13 | 13 |
<TITLE>MESTD to DB</TITLE> |
14 | 14 |
<CODE><![CDATA[ |
15 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
|
15 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:utils="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" version="1.0">
|
|
16 | 16 |
|
17 | 17 |
<xsl:output indent="yes"/> |
18 | 18 |
|
... | ... | |
72 | 72 |
<xsl:value-of select="//column[./@name='END DATE']"/> |
73 | 73 |
</FIELD> |
74 | 74 |
</ROW> |
75 |
|
|
76 |
<xsl:if test="$leadingInstitution"> |
|
77 |
<xsl:variable name="organizationId" |
|
78 |
select="concat($namespacePrefix, '::', utils:md5(normalize-space($leadingInstitution)))"/> |
|
79 |
<ROW table="dsm_organizations"> |
|
80 |
<FIELD name="_dnet_resource_identifier_"> |
|
81 |
<xsl:value-of select="$organizationId"/> |
|
82 |
</FIELD> |
|
83 |
<FIELD name="id"> |
|
84 |
<xsl:value-of select="$organizationId"/> |
|
85 |
</FIELD> |
|
86 |
<FIELD name="legalname"> |
|
87 |
<xsl:value-of select="normalize-space($leadingInstitution)"/> |
|
88 |
</FIELD> |
|
89 |
<FIELD name="collectedfrom"> |
|
90 |
<xsl:value-of select="$varDataSourceId"/> |
|
91 |
</FIELD> |
|
92 |
<FIELD name="provenanceaction" |
|
93 |
>sysimport:crosswalk:entityregistry</FIELD> |
|
94 |
<FIELD name="lastupdate" type="date"> |
|
95 |
<xsl:value-of select="current-dateTime()"/> |
|
96 |
</FIELD> |
|
97 |
</ROW> |
|
98 |
|
|
99 |
<ROW table="project_organization"> |
|
100 |
<FIELD name="_dnet_resource_identifier_"> |
|
101 |
<xsl:value-of select='concat($projectId, "@@", $organizationId)'/> |
|
102 |
</FIELD> |
|
103 |
<FIELD name="project"> |
|
104 |
<xsl:value-of select="$projectId"/> |
|
105 |
</FIELD> |
|
106 |
<FIELD name="resporganization"> |
|
107 |
<xsl:value-of select="$organizationId"/> |
|
108 |
</FIELD> |
|
109 |
|
|
110 |
|
|
111 |
<FIELD name="semanticclass">coordinator</FIELD> |
|
112 |
|
|
113 |
</ROW> |
|
114 |
</xsl:if> |
|
75 | 115 |
</ROWS> |
76 | 116 |
</metadata> |
77 | 117 |
</record> |
Also available in: Unified diff
information regarding institution added