1 |
40203
|
claudio.at
|
<RESOURCE_PROFILE>
|
2 |
|
|
<HEADER>
|
3 |
|
|
<RESOURCE_IDENTIFIER value="621df4c6-ff71-4c1c-82bf-67a64c850be6_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
|
4 |
|
|
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
|
5 |
|
|
<RESOURCE_KIND value="TransformationRuleDSResources"/>
|
6 |
|
|
<RESOURCE_URI value=""/>
|
7 |
|
|
<DATE_OF_CREATION value="2015-02-27T17:15:30+00:00"/>
|
8 |
|
|
</HEADER>
|
9 |
|
|
<BODY>
|
10 |
|
|
<CONFIGURATION>
|
11 |
|
|
<SOURCE_METADATA_FORMAT name="dbmf" layout="store" interpretation="cleaned"/>
|
12 |
|
|
<SINK_METADATA_FORMAT name="oaf_hbase"/>
|
13 |
|
|
<IMPORTED/>
|
14 |
|
|
<SCRIPT>
|
15 |
|
|
<TITLE>xslt_mapping_projectOrganization2hbase</TITLE>
|
16 |
|
|
<CODE>
|
17 |
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
18 |
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr="http://www.driver-repository.eu/namespace/dr"
|
19 |
|
|
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oaa="http://namespace.openaire.eu/oaa"
|
20 |
|
|
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:dnet="eu.dnetlib.data.transform.xml.DbmfToHbaseXsltFunctions"
|
21 |
|
|
version="1.0">
|
22 |
26600
|
sandro.lab
|
|
23 |
40203
|
claudio.at
|
<xsl:output omit-xml-declaration="yes" indent="yes"/>
|
24 |
26600
|
sandro.lab
|
|
25 |
40203
|
claudio.at
|
<xsl:template match="/">
|
26 |
26600
|
sandro.lab
|
|
27 |
40203
|
claudio.at
|
<xsl:variable name="projectId" select="dnet:oafSplitId('project', //FIELD[@name = 'project'])"/>
|
28 |
|
|
<xsl:variable name="organizationId" select="dnet:oafSplitId('organization', //FIELD[@name = 'resporganization'])"/>
|
29 |
|
|
|
30 |
|
|
<ROWS>
|
31 |
|
|
<xsl:if test="string-length($projectId) > 0 and string-length($organizationId) > 0">
|
32 |
|
|
|
33 |
|
|
<xsl:variable name="projectorganization"
|
34 |
|
|
select="dnet:oafRel('projectOrganization', $projectId, $organizationId, //FIELD[not(@isNull)], 'hasParticipant', 'dnet:project_organization_relations')"/>
|
35 |
|
|
<xsl:variable name="organizationproject"
|
36 |
|
|
select="dnet:oafRel('projectOrganization', $organizationId, $projectId, //FIELD[not(@isNull)], 'isParticipant', 'dnet:project_organization_relations')"/>
|
37 |
|
|
|
38 |
|
|
<ROW key="{$projectId}" columnFamily="projectOrganization_participation_hasParticipant">
|
39 |
|
|
<QUALIFIER name="{$organizationId}" type="base64">
|
40 |
|
|
<xsl:value-of select="$projectorganization"/>
|
41 |
|
|
</QUALIFIER>
|
42 |
|
|
</ROW>
|
43 |
|
|
<ROW key="{$organizationId}" columnFamily="projectOrganization_participation_isParticipant">
|
44 |
|
|
<QUALIFIER name="{$projectId}" type="base64">
|
45 |
|
|
<xsl:value-of select="$organizationproject"/>
|
46 |
|
|
</QUALIFIER>
|
47 |
|
|
</ROW>
|
48 |
|
|
</xsl:if>
|
49 |
|
|
</ROWS>
|
50 |
|
|
|
51 |
|
|
</xsl:template>
|
52 |
|
|
|
53 |
|
|
</xsl:stylesheet>
|
54 |
|
|
</CODE>
|
55 |
|
|
</SCRIPT>
|
56 |
|
|
</CONFIGURATION>
|
57 |
|
|
<STATUS/>
|
58 |
|
|
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS>
|
59 |
|
|
</BODY>
|
60 |
|
|
</RESOURCE_PROFILE>
|