Update journal_paper.rb

This commit is contained in:
chiu 2019-11-02 14:51:05 +08:00
parent bca9b359d4
commit a96d5d0d06
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ class JournalPaper
value = files.join("") value = files.join("")
when "url" when "url"
value = self.url.to_s.blank? ? "" : "<a href='#{self.url}'>#{self.url}</a>" value = self.url.to_s.blank? ? "" : "<a href='#{self.url}'>#{self.url}</a>"
when "authors"
value = get_authors_show(self)
else else
value = self.send(field) rescue "" value = self.send(field) rescue ""
end end