diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-10-01 16:09:17 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-10-01 16:09:17 -0400 |
commit | d98f27086318452017b80952a297f2ccb05bc4b1 (patch) | |
tree | df39d4ff3f86ff4648efc66683b87c67e8e1fb1a /lib/sisu/v3/harvest_authors.rb | |
parent | v3: 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.rb | 3 |
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)) \ |