patent title fixed
This commit is contained in:
parent
aed57b185c
commit
43365e4592
|
@ -17,7 +17,7 @@ class PersonalPatentsController < ApplicationController
|
|||
t = []
|
||||
fields_to_show.each do |fs|
|
||||
case fs
|
||||
when "title"
|
||||
when "patent_title"
|
||||
t << {"value" => "<a href='#{OrbitHelper.url_to_show(patent.to_param)}'>" + (patent.send(fs) rescue "") + "</a>"}
|
||||
when "publish_date"
|
||||
t << {"value" => (patent.publish_date.strftime("%Y/%m/%d") rescue "")}
|
||||
|
|
|
@ -87,7 +87,7 @@ class Patent
|
|||
pd_data = []
|
||||
fields_to_show.collect do |t|
|
||||
case t
|
||||
when "title"
|
||||
when "patent_title"
|
||||
pd_data << {"data_title" => "<a href='#{OrbitHelper.url_to_show(p.to_param)}'>" + (p.send(fs) rescue "") + "</a>"}
|
||||
when "publish_date"
|
||||
pd_data << {"data_title" => (p.publish_date.strftime("%Y/%m/%d") rescue "")}
|
||||
|
|
Loading…
Reference in New Issue