Fix link.
This commit is contained in:
parent
70b55508c7
commit
b4c7162a9a
|
@ -132,8 +132,9 @@ class JournalPaper
|
|||
case t
|
||||
when "paper_title"
|
||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_journal')
|
||||
paper_title = link=='#' ? p.paper_title : "<a href=\"#{link}\" title=\"#{p.paper_title}\" target='_blank'>#{p.paper_title}</a>"
|
||||
pd_data << { "data_title" => paper_title }
|
||||
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 : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{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"
|
||||
|
@ -146,8 +147,9 @@ class JournalPaper
|
|||
else
|
||||
if t == "paper_title"
|
||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_journal')
|
||||
paper_title = link=='#' ? p.create_link : "<a href=\"#{link}\" title=\"#{p.create_link}\" target='_blank'>#{p.create_link}</a>"
|
||||
pd_data << { "data_title" => paper_title }
|
||||
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 : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}") }
|
||||
else
|
||||
pd_data << { "data_title" => p.send(t) }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue