master #59

Closed
claudio.atzori wants to merge 3221 commits from master into stable_ids
3 changed files with 9 additions and 0 deletions
Showing only changes of commit a2169ccf07 - Show all commits

View File

@ -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) {

View File

@ -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

View File

@ -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)