- small bug fixes for oai-iso19139 GetRecords request
This commit is contained in:
parent
15f3572ef9
commit
bb70c087ef
|
@ -698,23 +698,23 @@
|
||||||
<!-- <gmd:onLine> -->
|
<!-- <gmd:onLine> -->
|
||||||
<xsl:template name="datacite_identifier">
|
<xsl:template name="datacite_identifier">
|
||||||
<xsl:if test="
|
<xsl:if test="
|
||||||
starts-with($datacite-identifier/@Value, 'doi:') or
|
starts-with(Identifier/@Value, 'doi:') or
|
||||||
$datacite-identifier/@Type = 'Doi' or
|
Identifier/@Type = 'Doi' or
|
||||||
starts-with($datacite-identifier/@Value, 'http://')">
|
starts-with(Identifier/@Value, 'http://')">
|
||||||
<gmd:onLine>
|
<gmd:onLine>
|
||||||
<gmd:CI_OnlineResource>
|
<gmd:CI_OnlineResource>
|
||||||
<gmd:linkage>
|
<gmd:linkage>
|
||||||
<gmd:URL>
|
<gmd:URL>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="starts-with($datacite-identifier/@Value, 'doi:')">
|
<xsl:when test="starts-with(Identifier/@Value, 'doi:')">
|
||||||
<!-- stower http auf https gesetzt -->
|
<!-- stower http auf https gesetzt -->
|
||||||
<xsl:value-of select="concat('http://dx.doi.org/', substring-after($datacite-identifier/@Value, 'doi:'))"/>
|
<xsl:value-of select="concat('http://dx.doi.org/', substring-after(Identifier/@Value, 'doi:'))"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$datacite-identifier/@Type = 'Doi'">
|
<xsl:when test="Identifier/@Type = 'Doi'">
|
||||||
<xsl:value-of select="concat('http://dx.doi.org/', normalize-space($datacite-identifier/@Value))"/>
|
<xsl:value-of select="concat('http://dx.doi.org/', normalize-space(Identifier/@Value))"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="starts-with($datacite-identifier/@Value, 'http://')">
|
<xsl:when test="starts-with(Identifier/@Value, 'http://')">
|
||||||
<xsl:value-of select="normalize-space($datacite-identifier/@Value)"/>
|
<xsl:value-of select="normalize-space(Identifier/@Value)"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</gmd:URL>
|
</gmd:URL>
|
||||||
|
@ -754,7 +754,7 @@
|
||||||
</gmd:protocol>
|
</gmd:protocol>
|
||||||
<gmd:name>
|
<gmd:name>
|
||||||
<gco:CharacterString>
|
<gco:CharacterString>
|
||||||
<xsl:value-of select="normalize-space(string('url'))"/>
|
<xsl:value-of select="string('url')"/>
|
||||||
</gco:CharacterString>
|
</gco:CharacterString>
|
||||||
</gmd:name>
|
</gmd:name>
|
||||||
<gmd:description>
|
<gmd:description>
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
<xsl:import href="functions.xslt"/>
|
<xsl:import href="functions.xslt"/>
|
||||||
|
|
||||||
<!-- variables -->
|
<!-- variables -->
|
||||||
<xsl:variable name="datacite-identifier_org" select="//*[name() = 'Identifier']"/>
|
<!-- <xsl:variable name="datacite-identifier_org" select="//*[name() = 'Identifier']"/> -->
|
||||||
<xsl:variable name="datacite-identifier" select="//*[name() = 'Identifier'][@Type = 'Doi']"/>
|
<!-- <xsl:variable name="datacite-identifier" select="//*[name() = 'Identifier'][@Type = 'Doi']"/> -->
|
||||||
<xsl:variable name="fileIdentifierPrefix" select="string('at.tethys.dataset')"/>
|
<xsl:variable name="fileIdentifierPrefix" select="string('at.tethys.dataset')"/>
|
||||||
<xsl:variable name="datacentre">
|
<xsl:variable name="datacentre">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
@ -127,6 +127,8 @@
|
||||||
<gmd:MD_Identifier>
|
<gmd:MD_Identifier>
|
||||||
<gmd:code>
|
<gmd:code>
|
||||||
<gco:CharacterString>
|
<gco:CharacterString>
|
||||||
|
<xsl:variable name="datacite-identifier" select="Identifier[@Type = 'Doi']"/>
|
||||||
|
<xsl:if test="string-length($datacite-identifier/@Value) > 0 and count([$datacite-identifier/@Type = 'Doi']) > 0">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="starts-with($datacite-identifier/@Value, 'doi:') or contains($datacite-identifier/@Value, 'doi.org')">
|
<xsl:when test="starts-with($datacite-identifier/@Value, 'doi:') or contains($datacite-identifier/@Value, 'doi.org')">
|
||||||
<xsl:value-of select="$datacite-identifier/@Value"/>
|
<xsl:value-of select="$datacite-identifier/@Value"/>
|
||||||
|
@ -141,6 +143,7 @@
|
||||||
<xsl:value-of select="$datacite-identifier/@Value"/>
|
<xsl:value-of select="$datacite-identifier/@Value"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
</xsl:if>
|
||||||
</gco:CharacterString>
|
</gco:CharacterString>
|
||||||
</gmd:code>
|
</gmd:code>
|
||||||
</gmd:MD_Identifier>
|
</gmd:MD_Identifier>
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user