forked from D-Net/dnet-hadoop
bug fixing
This commit is contained in:
parent
233d849f90
commit
74484d2823
|
@ -26,7 +26,7 @@ object PangaeaUtils {
|
||||||
val s:String = s"${new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS")format(d)}Z"
|
val s:String = s"${new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS")format(d)}Z"
|
||||||
|
|
||||||
val ds = (json \ "internal-datestamp").extractOrElse[String](s)
|
val ds = (json \ "internal-datestamp").extractOrElse[String](s)
|
||||||
val identifier= (json \ "metadatalink").extractOrElse[String]()
|
val identifier= (json \ "metadatalink").extractOrElse[String]("")
|
||||||
val xml= (json \ "xml").extract[String]
|
val xml= (json \ "xml").extract[String]
|
||||||
PangaeaDataModel(ds, identifier,xml)
|
PangaeaDataModel(ds, identifier,xml)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue