feature bugs oai
This commit is contained in:
parent
526b48b06e
commit
46a68e5418
|
@ -34,12 +34,12 @@ trait DatasetExtension
|
|||
),
|
||||
'TitleAbstract' => array(
|
||||
'model' => Description::class,
|
||||
'options' => array('type' => ['Abstract']),
|
||||
'options' => array('type' => ['Abstract', 'Translated']),
|
||||
'fetch' => 'eager'
|
||||
),
|
||||
'TitleAbstractAdditional' => array(
|
||||
'model' => Description::class,
|
||||
'options' => array('type' => ['Translated', 'Methods', 'Technical_info', 'Series_information', 'Other']),
|
||||
'options' => array('type' => ['Methods', 'Technical_info', 'Series_information', 'Other']),
|
||||
'fetch' => 'eager'
|
||||
),
|
||||
'Licence' => array(
|
||||
|
|
|
@ -540,7 +540,7 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="EmbargoDate" mode="oai_dc">
|
||||
<xsl:if test="$unixTimestamp < ./@UnixTimestamp" >
|
||||
<xsl:if test="$unixTimestamp < ./@UnixTimestamp">
|
||||
<dc:date>
|
||||
<xsl:text>info:eu-repo/date/embargoEnd/</xsl:text>
|
||||
<xsl:value-of select="./@Year"/>
|
||||
|
@ -564,7 +564,14 @@
|
|||
|
||||
<xsl:template match="File/@MimeType" mode="oai_dc">
|
||||
<dc:format>
|
||||
<xsl:choose>
|
||||
<xsl:when test=". = 'application/x-sqlite3'">
|
||||
<xsl:text>application/geopackage+sqlite3</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="." />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</dc:format>
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -183,7 +183,8 @@
|
|||
</xsl:attribute>
|
||||
<xsl:if test="@Type != ''">
|
||||
<xsl:attribute name="descriptionType">
|
||||
<xsl:value-of select="@Type" />
|
||||
<!-- <xsl:value-of select="@Type" /> -->
|
||||
<xsl:text>Abstract</xsl:text>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@Value" />
|
||||
|
|
|
@ -185,7 +185,8 @@
|
|||
</xsl:attribute>
|
||||
<xsl:if test="@Type != ''">
|
||||
<xsl:attribute name="descriptionType">
|
||||
<xsl:value-of select="@Type" />
|
||||
<!-- <xsl:value-of select="@Type" /> -->
|
||||
<xsl:text>Abstract</xsl:text>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@Value" />
|
||||
|
@ -261,11 +262,20 @@
|
|||
<xsl:value-of select="@Language" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@Type != '' and @Type != 'Main'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@Type != '' and @Type != 'Sub' and @Type != 'Main'">
|
||||
<xsl:attribute name="titleType">
|
||||
<xsl:value-of select="@Type" />
|
||||
<xsl:text>Title</xsl:text>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
<xsl:when test="@Type = 'Sub'">
|
||||
<xsl:attribute name="titleType">
|
||||
<xsl:value-of select="@Type" />
|
||||
<xsl:text>title</xsl:text>
|
||||
</xsl:attribute>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="@Value"/>
|
||||
</title>
|
||||
</xsl:template>
|
||||
|
@ -371,7 +381,14 @@
|
|||
<xsl:template match="File/@MimeType" mode="oai_datacite"
|
||||
xmlns="http://datacite.org/schema/kernel-4">
|
||||
<format>
|
||||
<xsl:choose>
|
||||
<xsl:when test=". = 'application/x-sqlite3'">
|
||||
<xsl:text>application/geopackage+sqlite3</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="." />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</format>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user