This commit is contained in:
parent
d22f106f27
commit
9e722aa1ef
|
@ -27,5 +27,5 @@ public class Constants implements Serializable {
|
||||||
|
|
||||||
public static final String HARVESTED = "Harvested";
|
public static final String HARVESTED = "Harvested";
|
||||||
public static final String DEFAULT_TRUST = "0.9";
|
public static final String DEFAULT_TRUST = "0.9";
|
||||||
public static final String FUNDER_DS = "entityregistry::projects";
|
// public static final String FUNDER_DS = "entityregistry::projects";
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,13 +103,13 @@ public class DumpGraphEntities implements Serializable {
|
||||||
private static Datasource mapDatasource(eu.dnetlib.dhp.schema.oaf.Datasource d) {
|
private static Datasource mapDatasource(eu.dnetlib.dhp.schema.oaf.Datasource d) {
|
||||||
Datasource datasource = new Datasource();
|
Datasource datasource = new Datasource();
|
||||||
|
|
||||||
Optional<eu.dnetlib.dhp.schema.oaf.Qualifier> odstype = Optional.ofNullable(d.getDatasourcetype());
|
// Optional<eu.dnetlib.dhp.schema.oaf.Qualifier> odstype = Optional.ofNullable(d.getDatasourcetype());
|
||||||
|
//
|
||||||
if(odstype.isPresent()){
|
// if(odstype.isPresent()){
|
||||||
if (odstype.get().getClassid().equals(Constants.FUNDER_DS)){
|
// if (odstype.get().getClassid().equals(Constants.FUNDER_DS)){
|
||||||
return null;
|
// return null;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
datasource.setId(d.getId());
|
datasource.setId(d.getId());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue