Revision 43512
Added by Sandro La Bruzzo over 7 years ago
modules/dnet-wds/trunk/test/java/eu/dnetlib/wds/collector/plugins/CMRIteratorTest.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.wds.collector.plugins; |
2 | 2 |
|
3 |
import org.antlr.stringtemplate.StringTemplate; |
|
4 |
import org.apache.commons.io.IOUtils; |
|
3 | 5 |
import org.junit.Test; |
4 | 6 |
import org.springframework.core.io.ClassPathResource; |
5 | 7 |
|
... | ... | |
16 | 18 |
ClassPathResource resource = new ClassPathResource("eu/dnetlib/wds/collector/plugins/CMR2Datacite.st"); |
17 | 19 |
|
18 | 20 |
CMRCollectorPlugin plugin = new CMRCollectorPlugin(); |
19 |
plugin.setClassPathTemplate(resource); |
|
21 |
|
|
22 |
plugin.setXmlTemplate(new StringTemplate(IOUtils.toString(resource.getInputStream()))); |
|
20 | 23 |
final Iterable<String> collect = plugin.collect(null, null, null); |
21 | 24 |
|
22 | 25 |
final String next = collect.iterator().next(); |
modules/dnet-wds/trunk/src/main/java/eu/dnetlib/msro/workflows/nodes/hostedby/PatchHostedByJobNode.java | ||
---|---|---|
66 | 66 |
private Map<String, HostedByEntry> loadHostedByMapFromDatasource(final String datasourceId) throws DocumentException, DatabaseException { |
67 | 67 |
final Map<String, HostedByEntry> map = Maps.newHashMap(); |
68 | 68 |
|
69 |
final String sql = "SELECT d.id, d.officialname, p.entry from %s p JOIN datasources d ON (p.datasourceid = d.id) WHERE p.oa_source_id= '%s'";
|
|
69 |
final String sql = "SELECT d.id, d.officialname, p. from %s p JOIN datasources d ON (p.datasourceid = d.id) WHERE p.oa_source_id= '%s'"; |
|
70 | 70 |
|
71 | 71 |
return generatingMap(datasourceId, map, sql); |
72 | 72 |
} |
modules/dnet-wds/trunk/src/main/java/eu/dnetlib/wds/collector/plugins/CMRObjectDeserializer.java | ||
---|---|---|
37 | 37 |
result.setLinks(getListOfRelation(root, "links")); |
38 | 38 |
|
39 | 39 |
result.setTime_end(getSingleItem(root, "time_end")); |
40 |
result.setTitle(getSingleItem(root, "title")); |
|
40 | 41 |
result.setOriginal_format(getSingleItem(root, "original_format")); |
41 | 42 |
result.setTime_start(getSingleItem(root, "time_start")); |
42 | 43 |
result.setData_center(getSingleItem(root, "data_center")); |
modules/dnet-wds/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/workflows/aggregator_datarepository/repo_hi_wds.xml | ||
---|---|---|
43 | 43 |
<NODE name="registerWf" type="RegisterWorkflowFromTemplate"> |
44 | 44 |
<DESCRIPTION>Create Workflow</DESCRIPTION> |
45 | 45 |
<PARAMETERS> |
46 |
<PARAM name="wfName" value="ggregate Metadata from Data Repository[Ingestion]"/> |
|
46 |
<PARAM name="wfName" value="Aggregate Metadata from Data Repository[Ingestion]"/>
|
|
47 | 47 |
<PARAM name="wfTemplate" value="/eu/dnetlib/wds/workflows/repo-hi/wds_aggregation_wf.xml.st"/> |
48 | 48 |
<PARAM name="description" value="Aggregate and Validate Metadata from DataRepository [Ingestion]"/> |
49 | 49 |
</PARAMETERS> |
Also available in: Unified diff
fixed missing Titles in CMR Collector Plugin