This commit is contained in:
Claudio Atzori 2022-10-19 15:21:02 +02:00
commit ec39b84898
1 changed files with 64 additions and 68 deletions

View File

@ -98,8 +98,7 @@ object DataciteToOAFTransformation {
}
/**
* This utility method indicates whether the embargo date has been reached
/** This utility method indicates whether the embargo date has been reached
* @param embargo_end_date
* @return True if the embargo date has been reached, false otherwise
*/
@ -155,7 +154,7 @@ object DataciteToOAFTransformation {
* - dataset
* - software
* - otherresearchproduct
*
* @param resourceType
* @param resourceTypeGeneral
* @param schemaOrg
@ -413,7 +412,6 @@ object DataciteToOAFTransformation {
return List()
result.setAuthor(authors.asJava)
val titles: List[TitleType] = (json \\ "titles").extractOrElse[List[TitleType]](List())
result.setTitle(
@ -437,8 +435,6 @@ object DataciteToOAFTransformation {
.asJava
)
val dates = (json \\ "dates").extract[List[DateType]]
val publication_year = (json \\ "publicationYear").extractOrElse[String](null)