Sha256: 4b69358e1cb37811288e3ec175079d6ac57449a25b092246e098468dd430c08e
Contents?: true
Size: 1.74 KB
Versions: 4
Compression:
Stored size: 1.74 KB
Contents
# HTML writer # descriptive keywords # History: # Stan Smith 2015-03-23 original script require 'html_citation' module ADIWG module Mdtranslator module Writers module Html class MdHtmlKeyword def initialize(html) @html = html end def writeHtml(hKeyList) # classes used htmlCitation = $HtmlNS::MdHtmlCitation.new(@html) # descriptive keywords - type s = hKeyList[:keywordType] if !s.nil? @html.text!(s) @html.br end @html.section(:class=>'block') do # descriptive keywords - keywords - required @html.em('Keywords: ') @html.ul do hKeyList[:keyword].each do |keyword| @html.li(keyword) end end # descriptive keywords - citation hCitation = hKeyList[:keyTheCitation] if !hCitation.empty? @html.em('Thesaurus citation: ') @html.br @html.section(:class=>'block') do htmlCitation.writeHtml(hCitation) end end end end # writeHtml end # class end end end end
Version data entries
4 entries across 4 versions & 1 rubygems