added datainfo on authors pid with "sysimport:crosswalk:entityregistry",

This commit is contained in:
Enrico Ottonello 2020-11-30 14:19:22 +01:00
parent 99a086f0c6
commit 40c4559e92
1 changed files with 13 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public class PublicationToOaf implements Serializable {
publication.setLastupdatetimestamp(new Date().getTime()); publication.setLastupdatetimestamp(new Date().getTime());
publication.setDateofcollection("2019-10-22"); publication.setDateofcollection("2020-10-14");
publication.setDateoftransformation(DumpToActionsUtility.now_ISO8601()); publication.setDateoftransformation(DumpToActionsUtility.now_ISO8601());
// Adding external ids // Adding external ids
@ -526,6 +526,18 @@ public class PublicationToOaf implements Serializable {
q.setSchemeid(ModelConstants.DNET_PID_TYPES); q.setSchemeid(ModelConstants.DNET_PID_TYPES);
q.setSchemename(ModelConstants.DNET_PID_TYPES); q.setSchemename(ModelConstants.DNET_PID_TYPES);
sp.setQualifier(q); sp.setQualifier(q);
final DataInfo dataInfo = new DataInfo();
dataInfo.setDeletedbyinference(false);
dataInfo.setInferred(false);
dataInfo.setTrust("0.9");
dataInfo
.setProvenanceaction(
mapQualifier(
"sysimport:crosswalk:entityregistry",
"Harvested",
"dnet:provenanceActions",
"dnet:provenanceActions"));
sp.setDataInfo(dataInfo);
return sp; return sp;
} }
} }