class ADIWG::Mdtranslator::Writers::Html::Html_Identifier
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_identifier.rb, line 20 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hIdentifier)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_identifier.rb, line 24 def writeHtml(hIdentifier) # classes used citationClass = Html_Citation.new(@html) # identifier - identifier unless hIdentifier[:identifier].nil? @html.em('Identifier:') @html.text!(hIdentifier[:identifier]) @html.br end # identifier - namespace unless hIdentifier[:namespace].nil? @html.em(' Namespace:') @html.text!(hIdentifier[:namespace]) @html.br end # identifier - version unless hIdentifier[:version].nil? @html.em(' Version:') @html.text!(hIdentifier[:version]) @html.br end # identifier - name (only in spatial reference system projection) unless hIdentifier[:name].nil? @html.em(' Name:') @html.text!(hIdentifier[:name]) @html.br end # identifier - description unless hIdentifier[:description].nil? @html.em(' Description:') @html.section(:class => 'block') do @html.text!(hIdentifier[:description]) end end # identifier - authority {citation} unless hIdentifier[:citation].empty? @html.details do @html.summary('Authority', {'id' => 'metadata-identifier', 'class' => 'h5'}) @html.section(:class => 'block') do citationClass.writeHtml(hIdentifier[:citation]) end end end end