Project

General

Profile

« Previous | Next » 

Revision 55941

Fix #4570: proper Landing pages to EGI App DB

View differences:

xslt_cleaning_EGI.xml
340 340

  
341 341
						</xsl:template>
342 342

  
343
						<xsl:template match="//*[local-name()='alternateIdentifiers']">
344
							<alternateIdentifiers xmlns="http://datacite.org/schema/kernel-4">
345
								<alternateIdentifier alternateIdentifierType="LandingPage"><xsl:value-of select="concat('http://hdl.handle.net/', //*[local-name()='identifier' and ./@identifierType='Handle']/text())"/></alternateIdentifier>
346
								<xsl:apply-templates select="./*[local-name()='alternateIdentifier']"/>
347
							</alternateIdentifiers>
348
						</xsl:template>
349

  
350

  
351
						<!-- #4570: EGI instance links should be the links to the EGI AppDB landing pages -->
352
						<xsl:template match="//*[local-name()='alternateIdentifier' and ./@alternateIdentifierType='LandingPage']">
353
							<alternateIdentifier alternateIdentifierType="URL"><xsl:value-of select="./text()"/></alternateIdentifier>
354
						</xsl:template>
355

  
356
						<xsl:template match="//*[local-name()='alternateIdentifier']">
357
							<xsl:copy-of select="." />
358
						</xsl:template>
359

  
343 360
					</xsl:stylesheet>
344 361
				</CODE>
345 362
			</SCRIPT>

Also available in: Unified diff