- small bug fixes for oai-iso19139 GetRecords request
This commit is contained in:
parent
15f3572ef9
commit
bb70c087ef
|
@ -493,7 +493,7 @@
|
|||
</gmd:descriptiveKeywords>
|
||||
</xsl:template>
|
||||
|
||||
<!-- <gmd:extent> -->
|
||||
<!-- <gmd:extent> -->
|
||||
<xsl:template name="spatialcoverage">
|
||||
<gmd:extent>
|
||||
<gmd:EX_Extent>
|
||||
|
@ -695,26 +695,26 @@
|
|||
</gmd:extent>
|
||||
</xsl:template>
|
||||
|
||||
<!-- <gmd:onLine> -->
|
||||
<!-- <gmd:onLine> -->
|
||||
<xsl:template name="datacite_identifier">
|
||||
<xsl:if test="
|
||||
starts-with($datacite-identifier/@Value, 'doi:') or
|
||||
$datacite-identifier/@Type = 'Doi' or
|
||||
starts-with($datacite-identifier/@Value, 'http://')">
|
||||
starts-with(Identifier/@Value, 'doi:') or
|
||||
Identifier/@Type = 'Doi' or
|
||||
starts-with(Identifier/@Value, 'http://')">
|
||||
<gmd:onLine>
|
||||
<gmd:CI_OnlineResource>
|
||||
<gmd:linkage>
|
||||
<gmd:URL>
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with($datacite-identifier/@Value, 'doi:')">
|
||||
<xsl:when test="starts-with(Identifier/@Value, 'doi:')">
|
||||
<!-- 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 test="$datacite-identifier/@Type = 'Doi'">
|
||||
<xsl:value-of select="concat('http://dx.doi.org/', normalize-space($datacite-identifier/@Value))"/>
|
||||
<xsl:when test="Identifier/@Type = 'Doi'">
|
||||
<xsl:value-of select="concat('http://dx.doi.org/', normalize-space(Identifier/@Value))"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="starts-with($datacite-identifier/@Value, 'http://')">
|
||||
<xsl:value-of select="normalize-space($datacite-identifier/@Value)"/>
|
||||
<xsl:when test="starts-with(Identifier/@Value, 'http://')">
|
||||
<xsl:value-of select="normalize-space(Identifier/@Value)"/>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</gmd:URL>
|
||||
|
@ -739,7 +739,7 @@
|
|||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- <gmd:onLine> -->
|
||||
<!-- <gmd:onLine> -->
|
||||
<xsl:template name="alternate_identifier">
|
||||
<xsl:if test="@landingpage != '' and starts-with(normalize-space(string(@landingpage)), 'http')">
|
||||
<gmd:onLine>
|
||||
|
@ -754,7 +754,7 @@
|
|||
</gmd:protocol>
|
||||
<gmd:name>
|
||||
<gco:CharacterString>
|
||||
<xsl:value-of select="normalize-space(string('url'))"/>
|
||||
<xsl:value-of select="string('url')"/>
|
||||
</gco:CharacterString>
|
||||
</gmd:name>
|
||||
<gmd:description>
|
||||
|
@ -768,7 +768,7 @@
|
|||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- <gmd:dataQualityInfo> -->
|
||||
<!-- <gmd:dataQualityInfo> -->
|
||||
<xsl:template name="data_quality">
|
||||
<gmd:dataQualityInfo>
|
||||
<gmd:DQ_DataQuality>
|
||||
|
@ -822,7 +822,7 @@
|
|||
</gmd:dataQualityInfo>
|
||||
</xsl:template>
|
||||
|
||||
<!-- <gmd:distributor> -->
|
||||
<!-- <gmd:distributor> -->
|
||||
<xsl:variable name="distributorOrganisation" select="string('Geological Survey of Austria')"/>
|
||||
<xsl:variable name="distributorContactEmail" select="string('repository@geologie.ac.at')"/>
|
||||
<xsl:template name="distributor">
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
<xsl:import href="functions.xslt"/>
|
||||
|
||||
<!-- variables -->
|
||||
<xsl:variable name="datacite-identifier_org" select="//*[name() = 'Identifier']"/>
|
||||
<xsl:variable name="datacite-identifier" select="//*[name() = 'Identifier'][@Type = 'Doi']"/>
|
||||
<!-- <xsl:variable name="datacite-identifier_org" select="//*[name() = 'Identifier']"/> -->
|
||||
<!-- <xsl:variable name="datacite-identifier" select="//*[name() = 'Identifier'][@Type = 'Doi']"/> -->
|
||||
<xsl:variable name="fileIdentifierPrefix" select="string('at.tethys.dataset')"/>
|
||||
<xsl:variable name="datacentre">
|
||||
<xsl:choose>
|
||||
|
@ -127,20 +127,23 @@
|
|||
<gmd:MD_Identifier>
|
||||
<gmd:code>
|
||||
<gco:CharacterString>
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with($datacite-identifier/@Value, 'doi:') or contains($datacite-identifier/@Value, 'doi.org')">
|
||||
<xsl:value-of select="$datacite-identifier/@Value"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="count($datacite-identifier[@Type = 'Doi']) > 0 and $datacentre='Tethys RDR'">
|
||||
<xsl:value-of select="concat(
|
||||
'https://doi.org/',
|
||||
string($datacite-identifier/@Value)
|
||||
)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$datacite-identifier/@Value"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<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:when test="starts-with($datacite-identifier/@Value, 'doi:') or contains($datacite-identifier/@Value, 'doi.org')">
|
||||
<xsl:value-of select="$datacite-identifier/@Value"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="count($datacite-identifier[@Type = 'Doi']) > 0 and $datacentre='Tethys RDR'">
|
||||
<xsl:value-of select="concat(
|
||||
'https://doi.org/',
|
||||
string($datacite-identifier/@Value)
|
||||
)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$datacite-identifier/@Value"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
</gco:CharacterString>
|
||||
</gmd:code>
|
||||
</gmd:MD_Identifier>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user