lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_repository.rb in adiwg-mdtranslator-2.13.0 vs lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_repository.rb in adiwg-mdtranslator-2.13.1
- old
+ new
@@ -1,12 +1,13 @@
# mdJson 2.0 writer - metadataRepository
# History:
-# Stan Smith 2017-03-11 refactored for mdJson/mdTranslator 2.0
-# Josh Bradley original script
+# Stan Smith 2017-03-11 refactored for mdJson/mdTranslator 2.0
+# Josh Bradley original script
require 'jbuilder'
+require_relative 'mdJson_citation'
module ADIWG
module Mdtranslator
module Writers
module MdJson
@@ -16,9 +17,10 @@
def self.build(hRepository)
Jbuilder.new do |json|
json.repository hRepository[:repository]
json.metadataStandard hRepository[:metadataStandard]
+ json.citation Citation.build(hRepository[:citation]) unless hRepository[:citation].empty?
end
end # build
end # Repository