Revision 35015
Added by Michele Artini over 9 years ago
modules/dnet-openaireplus-workflows/branches/fundingPaths/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/wt_contexts.xsl | ||
---|---|---|
28 | 28 |
|
29 | 29 |
<fundingtree> |
30 | 30 |
<funder> |
31 |
<id> |
|
32 |
<xsl:value-of select="concat('welcometrust::', $funder)" /> |
|
33 |
</id> |
|
34 |
<name> |
|
35 |
<xsl:value-of select="$funder" /> |
|
36 |
</name> |
|
37 |
<description> |
|
38 |
<xsl:value-of select="$funder" /> |
|
39 |
</description> |
|
31 |
<id><xsl:value-of select="concat('welcometrust::', $funder)" /></id> |
|
32 |
<name><xsl:value-of select="$funder" /></name> |
|
33 |
<description><xsl:value-of select="$funder" /></description> |
|
40 | 34 |
</funder> |
41 | 35 |
<funding_level_1> |
42 |
<id> |
|
43 |
<xsl:value-of select="concat('welcometrust::', $funding)" /> |
|
44 |
</id> |
|
45 |
<description> |
|
46 |
<xsl:value-of select="$funding" /> |
|
47 |
</description> |
|
48 |
<name> |
|
49 |
<xsl:value-of select="$funding" /> |
|
50 |
</name> |
|
36 |
<id><xsl:value-of select="concat('welcometrust::', $funding)" /></id> |
|
37 |
<description><xsl:value-of select="$funding" /></description> |
|
38 |
<name><xsl:value-of select="$funding" /></name> |
|
39 |
<class>wt:fundingStream</class> |
|
51 | 40 |
<parent> |
52 | 41 |
<funding_level_0> |
53 | 42 |
<id>wt::WT</id> |
... | ... | |
57 | 46 |
<class>wt:fundingStream</class> |
58 | 47 |
</funding_level_0> |
59 | 48 |
</parent> |
60 |
<class>wt:fundingStream</class> |
|
61 | 49 |
</funding_level_1> |
62 | 50 |
</fundingtree> |
63 | 51 |
</xsl:template> |
modules/dnet-openaireplus-workflows/branches/fundingPaths/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/fct_contexts.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet version="1.0" |
|
3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:template match="/"> |
|
7 |
|
|
8 |
<xsl:variable name="funding"> |
|
9 |
<xsl:choose> |
|
10 |
<xsl:when test="normalize-space(.//funding/program)"> |
|
11 |
<xsl:value-of select="normalize-space(.//funding/program)" /> |
|
12 |
</xsl:when> |
|
13 |
<xsl:otherwise> |
|
14 |
<xsl:value-of select="string('UNKNOWN')" /> |
|
15 |
</xsl:otherwise> |
|
16 |
</xsl:choose> |
|
17 |
</xsl:variable> |
|
18 |
|
|
19 |
<fundingtree> |
|
20 |
<funder> |
|
21 |
<id>fct_________::FCT</id> |
|
22 |
<name>FCT</name> |
|
23 |
<description>Fundação para a Ciência e a Tecnologia, I.P.</description> |
|
24 |
</funder> |
|
25 |
<funding_level_1> |
|
26 |
<id><xsl:value-of select="concat('fct_________::', $funding)" /></id> |
|
27 |
<description><xsl:value-of select="$funding" /></description> |
|
28 |
<name><xsl:value-of select="$funding" /></name> |
|
29 |
<class>fct:program</class> |
|
30 |
<parent> |
|
31 |
<funding_level_0> |
|
32 |
<id>fct_________::FCT</id> |
|
33 |
<description>Fundação para a Ciência e a Tecnologia, I.P.</description> |
|
34 |
<name>FCT</name> |
|
35 |
<parent></parent> |
|
36 |
<class>fct:program</class> |
|
37 |
</funding_level_0> |
|
38 |
</parent> |
|
39 |
</funding_level_1> |
|
40 |
</fundingtree> |
|
41 |
</xsl:template> |
|
42 |
|
|
43 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/branches/fundingPaths/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/fct_2_db.xsl | ||
---|---|---|
115 | 115 |
--> |
116 | 116 |
|
117 | 117 |
<xsl:for-each select="./funding"> |
118 |
|
|
118 | 119 |
<xsl:variable name="fundingName" select="normalize-space(./program)" /> |
119 | 120 |
<xsl:if test="string-length($fundingName) > 0"> |
120 | 121 |
<xsl:variable name="fundingId" select="concat($prefix,'::',$fundingName)" /> |
122 |
<!-- |
|
121 | 123 |
<ROW table="fundings"> |
122 | 124 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$fundingId"/></FIELD> |
123 | 125 |
<FIELD name="id"><xsl:value-of select="$fundingId"/></FIELD> |
... | ... | |
147 | 149 |
<FIELD name="optional1"><xsl:value-of select="./amount" /></FIELD> |
148 | 150 |
<FIELD name="optional2"><xsl:value-of select="./dateAwarded" /></FIELD> |
149 | 151 |
</ROW> |
152 |
--> |
|
153 |
<ROW table="project_fundingpath"> |
|
154 |
<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($fundingId, '@@', $projectId)" /></FIELD> |
|
155 |
<FIELD name="funding"><xsl:value-of select="$fundingId" /></FIELD> |
|
156 |
<FIELD name="project"><xsl:value-of select="$projectId" /></FIELD> |
|
157 |
<FIELD name="startdate" type="date" format="dd/MM/yyyy"><xsl:value-of select="../startDate" /></FIELD> |
|
158 |
<FIELD name="enddate" type="date" format="dd/MM/yyyy"><xsl:value-of select="../endDate" /></FIELD> |
|
159 |
<FIELD name="optional1"><xsl:value-of select="./amount" /></FIELD> |
|
160 |
<FIELD name="optional2"><xsl:value-of select="./dateAwarded" /></FIELD> |
|
161 |
</ROW> |
|
150 | 162 |
</xsl:if> |
151 | 163 |
</xsl:for-each> |
152 | 164 |
|
Also available in: Unified diff
FCT contexts