[dedup] Datacite should be authoritative for datasets

This commit is contained in:
Claudio Atzori 2021-03-19 09:04:20 +01:00
parent 734232d3b9
commit 972d5a3d98
1 changed files with 4 additions and 4 deletions

View File

@ -112,11 +112,11 @@ public class Identifier<T extends OafEntity> implements Serializable, Comparable
return 1;
}
if (getEntityType() == EntityType.dataset) {
if (isFromDatasourceID(lKeys, ModelConstants.CROSSREF_ID)
&& !isFromDatasourceID(rKeys, ModelConstants.CROSSREF_ID))
if (isFromDatasourceID(lKeys, ModelConstants.DATACITE_ID)
&& !isFromDatasourceID(rKeys, ModelConstants.DATACITE_ID))
return -1;
if (isFromDatasourceID(rKeys, ModelConstants.CROSSREF_ID)
&& !isFromDatasourceID(lKeys, ModelConstants.CROSSREF_ID))
if (isFromDatasourceID(rKeys, ModelConstants.DATACITE_ID)
&& !isFromDatasourceID(lKeys, ModelConstants.DATACITE_ID))
return 1;
}