Revision 55894
Added by Claudio Atzori almost 5 years ago
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/2hbase/odf_entity2hbase.xml | ||
---|---|---|
57 | 57 |
<xsl:if test="string-length($resultId) > 0"> |
58 | 58 |
<xsl:variable name="originalids" |
59 | 59 |
select="//*[local-name() = 'resource']/*[local-name()='identifier'] | //*[local-name() = 'resource']//*[local-name()='alternateIdentifier']"/> |
60 |
<xsl:variable name="creators" select="//*[local-name() = 'creators']/*[local-name() = 'creator']"/> |
|
61 |
<xsl:variable name="titles" select="//*[local-name() = 'title']"/> |
|
62 |
<xsl:variable name="subjects" select="//*[local-name() = 'subject']"/> |
|
63 |
<xsl:variable name="publisher" select="//*[local-name() = 'publisher']"/> |
|
64 |
<xsl:variable name="descriptions" select="//*[local-name() = 'description']"/> |
|
65 |
<xsl:variable name="dates" select="//*[local-name() = 'date']"/> |
|
66 |
<xsl:variable name="dateaccepted" select="//oaf:dateAccepted"/> |
|
67 |
<xsl:variable name="resourceType" select="//*[local-name() = 'resourceType']"/> |
|
68 |
<xsl:variable name="formats" select="//*[local-name() = 'format']"/> |
|
69 |
<xsl:variable name="sizes" select="//*[local-name() = 'size']"/> |
|
70 |
<xsl:variable name="rights" select="//oaf:accessrights"/> |
|
71 |
<xsl:variable name="license" select="//oaf:license"/> |
|
72 |
<xsl:variable name="version" select="//*[local-name() = 'version']"/> |
|
73 |
<xsl:variable name="language" select="//oaf:language"/> |
|
74 |
<xsl:variable name="cobjcategory" select="//dr:CobjCategory"/> |
|
75 |
<xsl:variable name="contributor" select="//*[local-name() = 'contributor']"/> |
|
76 |
<xsl:variable name="distributionlocation" select="//*[local-name() = 'alternateIdentifier' and @alternateIdentifierType='DistributionLocation']"/> |
|
77 |
<xsl:variable name="documentationUrl" select="//*[local-name() = 'relatedIdentifier' and @relatedIdentifierType='URL' and @relationType='IsDocumentedBy']"/> |
|
78 |
<xsl:variable name="landingPage" select="//*[local-name() = 'alternateIdentifier' and @alternateIdentifierType='LandingPage']/text()"/> |
|
79 |
|
|
60 |
<xsl:variable name="creators" select="//*[local-name() = 'resource']//*[local-name() = 'creators']/*[local-name() = 'creator']"/> |
|
61 |
<xsl:variable name="titles" select="//*[local-name() = 'resource']//*[local-name() = 'title']"/> |
|
62 |
<xsl:variable name="subjects" select="//*[local-name() = 'resource']//*[local-name() = 'subject']"/> |
|
63 |
<xsl:variable name="publisher" select="//*[local-name() = 'resource']//*[local-name() = 'publisher']"/> |
|
64 |
<xsl:variable name="descriptions" select="//*[local-name() = 'resource']//*[local-name() = 'description']"/> |
|
65 |
<xsl:variable name="dates" select="//*[local-name() = 'resource']//*[local-name() = 'date']"/> |
|
66 |
<xsl:variable name="dateaccepted" select="//*[local-name() = 'dateAccepted']"/> |
|
67 |
<xsl:variable name="resourceType" select="//*[local-name() = 'resource']//*[local-name() = 'resourceType']"/> |
|
68 |
<xsl:variable name="formats" select="//*[local-name() = 'resource']//*[local-name() = 'format']"/> |
|
69 |
<xsl:variable name="sizes" select="//*[local-name() = 'resource']//*[local-name() = 'size']"/> |
|
70 |
<xsl:variable name="rights" select="//*[local-name() = 'accessrights']"/> |
|
71 |
<xsl:variable name="license" select="//*[local-name() = 'license']"/> |
|
72 |
<xsl:variable name="version" select="//*[local-name() = 'resource']//*[local-name() = 'version']"/> |
|
73 |
<xsl:variable name="language" select="//*[local-name() = 'language']"/> |
|
74 |
<xsl:variable name="cobjcategory" select="//*[local-name() = 'CobjCategory']"/> |
|
75 |
<xsl:variable name="contributor" select="//*[local-name() = 'resource']//*[local-name() = 'contributor']"/> |
|
76 |
<xsl:variable name="distributionlocation" select="//*[local-name() = 'resource']//*[local-name() = 'alternateIdentifier' and @alternateIdentifierType='DistributionLocation']"/> |
|
77 |
<xsl:variable name="documentationUrl" select="//*[local-name() = 'resource']//*[local-name() = 'relatedIdentifier' and @relatedIdentifierType='URL' and @relationType='IsDocumentedBy']"/> |
|
78 |
<xsl:variable name="landingPage" select="//*[local-name() = 'resource']//*[local-name() = 'alternateIdentifier' and @alternateIdentifierType='LandingPage']/text()"/> |
|
80 | 79 |
<xsl:variable name="instanceURI"> |
81 | 80 |
<xsl:choose> |
82 | 81 |
<xsl:when |
Also available in: Unified diff
mapping dateAccepted, accessrights, license, language, CobjCategory from eny depth and using local-name (namespace unaware)