diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 2905019..bcce783 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -119,7 +119,7 @@ class JournalPaper if !page.nil? && page.custom_string_field == "table" case t when "paper_title" - pd_data << { "data_title" => "#{p.paper_title}" } + pd_data << { "data_title" => "#{p.paper_title}" } when "level_type" pd_data << {"data_title" => ( !p.journal_levels.blank? ? "(#{p.journal_levels.collect{|x| x.title}.join(', ')})" : nil)} when "publication_date" @@ -131,7 +131,7 @@ class JournalPaper end else if t == "paper_title" - pd_data << { "data_title" => "#{p.create_link}" } + pd_data << { "data_title" => "#{p.create_link}" } else pd_data << { "data_title" => p.send(t) } end @@ -212,7 +212,7 @@ class JournalPaper self.journal_paper_files.each do |file| url = file.journal_file.url title = ((file.title.blank? ? File.basename(file.journal_file.path) : file.title) rescue "") - files << (url.nil? ? "" : "