[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.JavaConverters._
|
||||||
import scala.collection.mutable.ArrayBuffer
|
import scala.collection.mutable.ArrayBuffer
|
||||||
import scala.util.control.Breaks.{break, breakable}
|
import scala.util.control.Breaks.{break, breakable}
|
||||||
|
import eu.dnetlib.dhp.common.enrichment.Constants._
|
||||||
|
|
||||||
case class OrcidAuthor(
|
case class OrcidAuthor(
|
||||||
@BeanProperty var orcid: String,
|
@BeanProperty var orcid: String,
|
||||||
|
@ -171,9 +172,19 @@ object ORCIDAuthorEnricher extends Serializable {
|
||||||
|
|
||||||
val orcidPID = OafUtils.createSP(orcid.orcid, classid, classid)
|
val orcidPID = OafUtils.createSP(orcid.orcid, classid, classid)
|
||||||
orcidPID.setDataInfo(OafUtils.generateDataInfo())
|
orcidPID.setDataInfo(OafUtils.generateDataInfo())
|
||||||
orcidPID.getDataInfo.setProvenanceaction(
|
if (provenance.equalsIgnoreCase(PROPAGATION_DATA_INFO_TYPE)) {
|
||||||
OafUtils.createQualifier(provenance, provenance)
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
author.getPid.add(orcidPID)
|
author.getPid.add(orcidPID)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue