module ADIWG::Mdtranslator::Writers::SbJson::ParentId
Public Class Methods
build(hCitation)
click to toggle source
# File lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_parentId.rb, line 14 def self.build(hCitation) # return identifier as parentId where namespace = 'gov.sciencebase.catalog' hCitation[:identifiers].each do |hIdentifier| unless hIdentifier[:namespace].nil? if hIdentifier[:namespace] == 'gov.sciencebase.catalog' return hIdentifier[:identifier] end end end return nil end