Update personal_journals_controller.rb
fix paper_type show error
This commit is contained in:
parent
0aa6715a2f
commit
b63aebc633
|
@ -72,6 +72,8 @@ class PersonalJournalsController < ApplicationController
|
||||||
t << {"value" => (journal_paper.send(fs).strftime("%Y/%m") rescue "")}
|
t << {"value" => (journal_paper.send(fs).strftime("%Y/%m") rescue "")}
|
||||||
when "author_type"
|
when "author_type"
|
||||||
t << {"value" => (journal_paper.journal_paper_author_types.collect{|jat| jat.title}.join(", ") rescue "")}
|
t << {"value" => (journal_paper.journal_paper_author_types.collect{|jat| jat.title}.join(", ") rescue "")}
|
||||||
|
when "paper_types"
|
||||||
|
t << {"value" => ( !journal_paper.paper_types.blank? ? "(#{journal_paper.paper_types.collect{|x| x.title}.join(', ')})" : nil)}
|
||||||
when "language"
|
when "language"
|
||||||
t << {"value" => (!journal_paper.language.nil? ? t("#{journal_paper.language}") : "")}
|
t << {"value" => (!journal_paper.language.nil? ? t("#{journal_paper.language}") : "")}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue