Sha256: c013aa693de8203a1dfe82086bd2943c59f56f299584790a3dd199a91dba2992
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
# unpack additional doucmentation # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2014-11-06 original script require ADIWG::Mdtranslator.reader_module('module_citation', $response[:readerVersionUsed]) module Adiwg_AdditionalDocumentation def self.unpack(hAddDoc) # instance classes needed in script intMetadataClass = InternalMetadata.new intAddDoc = intMetadataClass.newAssociatedResource # associated resource - resource type if hAddDoc.has_key?('resourceType') s = hAddDoc['resourceType'] if s != '' intAddDoc[:resourceType] = s end end # associated resource - resource citation if hAddDoc.has_key?('citation') hCitation = hAddDoc['citation'] unless hCitation.empty? intAddDoc[:citation] = Adiwg_Citation.unpack(hCitation) end end return intAddDoc end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-0.9.0 | lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_additionalDocumentation.rb |