Revision 52867
Added by Miriam Baglioni about 6 years ago
modules/dnet-openaireplus-workflows/branches/solr7/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/bulktag/ZenodoCommunity.java | ||
---|---|---|
26 | 26 |
this.selCriteria = selCriteria; |
27 | 27 |
} |
28 | 28 |
|
29 |
public String getZenodoCOmmunities(){
|
|
29 |
public String getZenodoCommunities(){
|
|
30 | 30 |
final Gson g = new Gson(); |
31 | 31 |
return g.toJson(this); |
32 | 32 |
} |
modules/dnet-openaireplus-workflows/branches/solr7/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/bulktag/LoadBulkTaggingConfigurationJobNode.java | ||
---|---|---|
67 | 67 |
Configuration c = new Configuration(); |
68 | 68 |
|
69 | 69 |
for(String r : res){ |
70 |
log.info("result from xquery " + r); |
|
70 | 71 |
c.addCommunity(parseCommunity(r)); |
71 | 72 |
} |
72 | 73 |
|
... | ... | |
82 | 83 |
SAXReader reader = new SAXReader(); |
83 | 84 |
Document doc = reader.read(new StringReader(r)); |
84 | 85 |
Community c = new Community(); |
86 |
log.info("community id " + doc.valueOf("./@id")); |
|
85 | 87 |
c.setId(doc.valueOf("./@id")); |
86 | 88 |
|
87 | 89 |
List <Node> list = doc.selectNodes("//subject"); |
88 | 90 |
final List<String> sbj = new ArrayList<>(); |
89 | 91 |
for(Node n : list){ |
92 |
log.info("text of the node " + n.getText()); |
|
90 | 93 |
sbj.add(n.getText()); |
91 | 94 |
} |
95 |
log.info("size of the subject list " + sbj.size()); |
|
92 | 96 |
if(sbj.size()>0) |
93 | 97 |
c.setSubjects(sbj); |
94 | 98 |
|
Also available in: Unified diff
added log for debugging