Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER
4
				value="7b493382-9aed-44d7-ba77-fc995678fcaa_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
5
		<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
6
		<RESOURCE_KIND value="TransformationRuleDSResources"/>
7
		<RESOURCE_URI value=""/>
8
		<DATE_OF_CREATION value="2014-11-19T11:05:55+01:00"/>
9
	</HEADER>
10
	<BODY>
11
		<CONFIGURATION>
12
			<IMPORTED/>
13
			<SCRIPT>
14
				<TITLE>DLI: 3tu to Scholix transform</TITLE>
15
				<CODE><![CDATA[<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
16
    xmlns:datetime="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common"
17
    xmlns:oaf="http://namespace.dnet.eu/oaf" xmlns:dc="http://purl.org/dc/elements/1.1/"
18
    xmlns:dri="http://www.driver-repository.eu/namespace/dri"
19
    xmlns:dnet="eu.dnetlib.miscutils.functional.xml.DnetXsltFunctions"
20
    xmlns:dli="eu.dnetlib.dli.DLIUtils"
21
    xmlns:oai="http://www.openarchives.org/OAI/2.0/"
22
    exclude-result-prefixes="xsl datetime dnet dli exslt">
23
    <xsl:template match="/">
24
        <record>
25
            <xsl:variable name="source">
26
                <xsl:value-of select="//dri:datasourceprefix"/>
27
            </xsl:variable>
28
            <xsl:variable name="id" select="//*[local-name() = 'dataset']/@doi"/>
29
            <xsl:variable name="doitype" select="//*[local-name() = 'column' and ./@name = 'db']"/>
30
            <xsl:variable name="datasourceprefix" select="//dri:datasourceprefix"/>
31

    
32
            <xsl:copy-of select="//*[local-name()='header']"/>
33
            <metadata>
34
                <scholix:link xmlns:scholix="http://www.scholix.org">
35
                    <assertion_info>
36
                        <source>
37
                            <xsl:value-of select="$source"/>
38
                        </source>
39
                        <relationType scheme="datacite">unknown</relationType>
40
                    </assertion_info>
41
                    <source>
42
                        <pid>
43
                            <xsl:attribute name="type">
44
                                <xsl:value-of select="string('doi')"/>
45
                            </xsl:attribute>
46
                            <xsl:value-of select="$id"/>
47
                        </pid>
48
                        <type>dataset</type>
49
                    </source>
50

    
51
                    <target>
52
                        <pid type="url">
53
                            <xsl:value-of select="//link/@uri"/>
54
                        </pid>
55
                        <type>unknown</type>
56
                    </target>
57
                </scholix:link>
58
            </metadata>
59
            <oaf:about>
60
                <oaf:datainfo>
61

    
62
                    <oaf:collectedFrom completionStatus="incomplete">
63
                        <xsl:attribute name="id"><xsl:value-of select="dli:getIdFromDataSourcePrefix($source)"/> </xsl:attribute>
64
                        <xsl:attribute name="name"><xsl:value-of select="dli:getNameFromDataSourcePrefix($source)"/> </xsl:attribute>
65
                    </oaf:collectedFrom>
66

    
67
                    <oaf:completionStatus>incomplete</oaf:completionStatus>
68
                    <oaf:provisionMode>collected</oaf:provisionMode>
69
                </oaf:datainfo>
70
            </oaf:about>
71
        </record>
72
    </xsl:template>
73
</xsl:stylesheet>
74
]]></CODE>
75
			</SCRIPT>
76
		</CONFIGURATION>
77
		<STATUS/>
78
		<SECURITY_PARAMETERS/>
79
	</BODY>
80
</RESOURCE_PROFILE>
(1-1/8)