[ HOME ] also see SiSU Metadata Harvest - Topics
'
@alph.each do |x|
a << if x =~/[0-9]/; ''
else
%{#{x}, }
end
end
@output[:html_mnt] << a.join if @output[:html_mnt].class == File
@output[:html] << a.join
end
def html_tail
a=[]
a <<<
#{string}
} do_html(html) end def do_string_name(attrib,string) f=/^(\S)/.match(string[0])[1] if @letter < f while @letter < f if @alph.length > 0 @letter=@alph.shift if @output[:html_mnt].class == File @output[:html_mnt] << %{\n} end @output[:html] << %{\n} else break end end end end def html_body the_idx=@the_idx the_idx.sort.each do |a| do_string_name('',a) name=a[0].sub(/(.+?)(?:,.+|$)/,'\1').gsub(/\s+/,'_') x = %{ } if @output[:html_mnt].class == File @output[:html_mnt] << x end @output[:html] << x works=[] a[1][:md].each do |x| work=[ "#{x[:date]} #{x[:title]}", %{#{x[:date]} #{x[:title]}, #{x[:author][:authors_s]}
} ] works<<=if @output[:html_mnt].class == File work.concat([%{[src] #{x[:date]} #{x[:title]}, #{x[:author][:authors_s]} -- [#{x[:file]}.sst]
}]) else work end end works.sort_by {|x| x[0]}.each do |x| @output[:html] << x[1] @output[:html_mnt] << x[2] if @output[:html_mnt].class == File end end end self end def screen_print def cycle the_idx=@the_idx the_idx.sort.each do |a| puts a[0] a[1][:md].each do |x| puts "\t" + x[:file] end end end self end end end __END__