module ADIWG::Mdtranslator::Readers::SbJson::ParentId
Public Class Methods
unpack(hSbJson, hResponseObj)
click to toggle source
# File lib/adiwg/mdtranslator/readers/sbJson/modules/module_parentId.rb, line 16 def self.unpack(hSbJson, hResponseObj) # instance classes needed in script intMetadataClass = InternalMetadata.new if hSbJson.has_key?('parentId') sbId = hSbJson['parentId'] unless sbId.nil? || sbId == '' hCitation = intMetadataClass.newCitation hIdentifier = intMetadataClass.newIdentifier hCitation[:title] = 'U.S. Geological Survey ScienceBase parent identifier' hIdentifier[:identifier] = sbId hIdentifier[:namespace] = 'gov.sciencebase.catalog' hIdentifier[:description] = 'USGS ScienceBase Identifier' hCitation[:identifiers] << hIdentifier return hCitation end end return nil end