lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_timeInstant.rb in adiwg-mdtranslator-2.5.0 vs lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_timeInstant.rb in adiwg-mdtranslator-2.6.0

- old
+ new

@@ -1,13 +1,15 @@ # mdJson 2.0 writer - time instant # History: -# Stan Smith 2017-03-15 original script +# Stan Smith 2017-11-08 add geologic age +# Stan Smith 2017-03-15 original script require 'jbuilder' require_relative 'mdJson_identifier' require_relative 'mdJson_dateTime' +require_relative 'mdJson_geologicAge' module ADIWG module Mdtranslator module Writers module MdJson @@ -20,9 +22,10 @@ json.id hTimeInstant[:timeId] json.description hTimeInstant[:description] json.identifier Identifier.build(hTimeInstant[:identifier]) unless hTimeInstant[:identifier].empty? json.instantName hTimeInstant[:instantNames] unless hTimeInstant[:instantNames].empty? json.dateTime DateTime.build(hTimeInstant[:timeInstant]) unless hTimeInstant[:timeInstant].empty? + json.geologicAge GeologicAge.build(hTimeInstant[:geologicAge]) unless hTimeInstant[:geologicAge].empty? end end # build end # TimeInstant