fix
This commit is contained in:
parent
efe0e57d7b
commit
f4a907b771
|
@ -35,6 +35,8 @@ class PersonalJournalsController < ApplicationController
|
|||
t << {"value" => ( !journal_paper.journal_levels.blank? ? "(#{journal_paper.journal_levels.collect{|x| x.title}.join(', ')})" : nil)}
|
||||
when "publication_date"
|
||||
t << {"value" => (journal_paper.send(fs).strftime("%Y/%m/%d") rescue "")}
|
||||
when "author_type"
|
||||
t << {"value" => (journal_paper.journal_paper_author_types.collect{|jat| title}.join(", ") rescue "")}
|
||||
else
|
||||
t << {"value" => journal_paper.send(fs)}
|
||||
end
|
||||
|
|
|
@ -122,6 +122,8 @@ class JournalPaper
|
|||
pd_data << {"data_title" => ( !p.journal_levels.blank? ? "(#{p.journal_levels.collect{|x| x.title}.join(', ')})" : nil)}
|
||||
when "publication_date"
|
||||
pd_data << {"data_title" => (p.send(t).strftime("%Y/%m/%d") rescue "")}
|
||||
when "author_type"
|
||||
pd_data << {"data_title" => (p.journal_paper_author_types.collect{|jat| title}.join(", ") rescue "")}
|
||||
else
|
||||
pd_data << {"data_title" => p.send(t)}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue