- apply SortOrder for metadata standard dc, datacite and iso19139
This commit is contained in:
parent
2a6a2a6def
commit
5b6f81c34d
|
@ -153,10 +153,14 @@
|
|||
</gmd:identifier>
|
||||
|
||||
<!-- gmd:citedResponsibleParty - creator -->
|
||||
<xsl:apply-templates select="PersonAuthor" mode="iso19139" />
|
||||
<xsl:apply-templates select="PersonAuthor" mode="iso19139">
|
||||
<xsl:sort select="@SortOrder"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
<!-- gmd:citedResponsibleParty - contributor -->
|
||||
<xsl:apply-templates select="PersonContributor" mode="iso19139" />
|
||||
<xsl:apply-templates select="PersonContributor" mode="iso19139">
|
||||
<xsl:sort select="@SortOrder"/>
|
||||
</xsl:apply-templates>
|
||||
|
||||
<!-- publisher -->
|
||||
<gmd:citedResponsibleParty>
|
||||
|
|
|
@ -29,16 +29,16 @@
|
|||
*/
|
||||
-->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<xsl:output method="xml" encoding="utf-8" indent="yes" />
|
||||
|
||||
<xsl:template match="Rdr_Dataset" mode="oai_datacite">
|
||||
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.3/metadata.xsd">
|
||||
xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.3/metadata.xsd">
|
||||
<!-- <isReferenceQuality>true</isReferenceQuality>
|
||||
<schemaVersion>4.3</schemaVersion>
|
||||
<datacentreSymbol>RDR.GBA</datacentreSymbol> -->
|
||||
|
@ -58,7 +58,9 @@
|
|||
|
||||
<!--<datacite:creator>-->
|
||||
<creators>
|
||||
<xsl:apply-templates select="PersonAuthor" mode="oai_datacite" />
|
||||
<xsl:apply-templates select="PersonAuthor" mode="oai_datacite">
|
||||
<xsl:sort select="@SortOrder"/>
|
||||
</xsl:apply-templates>
|
||||
</creators>
|
||||
<titles>
|
||||
<xsl:apply-templates select="TitleMain" mode="oai_datacite" />
|
||||
|
@ -79,7 +81,9 @@
|
|||
</language>
|
||||
<xsl:if test="PersonContributor">
|
||||
<contributors>
|
||||
<xsl:apply-templates select="PersonContributor" mode="oai_datacite" />
|
||||
<xsl:apply-templates select="PersonContributor" mode="oai_datacite">
|
||||
<xsl:sort select="@SortOrder"/>
|
||||
</xsl:apply-templates>
|
||||
</contributors>
|
||||
</xsl:if>
|
||||
<dates>
|
||||
|
@ -125,12 +129,12 @@
|
|||
<northBoundLatitude>50.18691</northBoundLatitude>
|
||||
</geoLocationBox>
|
||||
</geoLocation> -->
|
||||
</geoLocations>
|
||||
</geoLocations>
|
||||
</resource>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="RdrDate2"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<xsl:if test="EmbargoDate and ($unixTimestamp < EmbargoDate/@UnixTimestamp)">
|
||||
<date>
|
||||
<xsl:attribute name="dateType">Available</xsl:attribute>
|
||||
|
@ -156,7 +160,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="Coverage" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<geoLocation>
|
||||
<geoLocationBox>
|
||||
<westBoundLongitude>
|
||||
|
@ -176,7 +180,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="TitleAbstract" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<description>
|
||||
<xsl:attribute name="xml:lang">
|
||||
<xsl:value-of select="@Language" />
|
||||
|
@ -191,7 +195,7 @@
|
|||
</description>
|
||||
</xsl:template>
|
||||
<xsl:template match="TitleAbstractAdditional" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<description>
|
||||
<xsl:attribute name="xml:lang">
|
||||
<xsl:value-of select="@Language" />
|
||||
|
@ -228,7 +232,7 @@
|
|||
|
||||
|
||||
<xsl:template match="Identifier" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<identifier>
|
||||
<xsl:attribute name="identifierType">
|
||||
<xsl:text>DOI</xsl:text>
|
||||
|
@ -238,7 +242,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="TitleMain" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<title>
|
||||
<xsl:if test="@Language != ''">
|
||||
<xsl:attribute name="xml:lang">
|
||||
|
@ -254,7 +258,7 @@
|
|||
</title>
|
||||
</xsl:template>
|
||||
<xsl:template match="TitleAdditional" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<title>
|
||||
<xsl:if test="@Language != ''">
|
||||
<xsl:attribute name="xml:lang">
|
||||
|
@ -280,7 +284,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="Subject" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<subject>
|
||||
<xsl:if test="@Language != ''">
|
||||
<xsl:attribute name="xml:lang">
|
||||
|
@ -292,7 +296,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template name="AlternateIdentifier" match="AlternateIdentifier" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<alternateIdentifier>
|
||||
<xsl:attribute name="alternateIdentifierType">
|
||||
<xsl:text>url</xsl:text>
|
||||
|
@ -303,7 +307,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="Reference" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<relatedIdentifier>
|
||||
<xsl:attribute name="relatedIdentifierType">
|
||||
<xsl:value-of select="@Type" />
|
||||
|
@ -316,7 +320,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="PersonContributor" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<contributor>
|
||||
<xsl:if test="@ContributorType != ''">
|
||||
<xsl:attribute name="contributorType">
|
||||
|
@ -335,7 +339,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="PersonAuthor" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<creator>
|
||||
<creatorName>
|
||||
<xsl:if test="@NameType != ''">
|
||||
|
@ -374,11 +378,11 @@
|
|||
<nameType><xsl:value-of select="@NameType" /></nameType>
|
||||
</xsl:if> -->
|
||||
|
||||
</creator>
|
||||
</creator>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="File/@MimeType" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<format>
|
||||
<xsl:choose>
|
||||
<xsl:when test=". = 'application/x-sqlite3'">
|
||||
|
@ -392,7 +396,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="Licence" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<rights>
|
||||
<xsl:attribute name="xml:lang">
|
||||
<xsl:value-of select="@Language" />
|
||||
|
|
|
@ -418,7 +418,9 @@
|
|||
<!-- Creator: Autor (falls vorhanden), sonst Herausgeber (falls vorhanden), sonst Urhebende Koerperschaft -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="PersonAuthor">
|
||||
<xsl:apply-templates select="PersonAuthor" mode="oai_dc" />
|
||||
<xsl:apply-templates select="PersonAuthor" mode="oai_dc">
|
||||
<xsl:sort select="@SortOrder"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:when test="@CreatingCorporation">
|
||||
<dc:creator>
|
||||
|
@ -440,7 +442,9 @@
|
|||
</dc:publisher>
|
||||
|
||||
<!-- dc:contributor -->
|
||||
<xsl:apply-templates select="PersonContributor" mode="oai_dc" />
|
||||
<xsl:apply-templates select="PersonContributor" mode="oai_dc">
|
||||
<xsl:sort select="@SortOrder"/>
|
||||
</xsl:apply-templates>
|
||||
<!-- dc:date (call-template, weil die 'Funktion' nur einmal aufgerufen werden soll, nicht einmal für jedes Date-->
|
||||
<xsl:call-template name="RdrDate" />
|
||||
<!-- dc:date: embargo date -->
|
||||
|
@ -461,9 +465,9 @@
|
|||
<dc:identifier>
|
||||
<xsl:value-of select="string(@landingpage)" />
|
||||
<!-- <xsl:call-template name="url-encode">
|
||||
<xsl:with-param name="str" select="@landingpage"/>
|
||||
</xsl:call-template> -->
|
||||
</dc:identifier>
|
||||
<xsl:with-param name="str" select="@landingpage"/>
|
||||
</xsl:call-template> -->
|
||||
</dc:identifier>
|
||||
<!-- dc:language -->
|
||||
<xsl:apply-templates select="@Language" mode="oai_dc" />
|
||||
<!-- dc:relation -->
|
||||
|
@ -614,9 +618,9 @@
|
|||
<dc:relation>
|
||||
<xsl:value-of select="string(@Value)" />
|
||||
<!-- <xsl:call-template name="url-encode">
|
||||
<xsl:with-param name="str" select="@Value"/>
|
||||
</xsl:call-template> -->
|
||||
</dc:relation>
|
||||
<xsl:with-param name="str" select="@Value"/>
|
||||
</xsl:call-template> -->
|
||||
</dc:relation>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
@ -723,9 +727,9 @@
|
|||
<!-- <xsl:value-of select="concat($doiLink, @Value)" /> -->
|
||||
<xsl:value-of select="concat($doiPrefix, string(@Value))" />
|
||||
<!-- <xsl:call-template name="url-encode">
|
||||
<xsl:with-param name="str" select="concat($doiPrefix, @Value)"/>
|
||||
</xsl:call-template> -->
|
||||
</dc:relation>
|
||||
<xsl:with-param name="str" select="concat($doiPrefix, @Value)"/>
|
||||
</xsl:call-template> -->
|
||||
</dc:relation>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@CreatingCorporation" mode="oai_dc">
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user