aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/harvest_authors.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-10-01 16:09:17 -0400
committerRalph Amissah <ralph@amissah.com>2012-10-01 16:09:17 -0400
commitd98f27086318452017b80952a297f2ccb05bc4b1 (patch)
treedf39d4ff3f86ff4648efc66683b87c67e8e1fb1a /lib/sisu/v3/harvest_authors.rb
parentv3: cosmetic code, remove javascript holders js_ (not used) (diff)
v3: some fixes, cleaning, removing
Diffstat (limited to 'lib/sisu/v3/harvest_authors.rb')
-rw-r--r--lib/sisu/v3/harvest_authors.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v3/harvest_authors.rb b/lib/sisu/v3/harvest_authors.rb
index 7c044425..1846584a 100644
--- a/lib/sisu/v3/harvest_authors.rb
+++ b/lib/sisu/v3/harvest_authors.rb
@@ -117,7 +117,7 @@ module SiSU_HarvestAuthors
if para=~ rgx[:date]
@date=rgx[:date].match(para)[1]
end
- break if @title and @subtitle and @author and @date
+ break if @title && @subtitle && @author && @date
end
@fulltitle=@subtitle ? (@title + ' - ' + @subtitle) : @title
if @title \
@@ -354,6 +354,7 @@ WOK
x[:file] + '.' + lng + '.html'
elsif @env.output_dir_structure.by? == :filename
"../#{x[:file]}/#{x[:page]}"
+ else '' #error
end
work=[ "#{x[:date]} #{x[:title]}", %{<p class="publication">#{x[:date]} <a href="#{manifest_at}">#{x[:title]}</a>, #{x[:author][:authors_s]}</p>} ]
works<<=(@output[lng][:html_mnt].is_a?(File)) \