Revision 55462
Added by Miriam Baglioni almost 5 years ago
rpf2db.xml | ||
---|---|---|
12 | 12 |
<SCRIPT> |
13 | 13 |
<TITLE>RPF to DB</TITLE> |
14 | 14 |
<CODE><![CDATA[ |
15 |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
15 |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
16 | 16 |
xmlns:utils="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions"> |
17 | 17 |
|
18 | 18 |
<xsl:param name="varDataSourceId"/> |
19 | 19 |
<xsl:variable name="namespacePrefix" select="string('rpf_________')"/> |
20 | 20 |
|
21 |
<xsl:variable name="dateFormat" select="string('MM-dd-yy')"/>
|
|
21 |
<xsl:variable name="dateFormat" select="string('dd-MM-yyyy')"/>
|
|
22 | 22 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::RPF')"/> |
23 | 23 |
|
24 |
<xsl:variable name="fundingId"> |
|
25 |
<xsl:value-of |
|
26 |
select="concat($funderID, '::', translate(.//column[@name = 'FUNDING STREAM'], ' ', ''))" |
|
27 |
/> |
|
28 |
</xsl:variable> |
|
24 | 29 |
<xsl:variable name="quot">"</xsl:variable> |
25 | 30 |
|
26 | 31 |
<xsl:template match="/"> |
... | ... | |
52 | 57 |
<FIELD name="title"> |
53 | 58 |
<xsl:value-of select=".//column[@name = 'PROJECT TITLE']"/> |
54 | 59 |
</FIELD> |
55 |
<xsl:if test=".//column[@name = 'PROJECT ACRONYM']!=''"> |
|
60 |
|
|
56 | 61 |
<FIELD name="acronym"> |
57 | 62 |
<xsl:value-of select=".//column[@name = 'PROJECT ACRONYM']"/> |
58 |
</FIELD></xsl:if>
|
|
63 |
</FIELD> |
|
59 | 64 |
<FIELD name="startdate" type="date" format="{$dateFormat}"> |
60 | 65 |
<xsl:value-of select="$startDate"/> |
61 | 66 |
</FIELD> |
... | ... | |
74 | 79 |
</ROW> |
75 | 80 |
<ROW table="project_fundingpath"> |
76 | 81 |
<FIELD name="_dnet_resource_identifier_"> |
77 |
<xsl:value-of select="concat($funderID, '@@', $projectId)"/>
|
|
82 |
<xsl:value-of select="concat($fundingId, '@@', $projectId)"/>
|
|
78 | 83 |
</FIELD> |
79 | 84 |
<FIELD name="funding"> |
80 |
<xsl:value-of select="$funderID"/>
|
|
85 |
<xsl:value-of select="$fundingId"/>
|
|
81 | 86 |
</FIELD> |
82 | 87 |
<FIELD name="project"> |
83 | 88 |
<xsl:value-of select="$projectId"/> |
Also available in: Unified diff
updated for new funding stream information