1 |
52327
|
alessia.ba
|
<RESOURCE_PROFILE>
|
2 |
|
|
<HEADER>
|
3 |
52349
|
alessia.ba
|
<RESOURCE_IDENTIFIER value="dc7d4798-a56b-496e-b330-7f98b90cb742_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
|
4 |
52327
|
alessia.ba
|
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
|
5 |
|
|
<RESOURCE_KIND value="TransformationRuleDSResources"/>
|
6 |
|
|
<RESOURCE_URI value=""/>
|
7 |
|
|
<DATE_OF_CREATION value="2018-06-04T11:15:30+00:00"/>
|
8 |
|
|
</HEADER>
|
9 |
|
|
<BODY>
|
10 |
|
|
<CONFIGURATION>
|
11 |
|
|
<IMPORTED/>
|
12 |
|
|
<SCRIPT>
|
13 |
|
|
<TITLE>TARA to DB</TITLE>
|
14 |
|
|
<CODE>
|
15 |
53218
|
miriam.bag
|
<![CDATA[
|
16 |
35960
|
alessia.ba
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
17 |
48139
|
alessia.ba
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
18 |
52327
|
alessia.ba
|
exclude-result-prefixes="xs" version="2.0">
|
19 |
32054
|
michele.ar
|
|
20 |
52370
|
miriam.bag
|
<xsl:param name="varDataSourceId"/>
|
21 |
|
|
<xsl:variable name="namespacePrefix" select="string('taraexp_____')"/>
|
22 |
35960
|
alessia.ba
|
|
23 |
48139
|
alessia.ba
|
<xsl:template match="/">
|
24 |
39877
|
michele.ar
|
|
25 |
48139
|
alessia.ba
|
<xsl:variable name="funderId" select="string('taraexp_____::tara')"/>
|
26 |
39877
|
michele.ar
|
|
27 |
49668
|
alessia.ba
|
<record>
|
28 |
42988
|
claudio.at
|
|
29 |
48139
|
alessia.ba
|
<xsl:copy-of select=".//*[local-name()='header']"/>
|
30 |
42988
|
claudio.at
|
|
31 |
48139
|
alessia.ba
|
<metadata>
|
32 |
|
|
<ROWS>
|
33 |
|
|
<xsl:variable name="projectId" select="concat($namespacePrefix, '::', normalize-space(.//column[@name='PROJECT ID']))"/>
|
34 |
|
|
<xsl:variable name="startDate" select=".//column[@name='START DATE']"/>
|
35 |
|
|
<xsl:variable name="endDate" select=".//column[@name='END DATE']"/>
|
36 |
43615
|
alessia.ba
|
|
37 |
48139
|
alessia.ba
|
<ROW table="projects">
|
38 |
|
|
<FIELD name="_dnet_resource_identifier_">
|
39 |
|
|
<xsl:value-of select="$projectId"/>
|
40 |
|
|
</FIELD>
|
41 |
|
|
<FIELD name="id">
|
42 |
|
|
<xsl:value-of select="$projectId"/>
|
43 |
|
|
</FIELD>
|
44 |
|
|
<FIELD name="code">
|
45 |
|
|
<xsl:value-of select=".//column[@name='PROJECT ID']"/>
|
46 |
|
|
</FIELD>
|
47 |
|
|
<FIELD name="title">
|
48 |
|
|
<xsl:value-of select=".//column[@name='PROJECT TITLE']"/>
|
49 |
|
|
</FIELD>
|
50 |
|
|
<FIELD name="jsonextrainfo">
|
51 |
|
|
<xsl:value-of select=".//column[@name='DM KEYWORDS']"/>
|
52 |
|
|
</FIELD>
|
53 |
|
|
<FIELD name="startdate" type="date" format="yyyy">
|
54 |
|
|
<xsl:value-of select="$startDate"/>
|
55 |
|
|
</FIELD>
|
56 |
|
|
<FIELD name="enddate" type="date" format="yyyy">
|
57 |
|
|
<xsl:value-of select="$endDate"/>
|
58 |
|
|
</FIELD>
|
59 |
|
|
<FIELD name="collectedfrom">
|
60 |
52372
|
miriam.bag
|
<xsl:value-of select="$varDataSourceId"/>
|
61 |
48139
|
alessia.ba
|
</FIELD>
|
62 |
|
|
<FIELD name="provenanceactionclass">sysimport:crosswalk:entityregistry</FIELD>
|
63 |
52337
|
miriam.bag
|
<FIELD name="lastupdate" type="date"><xsl:value-of select="current-dateTime()"/></FIELD>
|
64 |
48139
|
alessia.ba
|
</ROW>
|
65 |
42988
|
claudio.at
|
|
66 |
48139
|
alessia.ba
|
<ROW table="project_fundingpath">
|
67 |
|
|
<FIELD name="_dnet_resource_identifier_">
|
68 |
|
|
<xsl:value-of select="concat($funderId, '@@', $projectId)"/>
|
69 |
|
|
</FIELD>
|
70 |
|
|
<FIELD name="funding">
|
71 |
|
|
<xsl:value-of select="$funderId"/>
|
72 |
|
|
</FIELD>
|
73 |
|
|
<FIELD name="project">
|
74 |
|
|
<xsl:value-of select="$projectId"/>
|
75 |
|
|
</FIELD>
|
76 |
|
|
<FIELD name="startdate" type="date" format="yyyy">
|
77 |
|
|
<xsl:value-of select="$startDate"/>
|
78 |
|
|
</FIELD>
|
79 |
|
|
<FIELD name="enddate" type="date" format="yyyy">
|
80 |
|
|
<xsl:value-of select="$endDate"/>
|
81 |
|
|
</FIELD>
|
82 |
|
|
</ROW>
|
83 |
42988
|
claudio.at
|
|
84 |
48139
|
alessia.ba
|
</ROWS>
|
85 |
|
|
</metadata>
|
86 |
|
|
</record>
|
87 |
|
|
</xsl:template>
|
88 |
39877
|
michele.ar
|
|
89 |
32054
|
michele.ar
|
</xsl:stylesheet>
|
90 |
53218
|
miriam.bag
|
]]>
|
91 |
52327
|
alessia.ba
|
</CODE>
|
92 |
|
|
</SCRIPT>
|
93 |
|
|
</CONFIGURATION>
|
94 |
|
|
<STATUS/>
|
95 |
|
|
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS>
|
96 |
|
|
</BODY>
|
97 |
|
|
</RESOURCE_PROFILE>
|