lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb in adiwg-mdtranslator-2.18.4 vs lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_contact.rb in adiwg-mdtranslator-2.19.0.pre.beta.7

- old
+ new

@@ -147,9 +147,19 @@ end end end end end + + if hContact[:externalIdentifier] && type == 'person' + hContact[:externalIdentifier].each do |hExternalIdentifier| + if hExternalIdentifier[:namespace] == 'ORCID' + json.orcId hExternalIdentifier[:identifier] + break + end + end + end + end end end # build end # Module Contacts