fix journal show

This commit is contained in:
Harry Bomrah 2016-04-06 14:15:01 +08:00
parent d5388791be
commit ee4a42477a
1 changed files with 2 additions and 2 deletions

View File

@ -204,9 +204,9 @@ class JournalPaper
end
value = value.join(" / ")
when "publication_date"
value = self.publication_date.to_date.strftime("%Y-%m-%d") rescue ""
value = self.publication_date.strftime("%Y-%m-%d") rescue ""
when "language"
value = I18n.t(self.language) rescue ""
value = I18n.t(self.language) if !self.language.nil? rescue ""
when "abstract"
value = nl2br(self.abstract)
when "file"