forked from D-Net/dnet-hadoop
Extracted the correct original type to pass to instanceTypeMapping in Crossref Mapping
This commit is contained in:
parent
511a98dd80
commit
3caf6ff27e
|
@ -372,7 +372,9 @@ case object Crossref2Oaf {
|
||||||
objectType,
|
objectType,
|
||||||
mappingCrossrefSubType.getOrElse(objectSubType, "0038 Other literature type")
|
mappingCrossrefSubType.getOrElse(objectSubType, "0038 Other literature type")
|
||||||
)
|
)
|
||||||
mappingResult(result, json, cOBJCategory, objectSubType)
|
|
||||||
|
val originalType = if (mappingCrossrefSubType.contains(objectType)) objectType else objectSubType
|
||||||
|
mappingResult(result, json, cOBJCategory, originalType)
|
||||||
if (result == null || result.getId == null)
|
if (result == null || result.getId == null)
|
||||||
return List()
|
return List()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue