Fix link.

This commit is contained in:
BoHung Chiu 2022-12-15 18:13:06 +08:00
parent a827a607a4
commit 77b6c0a2d2
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ class OtherPaper
field :note, :type => String, :default => "" field :note, :type => String, :default => ""
field :authors, :type => String, :default => "", :localize => true field :authors, :type => String, :default => "", :localize => true
belongs_to :other_paper_status belongs_to :other_paper_status
@ -200,7 +199,8 @@ class OtherPaper
if field == "title" if field == "title"
link = OrbitHelper.url_to_plugin_show(other_paper.to_param,'personal_other_paper') link = OrbitHelper.url_to_plugin_show(other_paper.to_param,'personal_other_paper')
tmp_title = (title_is_paper_format ? other_paper.create_link : value) tmp_title = (title_is_paper_format ? other_paper.create_link : value)
value = link == '#' ? tmp_title : "<a href='#{link}' target='_blank' title='#{tmp_title}'>#{tmp_title}</a>" url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
value = (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}")
end end
value value
end end