Revision 49432
Added by Sandro La Bruzzo over 6 years ago
modules/dnet-wds/trunk/src/main/java/eu/dnetlib/resolver/mdstore/plugin/WDSRecordResolver.java | ||
---|---|---|
67 | 67 |
|
68 | 68 |
if (currentIdentifier != null && !StringUtils.isBlank(currentIdentifier.getPid()) && currentIdentifier.getPid().toLowerCase().equals(currentPid.getId().toLowerCase())) { |
69 | 69 |
final HashMap<String, ObjectType> result = new HashMap<>(); |
70 |
result.put("dli_resolver::" + WDSUtils.generateIdentifier(currentIdentifier.getPid(), currentIdentifier.getPidType()),
|
|
70 |
result.put("wds_resolver::" + WDSUtils.generateIdentifier(currentIdentifier.getPid(), currentIdentifier.getPidType()),
|
|
71 | 71 |
currentIdentifier.getType()); |
72 | 72 |
return result; |
73 | 73 |
} |
modules/dnet-wds/trunk/src/main/java/eu/dnetlib/wds/resolver/OpenAireParser.java | ||
---|---|---|
88 | 88 |
String funding = projectfundings.size() > 0 ? projectfundings.get(projectfundings.size() - 1) : ""; |
89 | 89 |
funding = funding.length() > 2 ? funding.substring(funding.indexOf("::") + 2) : ""; |
90 | 90 |
|
91 |
currentObject.addProject(new Project().setAcronym(projectAcronym.get(0))
|
|
91 |
currentObject.addProject(new Project().setAcronym((projectAcronym!=null && projectAcronym.size()>0) ?projectAcronym.get(0):"")
|
|
92 | 92 |
.setFundingStream(funding) |
93 | 93 |
.setFunder(funderName) |
94 | 94 |
.setGrantID(projectCodes.get(0)) |
modules/dnet-wds/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/Identity_Transform.xml | ||
---|---|---|
1 |
<RESOURCE_PROFILE> |
|
2 |
<HEADER> |
|
3 |
<RESOURCE_IDENTIFIER |
|
4 |
value="8d001476-5f09-4d6a-bf83-b65820661557_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/> |
|
5 |
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/> |
|
6 |
<RESOURCE_KIND value="TransformationRuleDSResources"/> |
|
7 |
<RESOURCE_URI value=""/> |
|
8 |
<DATE_OF_CREATION value="2014-07-17T10:41:08+02:00"/> |
|
9 |
</HEADER> |
|
10 |
<BODY> |
|
11 |
<CONFIGURATION> |
|
12 |
<IMPORTED/> |
|
13 |
<SCRIPT> |
|
14 |
<TITLE>WDS:Identity transformation</TITLE> |
|
15 |
<CODE><![CDATA[<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
16 |
<xsl:template match="@*|node()"> |
|
17 |
<xsl:copy> |
|
18 |
<xsl:apply-templates select="@*|node()"/> |
|
19 |
</xsl:copy> |
|
20 |
</xsl:template> |
|
21 |
</xsl:stylesheet> |
|
22 |
]]></CODE> |
|
23 |
</SCRIPT> |
|
24 |
</CONFIGURATION> |
|
25 |
<STATUS/> |
|
26 |
<SECURITY_PARAMETERS/> |
|
27 |
</BODY> |
|
28 |
</RESOURCE_PROFILE> |
modules/dnet-wds/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/workflows/wds_resolver_template.xml | ||
---|---|---|
22 | 22 |
<DESCRIPTION>Store mdtore records</DESCRIPTION> |
23 | 23 |
<PARAMETERS> |
24 | 24 |
<PARAM name="mdStoreId" ref="cleanMdstoreId"/> |
25 |
<PARAM name="pluginName" value="dliResolverPlugin"/>
|
|
25 |
<PARAM name="pluginName" value="wdsResolverPlugin"/>
|
|
26 | 26 |
<PARAM name="numberOfThreads" ref="numberOfThreads"/> |
27 | 27 |
|
28 | 28 |
</PARAMETERS> |
Also available in: Unified diff
minor fix