Updated.
This commit is contained in:
parent
415f79314c
commit
94e205445b
|
@ -63,8 +63,9 @@ class JournalPaper
|
||||||
# title << ( !self.journal_levels.blank? ? "(#{self.journal_levels.collect{|x| x.title}.join(', ')})" : nil)
|
# title << ( !self.journal_levels.blank? ? "(#{self.journal_levels.collect{|x| x.title}.join(', ')})" : nil)
|
||||||
if !self.publication_date.nil?
|
if !self.publication_date.nil?
|
||||||
title << (self.publication_date.strftime("%b. %Y") rescue nil)
|
title << (self.publication_date.strftime("%b. %Y") rescue nil)
|
||||||
|
elsif self.year.present?
|
||||||
|
title << self.year
|
||||||
end
|
end
|
||||||
# title << self.year
|
|
||||||
title.delete(nil)
|
title.delete(nil)
|
||||||
title.join(', ').sub(/^\\s*,/,'').gsub(/,(\s*,)+/,',').strip
|
title.join(', ').sub(/^\\s*,/,'').gsub(/,(\s*,)+/,',').strip
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue