patent title fixed

This commit is contained in:
Harry Bomrah 2016-04-06 19:06:30 +08:00
parent aed57b185c
commit 43365e4592
2 changed files with 2 additions and 2 deletions

View File

@ -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 "")}

View File

@ -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 "")}