Revision 38522
Added by Michele Artini almost 9 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/sfi_contexts.xsl | ||
---|---|---|
9 | 9 |
|
10 | 10 |
<xsl:template match="/"> |
11 | 11 |
<xsl:variable name="funding" select=".//column[@name='Programme']" /> |
12 |
|
|
13 |
<fundingtree> |
|
14 |
<funder> |
|
15 |
<id><xsl:value-of select="$funderId" /></id> |
|
16 |
<shortname>SFI</shortname> |
|
17 |
<name><xsl:value-of select=".//column[@name='Funder Name']" /></name> |
|
18 |
<jurisdiction></jurisdiction> |
|
19 |
</funder> |
|
20 |
<funding_level_0> |
|
21 |
<id><xsl:value-of select="concat($funderId, '::', $funding)" /></id> |
|
22 |
<description><xsl:value-of select="$funding" /></description> |
|
23 |
<name><xsl:value-of select="$funding" /></name> |
|
24 |
<parent></parent> |
|
25 |
<class>sfi:fundingStream</class> |
|
26 |
</funding_level_0> |
|
27 |
</fundingtree> |
|
12 |
<xsl:if test="$funding"> |
|
13 |
<fundingtree> |
|
14 |
<funder> |
|
15 |
<id><xsl:value-of select="$funderId" /></id> |
|
16 |
<shortname>SFI</shortname> |
|
17 |
<name><xsl:value-of select=".//column[@name='Funder Name']" /></name> |
|
18 |
<jurisdiction></jurisdiction> |
|
19 |
</funder> |
|
20 |
<funding_level_0> |
|
21 |
<id><xsl:value-of select="concat($funderId, '::', $funding)" /></id> |
|
22 |
<description><xsl:value-of select="$funding" /></description> |
|
23 |
<name><xsl:value-of select="$funding" /></name> |
|
24 |
<parent></parent> |
|
25 |
<class>sfi:fundingStream</class> |
|
26 |
</funding_level_0> |
|
27 |
</fundingtree> |
|
28 |
</xsl:if> |
|
28 | 29 |
</xsl:template> |
29 | 30 |
</xsl:stylesheet> |
30 |
|
|
31 |
|
|
32 | 31 |
|
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/sfi_2_db.xsl | ||
---|---|---|
21 | 21 |
|
22 | 22 |
<metadata> |
23 | 23 |
<ROWS> |
24 |
<xsl:if test=".//column[@name='Project Identifier']"> |
|
24 |
<xsl:if test=".//column[@name='Project Identifier'] and .//column[@name='Project Title']">
|
|
25 | 25 |
<xsl:variable name="projectId" select="concat($namespacePrefix, '::', .//column[@name='Project Identifier'])" /> |
26 | 26 |
<xsl:variable name="startDate" select=".//column[@name='Start date']" /> |
27 | 27 |
<xsl:variable name="endDate" select=".//column[@name='End Date']" /> |
Also available in: Unified diff
added some controls on sfi xslts