[orcidPropagatio] added specific orcid propagation classid and classname in the qualifier
This commit is contained in:
parent
df5f1caa7a
commit
60cfaf119b
|
@ -9,6 +9,7 @@ import scala.beans.BeanProperty
|
|||
import scala.collection.JavaConverters._
|
||||
import scala.collection.mutable.ArrayBuffer
|
||||
import scala.util.control.Breaks.{break, breakable}
|
||||
import eu.dnetlib.dhp.common.enrichment.Constants._
|
||||
|
||||
case class OrcidAuthor(
|
||||
@BeanProperty var orcid: String,
|
||||
|
@ -171,6 +172,16 @@ object ORCIDAuthorEnricher extends Serializable {
|
|||
|
||||
val orcidPID = OafUtils.createSP(orcid.orcid, classid, classid)
|
||||
orcidPID.setDataInfo(OafUtils.generateDataInfo())
|
||||
if (provenance.equalsIgnoreCase(PROPAGATION_DATA_INFO_TYPE)) {
|
||||
orcidPID.getDataInfo.setInferenceprovenance(PROPAGATION_DATA_INFO_TYPE);
|
||||
orcidPID.getDataInfo.setInferred(true);
|
||||
orcidPID.getDataInfo.setProvenanceaction(
|
||||
OafUtils.createQualifier(
|
||||
PROPAGATION_ORCID_TO_RESULT_FROM_SEM_REL_CLASS_ID,
|
||||
PROPAGATION_ORCID_TO_RESULT_FROM_SEM_REL_CLASS_NAME
|
||||
)
|
||||
)
|
||||
} else
|
||||
orcidPID.getDataInfo.setProvenanceaction(
|
||||
OafUtils.createQualifier(provenance, provenance)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue