forked from D-Net/dnet-hadoop
// implemented Ticket #6281 added pid to Instance in doiBoost
This commit is contained in:
parent
f468c7f0d7
commit
a2169ccf07
|
@ -172,6 +172,9 @@ case object Crossref2Oaf {
|
||||||
instance.setLicense(l.head)
|
instance.setLicense(l.head)
|
||||||
|
|
||||||
|
|
||||||
|
// Ticket #6281 added pid to Instance
|
||||||
|
instance.setPid(result.getPid.asScala.filter(p => p.getQualifier.getClassid.equalsIgnoreCase("doi")).asJava)
|
||||||
|
|
||||||
val has_review = (json \ "relation" \"has-review" \ "id")
|
val has_review = (json \ "relation" \"has-review" \ "id")
|
||||||
|
|
||||||
if(has_review != JNothing) {
|
if(has_review != JNothing) {
|
||||||
|
|
|
@ -171,6 +171,9 @@ case object ConversionUtil {
|
||||||
else
|
else
|
||||||
i.setUrl(List(s"https://academic.microsoft.com/#/detail/${extractMagIdentifier(pub.getOriginalId.asScala)}").asJava)
|
i.setUrl(List(s"https://academic.microsoft.com/#/detail/${extractMagIdentifier(pub.getOriginalId.asScala)}").asJava)
|
||||||
|
|
||||||
|
// Ticket #6281 added pid to Instance
|
||||||
|
i.setPid(pub.getPid.asScala.filter(p => p.getQualifier.getClassid.equalsIgnoreCase("doi")).asJava)
|
||||||
|
|
||||||
i.setCollectedfrom(createMAGCollectedFrom())
|
i.setCollectedfrom(createMAGCollectedFrom())
|
||||||
pub.setInstance(List(i).asJava)
|
pub.setInstance(List(i).asJava)
|
||||||
pub
|
pub
|
||||||
|
|
|
@ -56,6 +56,9 @@ object UnpayWallToOAF {
|
||||||
i.setAccessright(getOpenAccessQualifier())
|
i.setAccessright(getOpenAccessQualifier())
|
||||||
i.setUrl(List(oaLocation.url.get).asJava)
|
i.setUrl(List(oaLocation.url.get).asJava)
|
||||||
|
|
||||||
|
// Ticket #6281 added pid to Instance
|
||||||
|
i.setPid(pub.getPid.asScala.filter(p => p.getQualifier.getClassid.equalsIgnoreCase("doi")).asJava)
|
||||||
|
|
||||||
if (oaLocation.license.isDefined)
|
if (oaLocation.license.isDefined)
|
||||||
i.setLicense(asField(oaLocation.license.get))
|
i.setLicense(asField(oaLocation.license.get))
|
||||||
pub.setInstance(List(i).asJava)
|
pub.setInstance(List(i).asJava)
|
||||||
|
|
Loading…
Reference in New Issue