Fix link.
This commit is contained in:
parent
79f3aa17bd
commit
3b9e5d1536
|
@ -114,7 +114,7 @@ class Book
|
||||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')
|
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')
|
||||||
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||||
tmp_title = p.send(t)
|
tmp_title = p.send(t)
|
||||||
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}") }
|
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}</a>") }
|
||||||
when "publish_date", "publication_date"
|
when "publish_date", "publication_date"
|
||||||
pd = ""
|
pd = ""
|
||||||
if !p.publication_date.nil?
|
if !p.publication_date.nil?
|
||||||
|
@ -134,7 +134,7 @@ class Book
|
||||||
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')
|
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_book')
|
||||||
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
|
||||||
tmp_title = p.create_link
|
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}") }
|
pd_data << { "data_title" => (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}</a>") }
|
||||||
else
|
else
|
||||||
pd_data << { "data_title" => p.send(t) }
|
pd_data << { "data_title" => p.send(t) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue