Fix link.
This commit is contained in:
parent
4dcb3b5b1d
commit
ef758857f0
|
@ -93,7 +93,10 @@ class Patent
|
||||||
fields_to_show.collect do |t|
|
fields_to_show.collect do |t|
|
||||||
case t
|
case t
|
||||||
when "patent_title"
|
when "patent_title"
|
||||||
pd_data << {"data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_patent')}' title='#{p.patent_title}' target='_blank'> #{p.patent_title} </a>"}
|
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)
|
||||||
|
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}") }
|
||||||
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"
|
||||||
|
|
Loading…
Reference in New Issue