diff --git a/lib/adiwg/mdtranslator/readers/sbJson/modules_v0/module_metadata.rb b/lib/adiwg/mdtranslator/readers/sbJson/modules_v0/module_metadata.rb index 1ac3b85de..2fef17cad 100644 --- a/lib/adiwg/mdtranslator/readers/sbJson/modules_v0/module_metadata.rb +++ b/lib/adiwg/mdtranslator/readers/sbJson/modules_v0/module_metadata.rb @@ -45,7 +45,7 @@ def self.unpack(hMetadata, responseObj, intObj) doc = { 'resourceType' => hAddDoc['type'], 'citation' => { - 'title' => hAddDoc['title'], + 'title' => hAddDoc['title'] || hAddDoc['typeLabel'], 'onlineResource' => [ { 'uri' => hAddDoc['uri'], diff --git a/lib/adiwg/mdtranslator/version.rb b/lib/adiwg/mdtranslator/version.rb index 069f4f70b..9bd761931 100644 --- a/lib/adiwg/mdtranslator/version.rb +++ b/lib/adiwg/mdtranslator/version.rb @@ -61,6 +61,6 @@ module ADIWG module Mdtranslator # current mdtranslator version - VERSION = "1.4.0.beta1" + VERSION = "1.4.0.beta2" end end diff --git a/lib/adiwg/mdtranslator/writers/mdJson/mdJson_writer.rb b/lib/adiwg/mdtranslator/writers/mdJson/mdJson_writer.rb index 7c46c1d63..56c421c6f 100644 --- a/lib/adiwg/mdtranslator/writers/mdJson/mdJson_writer.rb +++ b/lib/adiwg/mdtranslator/writers/mdJson/mdJson_writer.rb @@ -12,7 +12,7 @@ def self.startWriter(_intObj, responseObj, _paramsObj) #set output flag for null properties Jbuilder::ignore_nil(!responseObj[:writerShowTags]) # set the format of the output file based on the writer specified - responseObj[:writerFormat] = 'mdJson' + responseObj[:writerFormat] = 'json' responseObj[:writerVersion] = ADIWG::Mdtranslator::Writers::MdJson::VERSION # version diff --git a/lib/adiwg/mdtranslator/writers/sbJson/sbJson_writer.rb b/lib/adiwg/mdtranslator/writers/sbJson/sbJson_writer.rb index 6ce32307b..8c920c0b4 100644 --- a/lib/adiwg/mdtranslator/writers/sbJson/sbJson_writer.rb +++ b/lib/adiwg/mdtranslator/writers/sbJson/sbJson_writer.rb @@ -16,7 +16,7 @@ def self.startWriter(_intObj, responseObj, _paramsObj) # set output flag for null properties Jbuilder.ignore_nil(!responseObj[:writerShowTags]) # set the format of the output file based on the writer specified - responseObj[:writerFormat] = 'sbJson' + responseObj[:writerFormat] = 'json' responseObj[:writerVersion] = ADIWG::Mdtranslator::Writers::SbJson::VERSION rInfo = _intObj[:metadata][:resourceInfo]