aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/manifest.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-04-26 21:07:14 -0400
committerRalph Amissah <ralph@amissah.com>2010-04-26 21:07:20 -0400
commit361032d47d096c241d562852e71211feb0198b56 (patch)
treee87de9e19b68e17ee5d1afbc6020a26862454a9e /lib/sisu/v2/manifest.rb
parentgit, start experimenting with an alternative/parallel git based sisu document... (diff)
metadata, db sql (table structure), adds OCLC number, and; html metadata, renables showing of topic_register
* db (sql) add oclc (Online Computer Library Center) number, affects table structure, (hence breakage & version bump) * new db name prefix "sisu_v2c_"; new pgsql db name prefix "SiSUv2c_" * OCLC == Online Computer Library Center
Diffstat (limited to 'lib/sisu/v2/manifest.rb')
-rw-r--r--lib/sisu/v2/manifest.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sisu/v2/manifest.rb b/lib/sisu/v2/manifest.rb
index c1da4ccb..85881263 100644
--- a/lib/sisu/v2/manifest.rb
+++ b/lib/sisu/v2/manifest.rb
@@ -485,6 +485,13 @@ module SiSU_Manifest
id,info=@translate.cls_dewey,@md.classify.dewey
metadata(id,info)
end
+ if defined? @md.classify.oclc \
+ and @md.classify.oclc=~/\S+/
+ id,info=@translate.cls_oclc,@md.classify.oclc
+ @manifest[:html] << %{<tr><th class="left"><p class="bold_left">#{id}:</p></th><td>\n}
+ @manifest[:html] << %{<p class="left"><a href="http://worldcat.org/oclc/#{info}">#{info}</a></p>\n}
+ @manifest[:html] << %{</td></tr>\n}
+ end
if defined? @md.classify.pg \
and @md.classify.pg=~/\S+/
id,info=@translate.cls_gutenberg,@md.classify.pg
@@ -505,7 +512,8 @@ module SiSU_Manifest
id,info=@translate.prefix_b,@md.notes.prefix_b
metadata(id,info)
end
- if @md.topic_register_array.length > 1
+ if defined? @md.topic_register_array \
+ and @md.topic_register_array.length > 0
@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|