Commit ff554dfe authored by Günter Hipler's avatar Günter Hipler
Browse files

change was not so good - type is not the same as @type

praise tests
parent ebade411
Pipeline #24068 passed with stages
in 6 minutes and 53 seconds
......@@ -35,10 +35,13 @@ object Extractors {
Try {
jsonGraph.value.collectFirst {
case res
if (res.obj.contains("type") && res.obj("type").str == resourceType) =>
if (res.obj
.contains("type") && res.obj("type").str == resourceType) ||
(res.obj.contains("@type") && res
.obj("@type")
.str == resourceType) =>
res.obj.value
}.get
}
}.get }
private val fedoraResourceCollection =
(jsonGraph: JArr) =>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment