Project

General

Profile

« Previous | Next » 

Revision 41476

treating missing funding paths as pointers to the funder (ARC)

View differences:

arc_2_db.xsl
19 19
				<ROWS>
20 20
					<xsl:for-each select="//ands:registryObject[@group='Australian Research Council']/ands:activity[@type='grant']">
21 21
						<xsl:variable name="projectId" select="concat('arc_________::', normalize-space(./ands:identifier[@type='arc']))"/>
22
						<xsl:variable name="fundingId" select="concat('arc_________::ARC::', normalize-space(./ands:description[@type='fundingScheme']))"/>
23
						
22
						<xsl:variable name="fundingId">
23
							<xsl:choose>
24
								<xsl:when test="string-length(./ands:description[@type='fundingScheme']) &gt; 0">
25
									<xsl:value-of select="concat('arc_________::ARC::', normalize-space(./ands:description[@type='fundingScheme']))"/>
26
								</xsl:when>
27
								<xsl:otherwise>
28
									<xsl:value-of select="string('arc_________::ARC')"/>
29
								</xsl:otherwise>
30
							</xsl:choose>
31
						</xsl:variable>
32

  
24 33
						<ROW table="projects">
25 34
							<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$projectId" /></FIELD>
26 35
							<FIELD name="id"><xsl:value-of select="$projectId" /></FIELD>

Also available in: Unified diff