adiwg / mdTranslator

Metadata translation tool built using Ruby
https://www.adiwg.org/mdTranslator/
The Unlicense
14 stars 12 forks source link

sbJSON writer should only write parentId with proper namespace #154

Closed jlblcc closed 7 years ago

jlblcc commented 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.

See: https://github.com/adiwg/mdTranslator/blob/master/lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_parentId.rb#L17

jlblcc commented 7 years ago

To clarify, we should write out the first parentMetadata->identifier with the correct namespace.