1
0
Fork 0

added instanceTypeMapping field on MAG

This commit is contained in:
Sandro La Bruzzo 2024-04-11 13:10:12 +02:00
parent 98dc042db5
commit a0642bd190
2 changed files with 1 additions and 1 deletions

View File

@ -490,6 +490,7 @@ object MagUtility extends Serializable {
result.setDataInfo(MAGDataInfo)
val i = new Instance
i.setInstancetype(tp)
i.setInstanceTypeMapping(List(instanceTypeMapping(currentType)).asJava)
result.setInstance(List(i).asJava)
}
result

View File

@ -72,7 +72,6 @@ object UnpayWallToOAF {
def convertToOAF(input: String): Publication = {
val pub = new Publication
implicit lazy val formats: DefaultFormats.type = org.json4s.DefaultFormats