diff --git a/app/models/patent.rb b/app/models/patent.rb index 0593686..16525eb 100644 --- a/app/models/patent.rb +++ b/app/models/patent.rb @@ -93,7 +93,10 @@ class Patent fields_to_show.collect do |t| case t when "patent_title" - pd_data << {"data_title" => " #{p.patent_title} "} + 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 : "#{tmp_title}") } when "publish_date" pd_data << {"data_title" => (p.publish_date.strftime("%Y/%m/%d") rescue "")} when "application_date"