Project

General

Profile

« Previous | Next » 

Revision 49092

fixing mapping for license vs accessright #3128

View differences:

modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/odf2hbase.xml
67 67
                <xsl:variable name="formats" select="//*[local-name() = 'format']"/>
68 68
                <xsl:variable name="sizes" select="//*[local-name() = 'size']"/>
69 69
                <xsl:variable name="rights" select="//oaf:accessrights"/>
70
	            <xsl:variable name="license" select="//oaf:license"/>
70 71
                <xsl:variable name="version" select="//*[local-name() = 'version']"/>
71 72
                <xsl:variable name="language" select="//oaf:language"/>
72 73
                <xsl:variable name="cobjcategory" select="//dr:CobjCategory"/>
......
101 102

  
102 103
                <xsl:variable name="result"
103 104
                              select="dnet:odfResult($resultId, $about, $metadata, $titles, $creators, $subjects, $publisher, $descriptions,
104
                        $dates, $dateaccepted, $resourceType, $formats, $sizes, $language, $cobjcategory, $contributor, $rights,
105
                        $dates, $dateaccepted, $resourceType, $formats, $sizes, $language, $cobjcategory, $contributor, $rights, $license,
105 106
                        $version, $pids, $provenance, $trust, $hostedbyid, $hostedbyname, $collectedfromid,
106 107
                        $collectedfromname, $originalids, $instanceURI, $dateOfCollection, $dateoftransformation)"/>
107 108

  
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/MDFormatDSResources/MDFormatDSResourceType/2-8b9503d9-8a86-4330-93ef-7e0cd9bc87c2.xml
177 177
		                       result="false" stat="false"/>
178 178
		                <FIELD name="resultdescription" xpath="//*[local-name()='entity']/*[local-name()='result']//*[local-name()='description']"
179 179
		                       result="false" indexable="true" stat="false"/>
180
		                <FIELD name="resultrights" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/licence/@classname"
180
		                <FIELD name="resultlicense" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/license"
181 181
		                       tokenizable="false" indexable="true" result="false" stat="false"/>
182
		                <FIELD name="resultbestlicense" xpath="//*[local-name()='entity']/*[local-name()='result']/bestlicense/@classname" tokenizable="false"
182
		                <FIELD name="resultaccessright" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/accessright/@classname"
183
		                       tokenizable="false" indexable="true" result="false" stat="false"/>
184
		                <FIELD name="resultbestaccessright" xpath="//*[local-name()='entity']/*[local-name()='result']/bestaccessright/@classname" tokenizable="false"
183 185
		                       indexable="true" result="false" stat="false" multivalued="false"/>
184 186
		                <FIELD name="resultdateofacceptance" value="//*[local-name()='entity']/*[local-name()='result']/dateofacceptance" type="pdate"
185 187
		                       stat="false" result="false" indexable="true" multivalued="false"/>

Also available in: Unified diff