Project

General

Profile

« Previous | Next » 

Revision 57619

Fixes #4993#note-8 : patch the "good" hosted by node and ignore the one inside resource, if any.

View differences:

modules/dnet-openaireplus-workflows/trunk/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hostedby/PatchHostedBy.java
72 72
	public String evaluate(final String record) {
73 73
		try {
74 74
			final Document doc = reader.read(new StringReader(record));
75
			final Element node = (Element) doc.selectSingleNode("//*[local-name()='hostedBy']");
75
			final Element node = (Element) doc.selectSingleNode("//*[local-name()='metadata']/*[local-name()='hostedBy']");
76 76
			if (node != null) {
77 77
				final HostedByEntry ds = findHostedBy(doc);
78 78
				if (ds != null) {

Also available in: Unified diff