lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb in adiwg-mdtranslator-2.10.0 vs lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb in adiwg-mdtranslator-2.12.0.pre
- old
+ new
@@ -1,9 +1,10 @@
# HTML writer
# resource information
# History:
+# Stan Smith 2018-04-06 changed taxonomy to an array
# Stan Smith 2017-05-19 removed iso topicCategory (now presented as keywords)
# Stan Smith 2017-03-25 refactored for mdTranslator 2.0
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
# Stan Smith 2015-03-24 original script
@@ -335,10 +336,19 @@
# resource - taxonomy {taxonomy}
unless hResource[:taxonomy].empty?
@html.details do
@html.summary('Taxonomy', {'id' => 'resourceInfo-taxonomy', 'class' => 'h3'})
@html.section(:class => 'block') do
- taxonomyClass.writeHtml(hResource[:taxonomy])
+ counter = 0
+ hResource[:taxonomy].each do |hTaxonomy|
+ counter += 1
+ @html.details do
+ @html.summary('Taxonomic Structure '+counter.to_s, 'class' => 'h5')
+ @html.section(:class => 'block') do
+ taxonomyClass.writeHtml(hTaxonomy)
+ end
+ end
+ end
end
end
end
# resource - constraints [] {constraint}