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 end
value = value.join(" / ") value = value.join(" / ")
when "publication_date" 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" when "language"
value = I18n.t(self.language) rescue "" value = I18n.t(self.language) if !self.language.nil? rescue ""
when "abstract" when "abstract"
value = nl2br(self.abstract) value = nl2br(self.abstract)
when "file" when "file"