DOIBoost Mapping: change the creation of the instance in the DOIBoost result #155

Merged
claudio.atzori merged 12 commits from doiboost_url into beta 2021-11-11 10:40:33 +01:00

This PR is to change the way the instance is created for each of the providers considered for the creation of the DOIBoost result.

  1. Crossref instance is created with just one url made as "https://doi.org/[doi]"
  2. No instance is created for MAG
  3. UnpayWall and ORCID stay as there were

Another modification regards the mapping of the type "dissertation" from crossref. It is now mapped as Thesis (0040) instead of Doctoral Thesis (0006) as it was before

This PR is to change the way the instance is created for each of the providers considered for the creation of the DOIBoost result. 1. Crossref instance is created with just one url made as "https://doi.org/[doi]" 2. No instance is created for MAG 3. UnpayWall and ORCID stay as there were Another modification regards the mapping of the type "dissertation" from crossref. It is now mapped as Thesis (0040) instead of Doctoral Thesis (0006) as it was before
alessia.bardi was assigned by miriam.baglioni 2021-11-11 09:05:02 +01:00
claudio.atzori was assigned by miriam.baglioni 2021-11-11 09:05:02 +01:00
miriam.baglioni added 11 commits 2021-11-11 09:05:02 +01:00
claudio.atzori requested changes 2021-11-11 09:45:22 +01:00
claudio.atzori left a comment
Owner

Minor: a few lines of code are commented out and should be cleaned up

Minor: a few lines of code are commented out and should be cleaned up
@ -212,2 +209,2 @@
instance.setUrl(links.asJava)
}
val s: List[String] = List("https://doi.org/" + doi)
// val links: List[String] = ((for {JString(url) <- json \ "link" \ "URL"} yield url) ::: List(s)).filter(p => p != null && p.toLowerCase().contains(doi.toLowerCase())).distinct

Clean up commented out code lines

Clean up commented out code lines
claudio.atzori marked this conversation as resolved
claudio.atzori added 1 commit 2021-11-11 10:40:21 +01:00
claudio.atzori merged commit 8bdca3413f into beta 2021-11-11 10:40:33 +01:00
Sign in to join this conversation.
No description provided.