DOIBoost Mapping: change the creation of the instance in the DOIBoost result #155
|
@ -207,7 +207,7 @@ case object Crossref2Oaf {
|
|||
instance.setDateofacceptance(asField(createdDate.getValue))
|
||||
}
|
||||
val s: String = (json \ "URL").extract[String]
|
||||
val links: List[String] = ((for {JString(url) <- json \ "link" \ "URL"} yield url) ::: List(s)).filter(p => p != null).distinct
|
||||
val links: List[String] = ((for {JString(url) <- json \ "link" \ "URL"} yield url) ::: List(s)).filter(p => p != null && !p.contains("api.elsevier.com...")).distinct
|
||||
claudio.atzori marked this conversation as resolved
|
||||
if (links.nonEmpty) {
|
||||
instance.setUrl(links.asJava)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Clean up commented out code lines