Project

General

Profile

1 57047 michele.ar
<RESOURCE_PROFILE>
2 61320 michele.ar
    <HEADER>
3
        <RESOURCE_IDENTIFIER value="23ecba9f-f152-498e-b639-2ac8022865be_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
4
        <RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
5
        <RESOURCE_KIND value="TransformationRuleDSResources"/>
6
        <RESOURCE_URI value=""/>
7 61786 michele.ar
        <DATE_OF_CREATION value="2021-08-09T11:33:51+02:00"/>
8 61320 michele.ar
    </HEADER>
9
    <BODY>
10
        <CONFIGURATION>
11
            <SOURCE_METADATA_FORMAT interpretation="final" layout="oai" name="native"/>
12
            <SINK_METADATA_FORMAT name="oai_dc"/>
13
            <IMPORTED/>
14
            <SCRIPT>
15
                <TITLE>native to OAI_DC</TITLE>
16
                <CODE>
17
                    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dnet="eu.dnetlib.data.utils.XsltFunctions" xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="xsl dnet oai" version="2.0">
18
                        <xsl:output encoding="UTF-8" method="xml" omit-xml-declaration="yes"/>
19
                        <xsl:template match="/">
20
                            <xsl:for-each select="//record">
21
                                <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
22
                                    <xsl:variable name="bestRights" select="./bestRights"/>
23
                                    <xsl:variable name="type" select="./type"/>
24
                                    <dc:title>
25
                                        <xsl:value-of select="./title"/>
26
                                    </dc:title>
27
                                    <xsl:for-each select="./creators/creator">
28
                                        <dc:creator>
29
                                            <xsl:value-of select="."/>
30
                                        </dc:creator>
31
                                    </xsl:for-each>
32
                                    <xsl:for-each select="./contributors/contributor">
33
                                        <dc:contributor>
34
                                            <xsl:value-of select="."/>
35
                                        </dc:contributor>
36
                                    </xsl:for-each>
37
                                    <dc:publisher>
38
                                        <xsl:value-of select="./publisher"/>
39
                                    </dc:publisher>
40
                                    <dc:description>
41
                                        <xsl:value-of select="./abstract"/>
42
                                    </dc:description>
43
                                    <xsl:for-each select="./source">
44
                                        <dc:source>
45
                                            <xsl:value-of select="."/>
46
                                        </dc:source>
47
                                    </xsl:for-each>
48
                                    <xsl:for-each select="./subjects/subject">
49
                                        <dc:subject>
50
                                            <xsl:value-of select="."/>
51
                                        </dc:subject>
52
                                    </xsl:for-each>
53
                                    <dc:date>
54
                                        <xsl:value-of select="./date"/>
55
                                    </dc:date>
56
                                    <dc:language>
57
                                        <xsl:value-of select="./language"/>
58
                                    </dc:language>
59
                                    <dc:type>
60
                                        <xsl:choose>
61
                                            <xsl:when test="$type = 'Conference article'">http://purl.org/coar/resource_type/c_5794</xsl:when>
62
                                            <xsl:when test="$type = 'Journal article'">http://purl.org/coar/resource_type/c_6501</xsl:when>
63
                                            <xsl:when test="$type = 'Report'">http://purl.org/coar/resource_type/c_93fc</xsl:when>
64
                                            <xsl:when test="$type = 'Contribution to journal'">http://purl.org/coar/resource_type/c_3e5a</xsl:when>
65
                                            <xsl:when test="$type = 'Contribution to conference'">http://purl.org/coar/resource_type/c_c94f</xsl:when>
66
                                            <xsl:when test="$type = 'Book'">http://purl.org/coar/resource_type/c_2f33</xsl:when>
67
                                            <xsl:when test="$type = 'Contribution to book'">http://purl.org/coar/resource_type/c_3248</xsl:when>
68
                                            <xsl:when test="$type = 'Master thesis'">http://purl.org/coar/resource_type/c_bdcc</xsl:when>
69
                                            <xsl:when test="$type = 'Bachelor thesis'">http://purl.org/coar/resource_type/c_7a1f</xsl:when>
70
                                            <xsl:when test="$type = 'Doctoral thesis'">http://purl.org/coar/resource_type/c_db06</xsl:when>
71
                                            <xsl:when test="$type = 'Patent'">http://purl.org/coar/resource_type/c_15cd</xsl:when>
72
                                            <xsl:when test="$type = 'Software'">http://purl.org/coar/resource_type/c_5ce6</xsl:when>
73
                                            <xsl:when test="$type = 'Dataset'">http://purl.org/coar/resource_type/c_ddb1</xsl:when>
74
                                            <xsl:when test="$type = 'Other'">http://purl.org/coar/resource_type/c_1843</xsl:when>
75
                                            <xsl:otherwise>http://purl.org/coar/resource_type/c_1843</xsl:otherwise>
