lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_provenance.rb in adiwg-mdtranslator-2.0.0rc11 vs lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_provenance.rb in adiwg-mdtranslator-2.0.0rc13

- old
+ new

@@ -8,29 +8,13 @@ module Writers module SbJson module Provenance - def self.build(hMetadataInfo) + def self.build - aContacts = hMetadataInfo[:metadataContacts] - aDates = hMetadataInfo[:metadataDates] - hProvenance = {} - hProvenance[:dataSource] = 'generated using ADIwg mdTranslator ' + ADIWG::Mdtranslator::VERSION - - aDates.each do |hDate| - if hDate[:dateType] == 'creation' - hProvenance[:dateCreated] = AdiwgDateTimeFun.stringFromDateObject(hDate) - end - if hDate[:dateType] == 'lastUpdate' - hProvenance[:lastUpdated] = AdiwgDateTimeFun.stringFromDateObject(hDate) - end - end - - if hProvenance.empty? - return nil - end + hProvenance[:annotation] = 'generated using ADIwg mdTranslator ' + ADIWG::Mdtranslator::VERSION hProvenance end