Project

General

Profile

« Previous | Next » 

Revision 62923

Added by Alessia Bardi 10 months ago

Synch with rule running on prod

View differences:

xslt_cleaning_oaire2datacite_hadoop.xml
5 5
        <RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
6 6
        <RESOURCE_KIND value="TransformationRuleDSResources"/>
7 7
        <RESOURCE_URI value=""/>
8
        <DATE_OF_CREATION value="2023-04-20T10:57:51+00:00"/>
8
        <DATE_OF_CREATION value="2023-11-27T09:43:46+00:00"/>
9 9
    </HEADER>
10 10
    <BODY>
11 11
        <CONFIGURATION>
......
14 14
            <IMPORTED/>
15 15
            <SCRIPT>
16 16
                <TITLE>xslt_cleaning_oaire2datacite_hadoop</TITLE>
17
                <CODE>
18
                    <!--
17
                <CODE><!--
19 18
                    adaptation 2023-05-09 for ROHub types in EOSC Future ; Alessia Bardi/CNR
20 19
                    adaptation 2021-08-23 ; ACz/UNIBI
21 20
                    -->
22
                    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
23
                                    xmlns:oaire="http://namespace.openaire.eu/schema/oaire/"
21
                    <xsl:stylesheet xmlns:oaire="http://namespace.openaire.eu/schema/oaire/"
22
                                    xmlns:dateCleaner="http://eu/dnetlib/transform/dateISO"
23
                                    xmlns:datacite="http://datacite.org/schema/kernel-4"
24
                                    xmlns:dr="http://www.driver-repository.eu/namespace/dr"
25
                                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26
                                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
24 27
                                    xmlns:vocabulary="http://eu/dnetlib/transform/clean"
25
                                    xmlns:dateCleaner="http://eu/dnetlib/transform/dateISO"
26 28
                                    xmlns:oaf="http://namespace.openaire.eu/oaf"
27 29
                                    xmlns:oai="http://www.openarchives.org/OAI/2.0/"
28
                                    xmlns:datacite="http://datacite.org/schema/kernel-4"
29 30
                                    xmlns:dri="http://www.driver-repository.eu/namespace/dri"
30 31
                                    xmlns:xs="http://www.w3.org/2001/XMLSchema"
31
                                    xmlns:dr="http://www.driver-repository.eu/namespace/dr"
32
                                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33 32
                                    xmlns:dc="http://purl.org/dc/elements/1.1/"
34 33
                                    exclude-result-prefixes="xsl vocabulary dateCleaner" version="2.0">
35 34
                        <xsl:param name="varOfficialName"/>
......
347 346
                                                              select="vocabulary:clean( $varCobjCategory, 'dnet:result_typologies')"/>
348 347
                                                <xsl:attribute name="type">
349 348
                                                    <xsl:value-of select="$varSuperType"/>
350
                                                </xsl:attribute>
351
                                                <!-- EOSC Future: special handling of research objects from ROHub -->
349
                                                </xsl:attribute><!-- EOSC Future: special handling of research objects from ROHub -->
352 350
                                                <xsl:choose>
353 351
                                                    <xsl:when test="$varDataSourceId = 'fairsharing_::4119'">
354 352
                                                        <xsl:value-of
......
358 356
                                                        <xsl:value-of select="$varCobjCategory"/>
359 357
                                                    </xsl:otherwise>
360 358
                                                </xsl:choose>
361

  
362 359
                                            </dr:CobjCategory><!--
363 360
                                            <dr:CobjCategory>
364 361
                                                <xsl:attribute name="type" select="//oaf:datasourceprefix[. = '_______qeios' and contains(//dri:recordIdentifier, '/definition/')]/'other', //oaf:datasourceprefix[not(. = '_______qeios' and contains(//dri:recordIdentifier, '/definition/'))]/$varSuperType"/>
......
589 586
                                    <xsl:when
590 587
                                            test="./*[local-name()='funderIdentifier'][matches(., '.*(doi.org/)?(10.13039/501100002428)\s*$')]                      or ./*[local-name()='funderName'][contains(., 'Fonds zur Förderung der Wissenschaftlichen Forschung') or contains(., 'Austrian Science Fund')]">
591 588
                                        <oaf:projectid>
592
                                            <xsl:value-of select="concat($varFCT, ./*[local-name()='awardNumber'])"/>
589
                                            <xsl:value-of select="concat($varFWF, ./*[local-name()='awardNumber'])"/>
593 590
                                        </oaf:projectid>
594 591
                                    </xsl:when><!-- MESTD -->
595 592
                                    <xsl:when

Also available in: Unified diff