Revision 57245
Added by Miriam Baglioni over 4 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/rpf_context.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
3 |
|
|
4 |
<xsl:output indent="yes"/> |
|
5 |
|
|
6 |
<xsl:template match="/"> |
|
7 |
<fundings> |
|
8 |
<fundingtree> |
|
9 |
<funder> |
|
10 |
<id>rpf_________::RPF</id> |
|
11 |
<shortname>RPF</shortname> |
|
12 |
<name>Research Promotion Foundation</name> |
|
13 |
<originalname>Research Promotion Foundation</originalname> |
|
14 |
<jurisdiction>CY</jurisdiction> |
|
15 |
</funder> |
|
16 |
</fundingtree> |
|
17 |
</fundings> |
|
18 |
</xsl:template> |
|
19 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/rif_context.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
3 |
|
|
4 |
<xsl:output indent="yes"/> |
|
5 |
<xsl:variable name="namespacePrefix" select="string('rif_________')"/> |
|
6 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::RIF')"/> |
|
7 |
<xsl:template match="/"> |
|
8 |
<fundings> |
|
9 |
<fundingtree> |
|
10 |
<funder> |
|
11 |
<id> <xsl:value-of select="$funderID"/></id> |
|
12 |
<shortname>RIF</shortname> |
|
13 |
<name>Research and Innovation Foundation</name> |
|
14 |
<originalname>Research and Innovation Foundation</originalname> |
|
15 |
<jurisdiction>CY</jurisdiction> |
|
16 |
</funder> |
|
17 |
<xsl:variable name="stream"> |
|
18 |
<xsl:value-of select="translate(.//column[@name = 'FUNDING STREAM'],' ','')"/> |
|
19 |
</xsl:variable> |
|
20 |
<funding_level_0> |
|
21 |
<id> |
|
22 |
<xsl:value-of select="concat($funderID, '::',$stream)"/> |
|
23 |
</id> |
|
24 |
<name><xsl:value-of select=".//column[@name='FUNDING STREAM']"/></name> |
|
25 |
<description><xsl:value-of select=".//column[@name='FUNDING STREAM']"/></description> |
|
26 |
<parent/> |
|
27 |
<class> |
|
28 |
<xsl:value-of select="concat('rif:',lower-case($stream),'fundings')"/> |
|
29 |
</class> |
|
30 |
</funding_level_0> |
|
31 |
</fundingtree> |
|
32 |
</fundings> |
|
33 |
</xsl:template> |
|
34 |
</xsl:stylesheet> |
Also available in: Unified diff
changed the context for considering the founding stream and the change in the name of the funder