Closed jlblcc closed 7 years ago
We should only write out the parentId if the namespace is 'gov.sciencebase.catalog'. It appears that the first identifier is used if one with the SB namespace is not present. In those instances, it would be better to set parentId to null.
null
See: https://github.com/adiwg/mdTranslator/blob/master/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_parentId.rb#L17
To clarify, we should write out the first parentMetadata->identifier with the correct namespace.
We should only write out the parentId if the namespace is 'gov.sciencebase.catalog'. It appears that the first identifier is used if one with the SB namespace is not present. In those instances, it would be better to set parentId to
null
.See: https://github.com/adiwg/mdTranslator/blob/master/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_parentId.rb#L17