Sha256: 80a1a25bd29be4cf5941f8a1c78ba31e95c3023c377bdcb983a7e0ff8651b1ee
Contents?: true
Size: 924 Bytes
Versions: 6
Compression:
Stored size: 924 Bytes
Contents
# unpack voucher # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2013-11-21 original script # Stan Smith 2014-07-07 resolve require statements using Mdtranslator.reader_module require ADIWG::Mdtranslator.reader_module('module_responsibleParty', $response[:readerVersionUsed]) module Adiwg_Voucher def self.unpack(hVoucher) # instance classes needed in script intMetadataClass = InternalMetadata.new intTaxVoucher = intMetadataClass.newTaxonVoucher # taxonomy voucher - specimen if hVoucher.has_key?('specimen') s = hVoucher['specimen'] if s != '' intTaxVoucher[:specimen] = s end end # taxonomy - repository - responsible party if hVoucher.has_key?('repository') hRepository = hVoucher['repository'] unless hRepository.empty? intTaxVoucher[:repository] = Adiwg_ResponsibleParty.unpack(hRepository) end end return intTaxVoucher end end
Version data entries
6 entries across 6 versions & 1 rubygems