aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/manifest.rb
diff options
context:
space:
mode:
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|