Project

General

Profile

« Previous | Next » 

Revision 53099

trying to fix issues with H2020 and tara project links

View differences:

PublicationFromPangaeatransform.xsl
95 95
						<xsl:value-of select="normalize-space(//*[local-name() ='projectid'])"/>
96 96
					</xsl:variable>
97 97
					<xsl:choose>
98
						<xsl:when test="string-length($projectId) &gt; 0">
98
						<xsl:when test="string-length(substring-after($projectId, 'info:eu-repo/grantAgreement/EC/FP7/')) > 0">
99 99
							<oaf:projectid>
100 100
								<xsl:value-of
101
										select="concat('corda_______::', stringUtils:substringAfterLast($projectId, '/'))"/>
101
										select="concat('corda_______::', substring-after($projectId, 'info:eu-repo/grantAgreement/EC/FP7/'))"/>
102 102
							</oaf:projectid>
103 103
						</xsl:when>
104
						<xsl:when test="string-length(substring-after($projectId, 'info:eu-repo/grantAgreement/EC/H2020/')) > 0">
105
							<oaf:projectid>
106
								<xsl:value-of
107
										select="concat('corda_______::', substring-after($projectId, 'info:eu-repo/grantAgreement/EC/H2020/'))"/>
108
							</oaf:projectid>
109
						</xsl:when>
110
						<xsl:otherwise>
111
							<oaf:projectid><xsl:value-of select="$projectId"/></oaf:projectid>
112
						</xsl:otherwise>
104 113
					</xsl:choose>
105 114
					<xsl:variable name="journalName">
106 115
						<xsl:value-of select="//*[local-name() ='journal']/@name"/>

Also available in: Unified diff