Merge pull request #10128 from atmire/w2p-121971_openaire-compliance-updates-main

OpenAIRE v4 compliance updates
This commit is contained in:
Tim Donohue
2025-02-12 12:34:28 -06:00
committed by GitHub
3 changed files with 15 additions and 48 deletions

View File

@@ -738,7 +738,7 @@
<!-- datacite.date @name=issued or @name=accepted --> <!-- datacite.date @name=issued or @name=accepted -->
<!-- https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_publicationdate.html --> <!-- https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_publicationdate.html -->
<xsl:template <xsl:template
match="doc:element[@name='dc']/doc:element[@name='date']/doc:element[@name='issued' or @name='accepted']" match="doc:element[@name='dc']/doc:element[@name='date']/doc:element[@name='issued']"
mode="datacite"> mode="datacite">
<xsl:variable name="dc_date_value" select="doc:element/doc:field[@name='value']/text()"/> <xsl:variable name="dc_date_value" select="doc:element/doc:field[@name='value']/text()"/>
<datacite:date dateType="Accepted"> <datacite:date dateType="Accepted">
@@ -920,13 +920,13 @@
<xsl:attribute name="mimeType"> <xsl:attribute name="mimeType">
<xsl:value-of select="doc:field[@name='format']"/> <xsl:value-of select="doc:field[@name='format']"/>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="objectType"> <!-- Currently there is no available way to identify the type of the bitstream -->
<!--<xsl:attribute name="objectType">
<xsl:choose> <xsl:choose>
<!-- Currently there is no available way to identify the type of the bitstream -->
<xsl:when test="1"> <xsl:when test="1">
<xsl:text>fulltext</xsl:text> <xsl:text>fulltext</xsl:text>
</xsl:when> </xsl:when>
<!--xsl:when test="$type='dataset'"> xsl:when test="$type='dataset'">
<xsl:text>dataset</xsl:text> <xsl:text>dataset</xsl:text>
</xsl:when> </xsl:when>
<xsl:when test="$type='software'"> <xsl:when test="$type='software'">
@@ -934,12 +934,12 @@
</xsl:when> </xsl:when>
<xsl:when test="$type='article'"> <xsl:when test="$type='article'">
<xsl:text>fulltext</xsl:text> <xsl:text>fulltext</xsl:text>
</xsl:when--> </xsl:when
<xsl:otherwise> <xsl:otherwise>
<xsl:text>other</xsl:text> <xsl:text>other</xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>-->
<xsl:value-of select="doc:field[@name='url']"/> <xsl:value-of select="doc:field[@name='url']"/>
</oaire:file> </oaire:file>
</xsl:template> </xsl:template>
@@ -1071,6 +1071,8 @@
</xsl:template> </xsl:template>
<!-- This template will retrieve the type of a date based on the element name --> <!-- This template will retrieve the type of a date based on the element name -->
<!-- https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/vocab_datetype.html -->
<!-- Accepted and Issued date types are handled separately above. -->
<xsl:template name="getDateType"> <xsl:template name="getDateType">
<xsl:param name="elementName"/> <xsl:param name="elementName"/>
<xsl:variable name="lc_dc_date_type"> <xsl:variable name="lc_dc_date_type">
@@ -1079,27 +1081,11 @@
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:choose> <xsl:choose>
<xsl:when test="$lc_dc_date_type='available' or $lc_dc_date_type = 'embargo'"> <xsl:when test="$lc_dc_date_type = 'embargo'">
<!-- Indicates the end of the embargo period. -->
<!-- https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_embargoenddate.html -->
<xsl:text>Available</xsl:text> <xsl:text>Available</xsl:text>
</xsl:when> </xsl:when>
<xsl:when test="$lc_dc_date_type='collected'">
<xsl:text>Collected</xsl:text>
</xsl:when>
<xsl:when test="$lc_dc_date_type='copyrighted' or $lc_dc_date_type='copyright'">
<xsl:text>Copyrighted</xsl:text>
</xsl:when>
<xsl:when test="$lc_dc_date_type='created'">
<xsl:text>Created</xsl:text>
</xsl:when>
<xsl:when test="$lc_dc_date_type='submitted'">
<xsl:text>Submitted</xsl:text>
</xsl:when>
<xsl:when test="$lc_dc_date_type='updated'">
<xsl:text>Updated</xsl:text>
</xsl:when>
<xsl:when test="$lc_dc_date_type='valid'">
<xsl:text>Valid</xsl:text>
</xsl:when>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>

View File

@@ -406,6 +406,10 @@
<!--Step will be to Sign off on the License --> <!--Step will be to Sign off on the License -->
<step id="license"/> <step id="license"/>
<!-- Step allows the user to select a Creative Commons License -->
<!-- Required for OpenAIREv4 support -->
<step id="cclicense"/>
</submission-process> </submission-process>
<submission-process name="openairePersonSubmission"> <submission-process name="openairePersonSubmission">
<step id="collection"/> <step id="collection"/>

View File

@@ -1133,29 +1133,6 @@
<required></required> <required></required>
</relation-field> </relation-field>
</row> </row>
<row>
<field>
<dc-schema>dc</dc-schema>
<dc-element>rights</dc-element>
<repeatable>false</repeatable>
<label>Access Type</label>
<input-type value-pairs-name="openaire_rights">dropdown</input-type>
<hint>Select the access type of the resource.</hint>
<required></required>
</field>
</row>
<row>
<field>
<dc-schema>oaire</dc-schema>
<dc-element>license</dc-element>
<dc-qualifier>condition</dc-qualifier>
<repeatable>false</repeatable>
<label>License</label>
<input-type value-pairs-name="openaire_license_types">dropdown</input-type>
<hint>Select the license of the resource.</hint>
<required></required>
</field>
</row>
<row> <row>
<field> <field>
<dc-schema>dc</dc-schema> <dc-schema>dc</dc-schema>