Fix link.
This commit is contained in:
parent
a827a607a4
commit
77b6c0a2d2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue