aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/manifest.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2008-12-11 21:30:36 -0500
committerRalph Amissah <ralph@amissah.com>2008-12-11 21:31:47 -0500
commit1b8c2dbfb474dce40548bc1cfc052017a9682a12 (patch)
tree33c160fe7acd0cd22ecbd35597d3a543cce6f181 /lib/sisu/v0/manifest.rb
parentodf_format, copyright notice consistency (diff)
harvest, better integrated into sisu
[note sql module not yet updated to include topic_register, as requires recreation of all sisu db(s)]
Diffstat (limited to 'lib/sisu/v0/manifest.rb')
-rw-r--r--lib/sisu/v0/manifest.rb16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/sisu/v0/manifest.rb b/lib/sisu/v0/manifest.rb
index 0b7c7bfc..793ecdc2 100644
--- a/lib/sisu/v0/manifest.rb
+++ b/lib/sisu/v0/manifest.rb
@@ -170,7 +170,7 @@ module SiSU_Manifest
end
end
def metadata(id,info)
- @manifest[:html] << %{<tr><th class="left"><p class="bold">#{id}:</p></th><td><p class="left">#{info}</p></td></tr>\n}
+ @manifest[:html] << %{<tr><th class="left"><p class="bold_left">#{id}:</p></th><td><p class="left">#{info}</p></td></tr>\n}
end
def links(url,lnk,target)
static=if url =~/^\.\//; url.gsub(/^\.(\.)?/,@base_url)
@@ -465,6 +465,20 @@ module SiSU_Manifest
id,info=@translate.prefix_b,@md.prefix_b
metadata(id,info)
end
+ if @md.topic_register_array.length > 1
+ @manifest[:html] << %{<tr><th class="left"><p class="bold_left">#{@translate.topic_register}:</p></th><td>\n}
+ @md.topic_register_array.each do |t|
+ t.each_with_index do |st,i|
+ if st.class == Array
+ st.each do |v|
+ @manifest[:html] << %{<p class="it#{i}">#{v}</p>\n}
+ end
+ else @manifest[:html] << %{<p class="it#{i}">#{st}</p>\n}
+ end
+ end
+ end
+ @manifest[:html] << %{</td></tr>\n}
+ end
if @md.fns
id,info=@translate.sourcefile,@md.fns
metadata(id,info)