Skip to content

Commit

Permalink
Merge branch 'w2p-121971_openaire-compliance-updates-7.6' into w2p-12…
Browse files Browse the repository at this point in the history
…1971_openaire-compliance-updates-main
  • Loading branch information
nona-luypaert committed Dec 12, 2024
2 parents be92570 + e540168 commit cc99ece
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 48 deletions.
36 changes: 11 additions & 25 deletions dspace/config/crosswalks/oai/metadataFormats/oai_openaire.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
<!-- datacite.date @name=issued or @name=accepted -->
<!-- https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_publicationdate.html -->
<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">
<xsl:variable name="dc_date_value" select="doc:element/doc:field[@name='value']/text()"/>
<datacite:date dateType="Accepted">
Expand Down Expand Up @@ -920,26 +920,26 @@
<xsl:attribute name="mimeType">
<xsl:value-of select="doc:field[@name='format']"/>
</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>
<!-- Currently there is no available way to identify the type of the bitstream -->
<xsl:when test="1">
<xsl:text>fulltext</xsl:text>
</xsl:when>
<!--xsl:when test="$type='dataset'">
xsl:when test="$type='dataset'">
<xsl:text>dataset</xsl:text>
</xsl:when>
<xsl:when test="$type='software'">
<xsl:text>software</xsl:text>
</xsl:when>
<xsl:when test="$type='article'">
<xsl:text>fulltext</xsl:text>
</xsl:when-->
</xsl:when
<xsl:otherwise>
<xsl:text>other</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:attribute>-->
<xsl:value-of select="doc:field[@name='url']"/>
</oaire:file>
</xsl:template>
Expand Down Expand Up @@ -1071,6 +1071,8 @@
</xsl:template>

<!-- 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:param name="elementName"/>
<xsl:variable name="lc_dc_date_type">
Expand All @@ -1079,27 +1081,11 @@
</xsl:call-template>
</xsl:variable>
<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: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:template>

Expand Down
4 changes: 4 additions & 0 deletions dspace/config/item-submission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@

<!--Step will be to Sign off on the 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 name="openairePersonSubmission">
<step id="collection"/>
Expand Down
23 changes: 0 additions & 23 deletions dspace/config/submission-forms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1133,29 +1133,6 @@
<required></required>
</relation-field>
</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>
<field>
<dc-schema>dc</dc-schema>
Expand Down

0 comments on commit cc99ece

Please sign in to comment.