- composer updates
- DatasetExtension.php_ erweitert um EmbargoDate- und CreatedAt-Attribute - dc:type im OAI ist nun nur Dataset - datacite: Anzeige Erstellungsdatum und EmbargoDatum - Im Frontend nun: "Datum der Freischaltung"
This commit is contained in:
parent
fd4b0eb87d
commit
82665ab35c
5 changed files with 443 additions and 159 deletions
|
@ -350,7 +350,8 @@
|
|||
<!-- dc:date: embargo date -->
|
||||
<xsl:apply-templates select="EmbargoDate" mode="oai_dc" />
|
||||
<!-- dc:type -->
|
||||
<xsl:apply-templates select="@Type" mode="oai_dc" />
|
||||
<!-- <xsl:apply-templates select="@Type" mode="oai_dc" /> -->
|
||||
<dc:type>Dataset</dc:type>
|
||||
<!-- dc:format -->
|
||||
<xsl:apply-templates select="File/@MimeType" mode="oai_dc" />
|
||||
<!-- dc:identifier -->
|
||||
|
@ -488,19 +489,20 @@
|
|||
<dc:date>
|
||||
<xsl:choose>
|
||||
<xsl:when test="PublishedDate">
|
||||
<xsl:value-of select="PublishedDate/@Year"/>
|
||||
- <xsl:value-of select="format-number(PublishedDate/@Month,'00')"/>
|
||||
- <xsl:value-of select="format-number(PublishedDate/@Day,'00')"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="CompletedDate">
|
||||
<xsl:value-of select="CompletedDate/@Year"/>
|
||||
- <xsl:value-of select="format-number(CompletedDate/@Month,'00')"/>
|
||||
- <xsl:value-of select="format-number(CompletedDate/@Day,'00')"/>
|
||||
</xsl:when>
|
||||
<xsl:variable name="publishedDate" select="concat(
|
||||
PublishedDate/@Year, '-',
|
||||
format-number(PublishedDate/@Month,'00'), '-',
|
||||
format-number(PublishedDate/@Day,'00')
|
||||
)" />
|
||||
<xsl:value-of select="$publishedDate" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="ServerDatePublished/@Year"/>
|
||||
- <xsl:value-of select="format-number(ServerDatePublished/@Month,'00')"/>
|
||||
- <xsl:value-of select="format-number(ServerDatePublished/@Day,'00')"/>
|
||||
<xsl:variable name="serverDatePublished" select="concat(
|
||||
ServerDatePublished/@Year, '-',
|
||||
format-number(ServerDatePublished/@Month,'00'), '-',
|
||||
format-number(ServerDatePublished/@Day,'00')
|
||||
)" />
|
||||
<xsl:value-of select="$serverDatePublished" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</dc:date>
|
||||
|
@ -517,7 +519,7 @@
|
|||
|
||||
|
||||
<!-- für ListRecords -->
|
||||
<xsl:template match="@Type" mode="oai_dc">
|
||||
<!-- <xsl:template match="@Type" mode="oai_dc">
|
||||
<dc:type>
|
||||
<xsl:value-of select="." />
|
||||
</dc:type>
|
||||
|
@ -525,7 +527,7 @@
|
|||
<xsl:text>data-type:</xsl:text>
|
||||
<xsl:value-of select="." />
|
||||
</dc:type>
|
||||
</xsl:template>
|
||||
</xsl:template> -->
|
||||
|
||||
<xsl:template match="File/@MimeType" mode="oai_dc">
|
||||
<dc:format>
|
||||
|
|
|
@ -73,15 +73,18 @@
|
|||
<contributors>
|
||||
<xsl:apply-templates select="PersonContributor" mode="oai_datacite" />
|
||||
</contributors>
|
||||
<dates>
|
||||
<xsl:call-template name="RdrDate2" mode="oai_datacite" />
|
||||
</dates>
|
||||
<resourceType resourceTypeGeneral="Dataset">
|
||||
<xsl:text>Dataset</xsl:text>
|
||||
<!-- <xsl:value-of select="@Type" /> -->
|
||||
</resourceType>
|
||||
<xsl:if test="Reference">
|
||||
<relatedIdentifiers>
|
||||
<xsl:apply-templates select="Reference" mode="oai_datacite" />
|
||||
</relatedIdentifiers>
|
||||
</xsl:if>
|
||||
<relatedIdentifiers>
|
||||
<xsl:apply-templates select="Reference" mode="oai_datacite" />
|
||||
</relatedIdentifiers>
|
||||
</xsl:if>
|
||||
<rightsList>
|
||||
<xsl:apply-templates select="Licence" mode="oai_datacite" />
|
||||
</rightsList>
|
||||
|
@ -112,6 +115,31 @@
|
|||
</resource>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="RdrDate2" mode="oai_datacite">
|
||||
<xsl:if test="EmbargoDate">
|
||||
<date>
|
||||
<xsl:attribute name="dataType">Available</xsl:attribute>
|
||||
<xsl:variable name="embargoDate" select="concat(
|
||||
EmbargoDate/@Year, '-',
|
||||
format-number(EmbargoDate/@Month,'00'), '-',
|
||||
format-number(EmbargoDate/@Day,'00')
|
||||
)" />
|
||||
<xsl:value-of select="$embargoDate" />
|
||||
</date>
|
||||
</xsl:if>
|
||||
<xsl:if test="CreatedAt">
|
||||
<date>
|
||||
<xsl:attribute name="dataType">created</xsl:attribute>
|
||||
<xsl:variable name="createdAt" select="concat(
|
||||
CreatedAt/@Year, '-',
|
||||
format-number(CreatedAt/@Month,'00'), '-',
|
||||
format-number(CreatedAt/@Day,'00')
|
||||
)" />
|
||||
<xsl:value-of select="$createdAt" />
|
||||
</date>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="Coverage" mode="oai_datacite">
|
||||
<geoLocation>
|
||||
<geoLocationBox>
|
||||
|
@ -173,7 +201,7 @@
|
|||
<xsl:value-of select="@Value"/>
|
||||
</title>
|
||||
</xsl:template>
|
||||
<xsl:template match="TitleAdditional" mode="oai_datacite">
|
||||
<xsl:template match="TitleAdditional" mode="oai_datacite">
|
||||
<title>
|
||||
<xsl:if test="@Language != ''">
|
||||
<xsl:attribute name="xml:lang">
|
||||
|
@ -191,34 +219,34 @@
|
|||
|
||||
<xsl:template match="Subject" mode="oai_datacite">
|
||||
<subject>
|
||||
<xsl:if test="@Language != ''">
|
||||
<xsl:attribute name="xml:lang">
|
||||
<xsl:value-of select="@Language" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@Value" />
|
||||
</subject>
|
||||
</xsl:template>
|
||||
<xsl:if test="@Language != ''">
|
||||
<xsl:attribute name="xml:lang">
|
||||
<xsl:value-of select="@Language" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@Value" />
|
||||
</subject>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="Reference" mode="oai_datacite">
|
||||
<xsl:template match="Reference" mode="oai_datacite">
|
||||
<relatedIdentifier>
|
||||
<xsl:attribute name="relatedIdentifierType">
|
||||
<xsl:value-of select="@Type" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="relationType">
|
||||
<xsl:value-of select="@Relation" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@Value" />
|
||||
</relatedIdentifier>
|
||||
</xsl:template>
|
||||
<xsl:attribute name="relatedIdentifierType">
|
||||
<xsl:value-of select="@Type" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="relationType">
|
||||
<xsl:value-of select="@Relation" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="@Value" />
|
||||
</relatedIdentifier>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="PersonContributor" mode="oai_datacite">
|
||||
<contributor>
|
||||
<contributorName>
|
||||
<xsl:if test="@NameType != ''">
|
||||
<xsl:attribute name="nameType">
|
||||
<xsl:value-of select="@NameType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="nameType">
|
||||
<xsl:value-of select="@NameType" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@LastName" />
|
||||
</contributorName>
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue