Project

General

Profile

« Previous | Next » 

Revision 58578

DOI for ORCID claims

View differences:

modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/claims/claims_orcid_2_OAF.xml
51 51
                    oaf:collectedFrom = set("''", @name = $varOfficialname; , @id = $varDatasourceid;);
52 52
                    oaf:hostedBy = set("''", @name = $varUnknownReponame; , @id = $varUnknownRepoid;);
53 53

  
54
                    //TODO: I do not understand how to set the oaf:identifier for the DOIs
54
                    //Thanks Jochen: #5355
55
                    $varId = identifierExtract('["//*[local-name() = \"work\"]//*[local-name() = \"external-ids\"]//*[local-name() =\"external-id-value\"]", "//*[local-name() = \"work\"]/*[local-name()=\"url\"]"]' , xpath:"./*[local-name()='record']/*[local-name()='metadata']" , '(10[.][0-9]{4,}[^\s"/<>]*/[^\s"<>]+)');
56
                    oaf:identifier = set(xpath:"$varId//value", @identifierType = "doi";);
55 57

  
56 58
                    oaf:datasourceprefix = xpath:"//oaf:datasourceprefix";
57 59
                    about = xpath:"//about";

Also available in: Unified diff