diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/clean/CleaningRuleMap.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/clean/CleaningRuleMap.java index 0b833fc7f..6805a4772 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/clean/CleaningRuleMap.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/clean/CleaningRuleMap.java @@ -9,6 +9,7 @@ import java.util.concurrent.atomic.AtomicReference; import org.apache.commons.lang3.SerializationUtils; import org.apache.commons.lang3.StringUtils; +import eu.dnetlib.dhp.common.Constants; import eu.dnetlib.dhp.common.FunctionalInterfaceSupport.SerializableConsumer; import eu.dnetlib.dhp.common.vocabulary.VocabularyGroup; import eu.dnetlib.dhp.common.vocabulary.VocabularyTerm; @@ -48,7 +49,9 @@ public class CleaningRuleMap extends HashMap, SerializableConsumer(p)); + System.out.println(xml); + assertNotNull(xml); final Document doc = new SAXReader().read(new StringReader(xml)); + doc.normalize(); assertNotNull(doc); - System.out.println(doc.asXML()); + //System.out.println(doc.asXML()); assertEquals("0000-0001-9613-6638", doc.valueOf("//creator[@rank = '1']/@orcid")); assertEquals("0000-0001-9613-6639", doc.valueOf("//creator[@rank = '1']/@orcid_pending")); diff --git a/dhp-workflows/dhp-graph-provision/src/test/resources/eu/dnetlib/dhp/oa/provision/publication.json b/dhp-workflows/dhp-graph-provision/src/test/resources/eu/dnetlib/dhp/oa/provision/publication.json index 5e3f19bd7..901e6d579 100644 --- a/dhp-workflows/dhp-graph-provision/src/test/resources/eu/dnetlib/dhp/oa/provision/publication.json +++ b/dhp-workflows/dhp-graph-provision/src/test/resources/eu/dnetlib/dhp/oa/provision/publication.json @@ -621,7 +621,7 @@ "trust": "" }, "key": "10|CSC_________::a2b9ce8435390bcbfc05f3cae3948747", - "value": "VIRTA" + "value": "Bulletin of the National Technical University \"KhPI\" A series of \"Information and Modeling\"" }, "instancetype": { "classid": "0001", @@ -1488,7 +1488,7 @@ "issnLinking": "", "issnOnline": "", "issnPrinted": "0018-9383", - "name": "IEEE Transactions on Electron Devices", + "name": "IEEE Transactions on \"Electron Devices\"", "sp": "3884", "vol": "65" }, @@ -1557,7 +1557,7 @@ "schemeid": "dnet:result_typologies", "schemename": "dnet:result_typologies" }, - "source": [], + "source": [ { "value" : "Bulletin of the National Technical University \"KhPI\" A series of \"Information and Modeling\"; № 1 (3) (2020):" } ], "subject": [ { "dataInfo": {