76
                                        </xsl:choose>
77
                                    </dc:type>
78
                                    <dc:type>
79
                                        <xsl:choose>
80
                                            <xsl:when test="$type = 'Conference article'">info:eu-repo/semantics/article</xsl:when>
81
                                            <xsl:when test="$type = 'Journal article'">info:eu-repo/semantics/article</xsl:when>
82
                                            <xsl:when test="$type = 'Report'">info:eu-repo/semantics/report</xsl:when>
83
                                            <xsl:when test="$type = 'Contribution to journal'">info:eu-repo/semantics/contributionToPeriodical</xsl:when>
84
                                            <xsl:when test="$type = 'Contribution to conference'">info:eu-repo/semantics/conferenceObject</xsl:when>
85
                                            <xsl:when test="$type = 'Book'">info:eu-repo/semantics/book</xsl:when>
86
                                            <xsl:when test="$type = 'Contribution to book'">info:eu-repo/semantics/bookPart</xsl:when>
87
                                            <xsl:when test="$type = 'Master thesis'">info:eu-repo/semantics/masterThesis</xsl:when>
88
                                            <xsl:when test="$type = 'Bachelor thesis'">info:eu-repo/semantics/bachelorThesis</xsl:when>
89
                                            <xsl:when test="$type = 'Doctoral thesis'">info:eu-repo/semantics/doctoralThesis</xsl:when>
90
                                            <xsl:when test="$type = 'Patent'">info:eu-repo/semantics/patent</xsl:when>
91
                                            <xsl:when test="$type = 'Software'">info:eu-repo/semantics/other</xsl:when>
92
                                            <xsl:when test="$type = 'Dataset'">info:eu-repo/semantics/other</xsl:when>
93
                                            <xsl:when test="$type = 'Other'">info:eu-repo/semantics/other</xsl:when>
94
                                            <xsl:otherwise>info:eu-repo/semantics/other</xsl:otherwise>
95
                                        </xsl:choose>
96
                                    </dc:type>
97
                                    <dc:type>
98
                                        <xsl:value-of select="$type"/>
99
                                    </dc:type>
100
                                    <dc:rights>
101
                                        <xsl:choose>
102
                                            <xsl:when test="$bestRights = 'Closed Access'">info:eu-repo/semantics/closedAccess</xsl:when>
103
                                            <xsl:when test="$bestRights = 'Open Access'">info:eu-repo/semantics/openAccess</xsl:when>
104
                                            <xsl:when test="$bestRights = 'Restricted'">info:eu-repo/semantics/restrictedAccess</xsl:when>
105
                                            <xsl:otherwise>info:eu-repo/semantics/restrictedAccess</xsl:otherwise><!-- IT SHOULD BE UNKNOWN -->
106
                                        </xsl:choose>
107
                                    </dc:rights>
108 61786 michele.ar
									<xsl:if test="//inCollection[./acronym = 'ISTI']">
109
	                                    <dc:identifier>
110
	                                        <xsl:value-of select="concat('https://openportal.isti.cnr.it/doc?id=people______::', dnet:md5(./identifier))"/>
111
	                                    </dc:identifier>
112
                                    </xsl:if>
113
									<xsl:if test="//inCollection[./acronym = 'ISPC']">
114
	                                    <dc:identifier>
115
	                                        <xsl:value-of select="concat('https://openportal.ispc.cnr.it/doc?id=people______::', dnet:md5(./identifier))"/>
116
	                                    </dc:identifier>
117
                                    </xsl:if>
118
									<xsl:if test="//inCollection[./acronym = 'ISMAR']">
119
	                                    <dc:identifier>
120
	                                        <xsl:value-of select="concat('https://openportal.ismar.cnr.it/doc?id=people______::', dnet:md5(./identifier))"/>
121
	                                    </dc:identifier>
122
                                    </xsl:if>
123 61320 michele.ar
                                    <xsl:for-each select="./dois/doi">
124
                                        <dc:identifier>
125
                                            <xsl:value-of select="concat('info:doi:',.)"/>
126
                                        </dc:identifier>
127
                                    </xsl:for-each>
128
                                    <xsl:for-each select="./projects/project">
129
                                        <dc:relation>
130 61487 michele.ar
                                            <xsl:value-of select="dnet:projectLongId(./funder,./program,./code,./jurisdiction,./name,./acronym)"/>
131 61320 michele.ar
                                        </dc:relation>
132
                                    </xsl:for-each>
133
                                </oai_dc:dc>
134
                            </xsl:for-each>
135
                        </xsl:template>
136
                    </xsl:stylesheet>
137
                </CODE>
138
            </SCRIPT>
139
        </CONFIGURATION>
140
        <STATUS/>
141
        <SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS>
142
    </BODY>
143 61786 michele.ar
</RESOURCE_PROFILE>