Fix link.

This commit is contained in:
BoHung Chiu 2022-12-15 18:18:21 +08:00
parent ef758857f0
commit ee0ca5d6a8
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class Patent
link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_patent') link = OrbitHelper.url_to_plugin_show(p.to_param,'personal_patent')
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.patent_title tmp_title = p.patent_title
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" when "publish_date"
pd_data << {"data_title" => (p.publish_date.strftime("%Y/%m/%d") rescue "")} pd_data << {"data_title" => (p.publish_date.strftime("%Y/%m/%d") rescue "")}
when "application_date" when "application_date"