Revision 56859
Added by Alessia Bardi over 4 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/openaireMdBuilder.xslt.st | ||
---|---|---|
53 | 53 |
xmlns:prov="http://www.openarchives.org/OAI/2.0/provenance" |
54 | 54 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
55 | 55 |
|
56 |
<xsl:variable name="evaluatedMetadataId" select="normalize-space($xpath$)" /> |
|
56 | 57 |
<oai:header> |
57 | 58 |
<xsl:if test="\$status"> |
58 | 59 |
<xsl:attribute name="status" > |
... | ... | |
60 | 61 |
</xsl:attribute> |
61 | 62 |
</xsl:if> |
62 | 63 |
<xsl:if test="not(.//dri:objIdentifier) and not(.//*[local-name() = 'header']/*[local-name()='objIdentifier'])"> |
63 |
<dri:objIdentifier><xsl:value-of select="concat('$namespacePrefix$::', dnet:md5($xpath$))"/></dri:objIdentifier>
|
|
64 |
<dri:objIdentifier><xsl:value-of select="concat('$namespacePrefix$::', dnet:md5(\$evaluatedMetadataId))"/></dri:objIdentifier>
|
|
64 | 65 |
</xsl:if> |
65 | 66 |
<xsl:if test="not(.//dri:recordIdentifier)"> |
66 |
<dri:recordIdentifier><xsl:value-of select="$xpath$"/></dri:recordIdentifier>
|
|
67 |
<dri:recordIdentifier><xsl:value-of select="\$evaluatedMetadataId"/></dri:recordIdentifier>
|
|
67 | 68 |
</xsl:if> |
68 | 69 |
<xsl:if test="not(string(.//dri:dateOfCollection))"> |
69 | 70 |
<dri:dateOfCollection><xsl:value-of select="\$datestamp"/></dri:dateOfCollection> |
Also available in: Unified diff
Normalize space of metadata identifier path as it is done in "normal" mdBuilder