small fix for trailing ","

This commit is contained in:
Harry Bomrah 2015-10-05 19:28:56 +08:00
parent 7435e53015
commit bed50f2668
1 changed files with 1 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class JournalPaper
def create_link
title = []
title << (!self.authors.blank? ? self.authors : nil)
title << self.authors if !self.authors.blank?
title << self.paper_title if self.paper_title.present?
title << self.journal_title if self.journal_title.present?
title << self.vol_no if (self.vol_no.present? && self.vol_no != "0")
@ -63,7 +63,6 @@ class JournalPaper
# title << pd[0]
# end
title << self.year
title.join(', ').gsub(', ,',',')
end
# def self.member_data