master #59

Closed
claudio.atzori wants to merge 3221 commits from master into stable_ids
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 779318961c - Show all commits

View File

@ -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
if (links.nonEmpty) {
instance.setUrl(links.asJava)
}