Project

General

Profile

« Previous | Next » 

Revision 45472

fixed xslt

View differences:

modules/dnet-dli/trunk/src/main/resources/eu/dnetlib/resolver/xslt/transformResolvedRecord.xsl
36 36
	<xsl:template name="dataset">
37 37
		<xsl:param name="metadata"/>
38 38
		<xsl:variable name="datestamp" select="datetime:dateTime()"/>
39
		<xsl:variable name="evaluatedId" select="normalize-space(//datacite:identifier)"/>
39
		<xsl:variable name="evaluatedId" select="normalize-space(//datacite:identifier/text())"/>
40 40
		<xsl:variable name="evaluatedIdType" select="normalize-space(//datacite:identifier/@identifierType)"/>
41
		<xsl:variable name="generatedIDataset" select="concat($evaluatedIdType,'::',$evaluatedId)"/>
41
		<xsl:variable name="generatedIDataset" select="concat($evaluatedId, '::', $evaluatedIdType)"/>
42 42

  
43

  
44 43
		<oai:record xmlns:oai="http://www.openarchives.org/OAI/2.0/"
45
		            xmlns:dri="http://www.driver-repository.eu/namespace/dri"
46
		>
44
		            xmlns:dri="http://www.driver-repository.eu/namespace/dri">
47 45
			<oai:header>
48 46
				<dri:objIdentifier>
49 47
					<xsl:value-of select="concat($namespacePrefix,'::', dnet:md5($generatedIDataset))"/>
......
60 58
				<dri:datasourceprefix>
61 59
					<xsl:value-of select="$namespacePrefix"/>
62 60
				</dri:datasourceprefix>
63
				<suca>MELAAMMMA</suca>
64 61
			</oai:header>
65 62
			<xsl:copy-of select=".//*[local-name()='metadata']"/>
66 63
			<xsl:copy-of select=".//oaf:about"/>
......
73 70
		<xsl:variable name="datestamp" select="datetime:dateTime()"/>
74 71
		<xsl:variable name="evaluatedId" select="normalize-space(//oaf:pid)"/>
75 72
		<xsl:variable name="evaluatedIdType" select="normalize-space(//oaf:pid/@type)"/>
76
		<xsl:variable name="generatedIDPublication" select="concat($evaluatedIdType,'::',$evaluatedId)"/>
73
		<xsl:variable name="generatedIDPublication" select="concat($evaluatedId, '::', $evaluatedIdType)"/>
77 74

  
78

  
79 75
		<oai:record xmlns:oai="http://www.openarchives.org/OAI/2.0/"
80
		            xmlns:dri="http://www.driver-repository.eu/namespace/dri"
81
		>
76
		            xmlns:dri="http://www.driver-repository.eu/namespace/dri">
82 77
			<oai:header>
83 78
				<dri:objIdentifier>
84 79
					<xsl:value-of select="concat($namespacePrefix,'::', dnet:md5($generatedIDPublication))"/>
......
95 90
				<dri:datasourceprefix>
96 91
					<xsl:value-of select="$namespacePrefix"/>
97 92
				</dri:datasourceprefix>
98
				<suca>MELAAMMMA</suca>
99 93
			</oai:header>
100 94
			<xsl:copy-of select=".//*[local-name()='metadata']"/>
101 95
			<xsl:copy-of select=".//oaf:about"/>
......
103 97
	</xsl:template>
104 98

  
105 99

  
106
</xsl:stylesheet>
100
</xsl:stylesheet>

Also available in: Unified diff