class SiSU_HTML_Format::HeadInformation

Attributes

md[R]
rdf[R]

Public Class Methods

new(md) click to toggle source
# File lib/sisu/html_format.rb, line 97
def initialize(md)
  @md=md
  # DublinCore 1 - title
  @bits=SiSU_Proj_HTML::Bits.new
  @per=SiSU_HTML_Persist::Persist.new
  @per.seg_name_x=SiSU_HTML::Seg.new.seg_name_x
  @per.seg_name_x_tracker=SiSU_HTML::Seg.new.seg_name_x_tracker
  @tocband_scroll,@tocband_segtoc=nil,nil
  @stylesheet=SiSU_Style::CSS_HeadInfo.new(md).stylesheet
  @o_str ||=SiSU_Env::ProcessingSettings.new(md).output_dir_structure
  @index,@metalink='index','#metadata'
  @toc=@md.file.base_filename.html_segtoc
end

Public Instance Methods

button_home(page=:seg) click to toggle source
# File lib/sisu/html_format.rb, line 170
def button_home(page=:seg)
  button=%{ <table summary="home button / home information" border="0" cellpadding="3" cellspacing="0">\n <tr><td align="left" bgcolor="#ffffff">\n}
  if @md.make.home_button_image.is_a?(Hash)
    image_path=if page==:manifest
      @md.file.output_path.manifest.rel_image
    elsif  page==:scroll
      @md.file.output_path.html_scroll.rel_image
    else
      @md.file.output_path.html_seg.rel_image
    end
    SiSU_Env::FileOp.new(@md)
    button +=%{   <p class="tiny_left"><a href="#{@md.make.home_button_image[:link]}" target="_top"><img border="0" src="#{image_path}/#{@md.make.home_button_image[:home_button]}"  width="#{@md.make.home_button_image[:w]}" height="#{@md.make.home_button_image[:h]}" alt="home icon --&gt;" /></a></p>\n}
  elsif @md.home_button_links.is_a?(Array)
    @md.home_button_links.each do |links|
      button +=%{  <p class="tiny_left"><a href="#{links[:url]}" target="_top">\n    #{links[:say]}\n  </a></p>\n}
    end
  end
  button +=%{ </td></tr>\n </table>}
  button
end
doc_types(page=:seg) click to toggle source
# File lib/sisu/html_format.rb, line 157
    def doc_types(page=:seg) #used in toc & seg_nav_band
      wgt=SiSU_HTML_Format::Widget.new(@md)
      %{
<table summary="segment navigation available documents types: toc,doc,pdf,concordance" border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center" bgcolor=#{the_color.band2}>
  #{wgt.manifest(page)}
  #{wgt.search}
</tr></table>}
    end
dot() click to toggle source
# File lib/sisu/html_format.rb, line 131
def dot
  dot_white
end
dot_clear() click to toggle source
# File lib/sisu/html_format.rb, line 125
def dot_clear
  'dot_clear.png'
end
dot_nxt() click to toggle source
# File lib/sisu/html_format.rb, line 152
def dot_nxt
  %{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon.dot}" alt="&gt;" />}
end
dot_pre() click to toggle source
# File lib/sisu/html_format.rb, line 149
def dot_pre
  %{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon.dot}" alt="&lt;" />}
end
dot_toc() click to toggle source
# File lib/sisu/html_format.rb, line 146
def dot_toc
  %{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon.dot}" alt="&#094;" />}
end
dot_white() click to toggle source
# File lib/sisu/html_format.rb, line 128
def dot_white
  'dot_white.png'
end
html_close() click to toggle source
# File lib/sisu/html_format.rb, line 190
    def html_close #moved
    %{</body>
</html>}
    end
icon() click to toggle source
# File lib/sisu/html_format.rb, line 115
def icon
  def up
    'arrow_up_red.png'
  end
  def next
    'arrow_next_red.png'
  end
  def previous
    'arrow_prev_red.png'
  end
  def dot_clear
    'dot_clear.png'
  end
  def dot_white
    'dot_white.png'
  end
  def dot
    dot_white
  end
  self
end
next() click to toggle source
# File lib/sisu/html_format.rb, line 119
def next
  'arrow_next_red.png'
end
nxt() click to toggle source
# File lib/sisu/html_format.rb, line 143
def nxt
  %{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon.next}" alt="next&nbsp;&gt;&gt;" />}
end
png_nav() click to toggle source
# File lib/sisu/html_format.rb, line 136
def png_nav
  def toc
    %{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon.up}" alt="toc" />}
  end
  def pre
    %{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon.previous}" alt="&lt;&lt;&nbsp;previous" />}
  end
  def nxt
    %{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon.next}" alt="next&nbsp;&gt;&gt;" />}
  end
  def dot_toc
    %{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon.dot}" alt="&#094;" />}
  end
  def dot_pre
    %{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon.dot}" alt="&lt;" />}
  end
  def dot_nxt
    %{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon.dot}" alt="&gt;" />}
  end
  self
end
pre() click to toggle source
# File lib/sisu/html_format.rb, line 140
def pre
  %{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon.previous}" alt="&lt;&lt;&nbsp;previous" />}
end
previous() click to toggle source
# File lib/sisu/html_format.rb, line 122
def previous
  'arrow_prev_red.png'
end
toc() click to toggle source
# File lib/sisu/html_format.rb, line 137
def toc
  %{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon.up}" alt="toc" />}
end
up() click to toggle source
# File lib/sisu/html_format.rb, line 116
def up
  'arrow_up_red.png'
end
url_path_image_sys() click to toggle source
# File lib/sisu/html_format.rb, line 110
def url_path_image_sys
  (@o_str.dump_or_redirect?) \
  ? './image'
  : "#{Xx[:html_relative2]}_sisu/image_sys"
end