Project

General

Profile

« Previous | Next » 

Revision 43003

Do not create funding for empty IC_NAME

View differences:

modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/nih_contexts.xsl
15 15
					<jurisdiction>US</jurisdiction>
16 16
				</funder>
17 17
			</fundingtree>
18
			<xsl:for-each select="//IC_NAME">
18
			<xsl:for-each select="//IC_NAME[./text() != '']">
19 19
				<fundingtree>
20 20
					<funder>
21 21
						<id>nih_________::NIH</id>
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/nih_2_db.xsl
6 6

  
7 7
	<xsl:variable name="funderID" select="concat($namespacePrefix, '::NIH')" />
8 8
	<xsl:variable name="fundingName" select="upper-case(normalize-space(//IC_NAME))"/>
9
	<xsl:variable name="fundingID" select="concat($funderID, '::', translate($fundingName,' ','_'))" />
9
	<xsl:variable name="fundingID">
10
		<xsl:choose>
11
			<xsl:when test="$fundingName != ''">
12
				<xsl:value-of select="concat($funderID, '::', translate($fundingName,' ','_'))"/>
13
			</xsl:when>
14
			<xsl:otherwise>
15
				<xsl:value-of select="$funderID"/>
16
			</xsl:otherwise>
17
		</xsl:choose>
18
	</xsl:variable>
10 19

  
11 20
	<xsl:variable name="projectID" select="concat($namespacePrefix, '::', .//FULL_PROJECT_NUM)" />
12 21
	<xsl:variable name="orgID" select="concat($namespacePrefix, '::', upper-case(translate(.//ORG_NAME, ' ,', '__')))" />

Also available in: Unified diff