From fb4187e3684130d4b2038a5c480379608463f518 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 15 Dec 2022 18:17:51 +0800 Subject: [PATCH] Fix link. --- app/models/journal_paper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 029bfdb..ba739bc 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -134,7 +134,7 @@ class JournalPaper link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_journal') url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) tmp_title = p.paper_title - pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } when "level_type" pd_data << {"data_title" => ( !p.journal_levels.blank? ? "(#{p.journal_levels.collect{|x| x.title}.join(', ')})" : nil)} when "publication_date" @@ -149,7 +149,7 @@ class JournalPaper link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_journal') url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank) tmp_title = p.create_link - pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } + pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "#{tmp_title}") } else pd_data << { "data_title" => p.send(t) } end