Project

General

Profile

« Previous | Next » 

Revision 48739

Context for Tubitak funder

View differences:

modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/tubitak_contexts.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
				xmlns:fn="http://www.w3.org/2005/xpath-functions" version="1.0"
4
				exclude-result-prefixes="fn">
5

  
6
	<xsl:variable name="namespacePrefix" select="string('tubitakf____')"/>
7
	<xsl:variable name="funderID" select="concat($namespacePrefix, '::tubitak')"/>
8

  
9
	<xsl:template match="/">
10
		<fundings>
11
			<fundingtree>
12
				<funder>
13
					<id>
14
						<xsl:value-of select="$funderID"/>
15
					</id>
16
					<shortname>TUBITAK</shortname>
17
					<name>Türkiye Bilimsel ve Teknolojik Araştırma Kurumu</name>
18
					<jurisdiction>TR</jurisdiction>
19
				</funder>
20
				<xsl:variable name="stream" select="normalize-space(.//column[@name='FUNDING STREAM(S)'])"/>
21
				<xsl:if test="string-length($stream) > 0">
22
					<funding_level_0>
23
						<id>
24
							<xsl:value-of select="concat($funderID, '::', $stream)"/>
25
						</id>
26

  
27
						<description>
28
							<xsl:value-of select="$stream"/>
29
						</description>
30
						<name>
31
							<xsl:value-of select="$stream"/>
32
						</name>
33
						<parent></parent>
34
						<class>tubitak:fundingStream</class>
35
					</funding_level_0>
36
				</xsl:if>
37
			</fundingtree>
38
		</fundings>
39
	</xsl:template>
40

  
41
</xsl:stylesheet>

Also available in: Unified diff