lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb in adiwg-mdtranslator-2.19.0.pre.beta.13 vs lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb in adiwg-mdtranslator-2.19.0.pre.beta.26

- old
+ new

@@ -14,10 +14,26 @@ def writeHtml(hDataQuality) citationClass = Html_Citation.new(@html) scopeClass = Html_Scope.new(@html) dataQualityReportClass = Html_DataQualityReport.new(@html) + # system identifier + unless hDataQuality[:systemIdentifier].nil? + systemIdentifier = hDataQuality[:systemIdentifier] + @html.section(:class => 'block') do + @html.details do + @html.summary('System Identifier', {'class' => 'h4'}) + @html.em('UUID: ') + @html.text!(systemIdentifier[:uid]) + @html.br + @html.em('Label:') + @html.text!(systemIdentifier[:label]) + @html.br + end + end + end + # scope unless hDataQuality[:scope].empty? @html.section(:class => 'block') do @html.details do @html.summary('Scope', {'class' => 'h4'}) @@ -62,10 +78,10 @@ @html.details do @html.summary('Reports', {'class' => 'h4'}) hDataQuality[:report].each do |report| @html.section(:class => 'block') do @html.details do - @html.summary('Report', {'class' => 'h5'}) + @html.summary(report[:type], {'class' => 'h5'}) dataQualityReportClass.writeHtml(report) end end end end