added category detail page

This commit is contained in:
Harry Bomrah 2016-04-13 15:33:50 +08:00
parent ea7ddc5339
commit 4f59a27f35
2 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,8 @@ class PersonalTechnologyTransfersController < ApplicationController
"category", "category",
"patent_granted", "patent_granted",
"patent_number", "patent_number",
"authors" "authors",
"category"
] ]
{"plugin_datas"=>plugin.get_plugin_data(fields_to_show)} {"plugin_datas"=>plugin.get_plugin_data(fields_to_show)}

View File

@ -93,7 +93,7 @@ class TechnologyTransfer
def get_plugin_field_data(field) def get_plugin_field_data(field)
case field case field
when "technology_transfer_category" when "technology_transfer_category", "category"
value = self.technology_transfer_category.title rescue "" value = self.technology_transfer_category.title rescue ""
when "patent_granted" when "patent_granted"
value = self.patent_granted ? I18n.t("personal_technology_transfer.y_es") : I18n.t("personal_technology_transfer.n_o") value = self.patent_granted ? I18n.t("personal_technology_transfer.y_es") : I18n.t("personal_technology_transfer.n_o")