1
|
<RESOURCE_PROFILE>
|
2
|
<HEADER>
|
3
|
<RESOURCE_IDENTIFIER
|
4
|
value="9fbc7cfc-8c9b-4bf7-8fca-6869af283d37_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU=" />
|
5
|
<RESOURCE_TYPE value="TransformationRuleDSResourceType" />
|
6
|
<RESOURCE_KIND value="TransformationRuleDSResources" />
|
7
|
<RESOURCE_URI value="" />
|
8
|
<DATE_OF_CREATION value="2015-07-28T12:26:13+02:00" />
|
9
|
</HEADER>
|
10
|
<BODY>
|
11
|
<CONFIGURATION>
|
12
|
<IMPORTED />
|
13
|
<SCRIPT>
|
14
|
<TITLE>Openaire Projects Transformation</TITLE>
|
15
|
<CODE><![CDATA[<xsl:stylesheet version="2.0"
|
16
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
17
|
xmlns:oai="http://www.openarchives.org/OAI/2.0/"
|
18
|
xmlns:oaf="http://namespace.openaire.eu/oaf"
|
19
|
xmlns:isti="http://www.isti.cnr.it/"
|
20
|
exclude-result-prefixes="xsl oaf">
|
21
|
|
22
|
<xsl:template match="/">
|
23
|
<xsl:variable name="id" select="normalize-space(substring-after(//oai:identifier, 'oai:dnet:'))" />
|
24
|
<xsl:variable name="code" select="normalize-space(//oaf:project/code)" />
|
25
|
<xsl:variable name="name" select="normalize-space(//oaf:project/title)" />
|
26
|
<xsl:variable name="acronym" select="normalize-space(//oaf:project/acronym)" />
|
27
|
<xsl:variable name="funder" select="normalize-space(//oaf:project/fundingtree[1]/funder/shortname)" />
|
28
|
<xsl:variable name="program" select="normalize-space(//oaf:project/fundingtree[1]//funding_level_0/name)" />
|
29
|
<xsl:variable name="jurisdiction" select="normalize-space(//oaf:project/fundingtree[1]/funder/jurisdiction)" />
|
30
|
|
31
|
<oai:record>
|
32
|
<xsl:copy-of select="//*[local-name()='header']"/>
|
33
|
<oai:metadata>
|
34
|
<isti:project>
|
35
|
<isti:code><xsl:value-of select="$code" /></isti:code>
|
36
|
<isti:name><xsl:value-of select="$name" /></isti:code>
|
37
|
<isti:acronym><xsl:value-of select="$acronym" /></isti:acronym>
|
38
|
<isti:funder><xsl:value-of select="$funder" /></isti:funder>
|
39
|
<isti:program><xsl:value-of select="$program" /></isti:program>
|
40
|
<isti:jurisdiction><xsl:value-of select="$jurisdiction" /></isti:jurisdiction>
|
41
|
<isti:infoId><xsl:value-of select="concat('info:eu-repo/grantAgreement/', $funder, '/' , $program, '/', $code, '/', $jurisdiction, '/', $name, '/', $acronym)" /></isti:infoId>
|
42
|
</isti:project>
|
43
|
</oai:metadata>
|
44
|
</oai:record>
|
45
|
</xsl:template>
|
46
|
</xsl:stylesheet>]]></CODE>
|
47
|
</SCRIPT>
|
48
|
</CONFIGURATION>
|
49
|
<STATUS />
|
50
|
<SECURITY_PARAMETERS />
|
51
|
</BODY>
|
52
|
</RESOURCE_PROFILE>
|