- apply SortOrder for metadata standard dc, datacite and iso19139

This commit is contained in:
Arno Kaimbacher 2023-04-04 14:39:16 +02:00
parent 2a6a2a6def
commit 5b6f81c34d
4 changed files with 73 additions and 61 deletions

View File

@ -153,10 +153,14 @@
</gmd:identifier> </gmd:identifier>
<!-- gmd:citedResponsibleParty - creator --> <!-- 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 --> <!-- 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 --> <!-- publisher -->
<gmd:citedResponsibleParty> <gmd:citedResponsibleParty>

View File

@ -58,7 +58,9 @@
<!--<datacite:creator>--> <!--<datacite:creator>-->
<creators> <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> </creators>
<titles> <titles>
<xsl:apply-templates select="TitleMain" mode="oai_datacite" /> <xsl:apply-templates select="TitleMain" mode="oai_datacite" />
@ -79,7 +81,9 @@
</language> </language>
<xsl:if test="PersonContributor"> <xsl:if test="PersonContributor">
<contributors> <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> </contributors>
</xsl:if> </xsl:if>
<dates> <dates>

View File

@ -418,7 +418,9 @@
<!-- Creator: Autor (falls vorhanden), sonst Herausgeber (falls vorhanden), sonst Urhebende Koerperschaft --> <!-- Creator: Autor (falls vorhanden), sonst Herausgeber (falls vorhanden), sonst Urhebende Koerperschaft -->
<xsl:choose> <xsl:choose>
<xsl:when test="PersonAuthor"> <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>
<xsl:when test="@CreatingCorporation"> <xsl:when test="@CreatingCorporation">
<dc:creator> <dc:creator>
@ -440,7 +442,9 @@
</dc:publisher> </dc:publisher>
<!-- dc:contributor --> <!-- 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--> <!-- dc:date (call-template, weil die 'Funktion' nur einmal aufgerufen werden soll, nicht einmal für jedes Date-->
<xsl:call-template name="RdrDate" /> <xsl:call-template name="RdrDate" />
<!-- dc:date: embargo date --> <!-- dc:date: embargo date -->

File diff suppressed because one or more lines are too long