- use iso639-2 for language tag for dc:language
- list mn. 100 record for ListRecords request - add header("Content-Type", "application/xml; charset=utf-8") inside oai.controller.ts
This commit is contained in:
parent
6944deac83
commit
3e24bdd92f
7 changed files with 57 additions and 43 deletions
|
@ -124,29 +124,32 @@
|
|||
<!-- gmd:identifier -->
|
||||
<!-- stower 2022, identifer gba https://doi.org/10.24341/tethys.53 -->
|
||||
<gmd:identifier>
|
||||
<gmd:MD_Identifier>
|
||||
<gmd:code>
|
||||
<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: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>
|
||||
<xsl:for-each select="*[name() = 'Identifier']">
|
||||
<!-- <xsl:variable name="datacite-identifier" select="Identifier[@Type = 'Doi']"/> -->
|
||||
<xsl:variable name="datacite-identifier" select=".[@Type = 'Doi']"/>
|
||||
<xsl:if test="string-length(.[@Type = 'Doi']/@Value) > 0 and count([.[@Type = 'Doi']/@Type = 'Doi']) > 0">
|
||||
<gmd:MD_Identifier>
|
||||
<gmd:code>
|
||||
<gco:CharacterString>
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with(.[@Type = 'Doi']/@Value, 'doi:') or contains(.[@Type = 'Doi']/@Value, 'doi.org')">
|
||||
<xsl:value-of select=".[@Type = 'Doi']/@Value"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="count(.[@Type = 'Doi']) > 0 and $datacentre='Tethys RDR'">
|
||||
<xsl:value-of select="concat(
|
||||
'https://doi.org/',
|
||||
string(.[@Type = 'Doi']/@Value)
|
||||
)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select=".[@Type = 'Doi']/@Value"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</gco:CharacterString>
|
||||
</gmd:code>
|
||||
</gmd:MD_Identifier>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</gmd:identifier>
|
||||
|
||||
<!-- gmd:citedResponsibleParty - creator -->
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue