lib/adiwg/mdtranslator/writers/html/sections/html_body.rb in adiwg-mdtranslator-1.1.0 vs lib/adiwg/mdtranslator/writers/html/sections/html_body.rb in adiwg-mdtranslator-1.1.1
- old
+ new
@@ -37,10 +37,11 @@
htmlFormat = $HtmlNS::MdHtmlFormat.new(@html)
htmlTranOpt = $HtmlNS::MdHtmlTransferOption.new(@html)
# make sections of the internal data store more accessible
hMetadata = intObj[:metadata]
+ hMetaInfo = hMetadata[:metadataInfo]
aDataDict = intObj[:dataDictionary]
aDistributor = intObj[:metadata][:distributorInfo]
aAssRes = intObj[:metadata][:associatedResources]
aAddDocs = intObj[:metadata][:additionalDocuments]
@@ -125,13 +126,16 @@
end
@html.hr
# metadata information section
@html.h2('Metadata Information', 'id'=>'metadataInfo')
- @html.section(:class=>'block') do
- htmlMetaInfo.writeHtml(hMetadata[:metadataInfo])
+ if !hMetaInfo.empty?
+ @html.section(:class=>'block') do
+ htmlMetaInfo.writeHtml(hMetaInfo)
+ end
end
@html.hr
+
# resource information section
@html.h2('Resource Information', 'id'=>'resourceInfo')
@html.section(:class=>'block') do
htmlResInfo.writeHtml(hMetadata[:resourceInfo])