Revision 62699
Added by Alessia Bardi over 1 year ago
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/xslt_cleaning_oaire2datacite_hadoop.xml | ||
---|---|---|
14 | 14 |
<IMPORTED/> |
15 | 15 |
<SCRIPT> |
16 | 16 |
<TITLE>xslt_cleaning_oaire2datacite_hadoop</TITLE> |
17 |
<CODE><!-- adaptation 2021-08-23 ; ACz/UNIBI --> |
|
17 |
<CODE> |
|
18 |
<!-- |
|
19 |
adaptation 2023-05-09 for ROHub types in EOSC Future ; Alessia Bardi/CNR |
|
20 |
adaptation 2021-08-23 ; ACz/UNIBI |
|
21 |
--> |
|
18 | 22 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
19 | 23 |
xmlns:oaire="http://namespace.openaire.eu/schema/oaire/" |
20 | 24 |
xmlns:vocabulary="http://eu/dnetlib/transform/clean" |
... | ... | |
344 | 348 |
<xsl:attribute name="type"> |
345 | 349 |
<xsl:value-of select="$varSuperType"/> |
346 | 350 |
</xsl:attribute> |
347 |
<xsl:value-of select="$varCobjCategory"/> |
|
351 |
<!-- EOSC Future: special handling of research objects from ROHub --> |
|
352 |
<xsl:choose> |
|
353 |
<xsl:when test="$varDataSourceId = 'fairsharing_::4119'"> |
|
354 |
<xsl:value-of |
|
355 |
select="vocabulary:clean(//*[local-name()='resourceType']/text(), 'dnet:publication_resource')"/> |
|
356 |
</xsl:when> |
|
357 |
<xsl:otherwise> |
|
358 |
<xsl:value-of select="$varCobjCategory"/> |
|
359 |
</xsl:otherwise> |
|
360 |
</xsl:choose> |
|
361 |
|
|
348 | 362 |
</dr:CobjCategory><!-- |
349 | 363 |
<dr:CobjCategory> |
350 | 364 |
<xsl:attribute name="type" select="//oaf:datasourceprefix[. = '_______qeios' and contains(//dri:recordIdentifier, '/definition/')]/'other', //oaf:datasourceprefix[not(. = '_______qeios' and contains(//dri:recordIdentifier, '/definition/'))]/$varSuperType"/> |
Also available in: Unified diff
#7847#note-19: adapted rule for typing ROHub RO-crate into ORP of specific type 'Research Object'