From 0b91cf408675048e634bf7a06d355221bcc1bf84 Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 27 Nov 2020 14:53:44 +0800 Subject: [PATCH] Fix a tag bug. --- app/models/journal_paper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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? ? "" : "
  • #{title}
  • ") + files << (url.nil? ? "" : "
  • #{title}
  • ") end value = files.join("") when "url"