forked from saurabh/personal-journal
fix nil error
This commit is contained in:
parent
8da83ec1c0
commit
8414cee650
|
@ -58,7 +58,7 @@ class JournalPaper
|
||||||
title << self.journal_title if self.journal_title.present?
|
title << self.journal_title if self.journal_title.present?
|
||||||
title << self.vol_no if (self.vol_no.present? && self.vol_no != "0")
|
title << self.vol_no if (self.vol_no.present? && self.vol_no != "0")
|
||||||
title << self.issue_no if (self.issue_no.present? && self.issue_no != "0")
|
title << self.issue_no if (self.issue_no.present? && self.issue_no != "0")
|
||||||
title << "pp"+self.form_to_start+"-"+self.form_to_end if (self.form_to_start.present? && self.form_to_start != "0")
|
title << "pp"+self.form_to_start.to_s+"-"+self.form_to_end.to_s if (self.form_to_start.present? && self.form_to_start != "0")
|
||||||
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?
|
||||||
# pd = self.publication_date.strftime("%Y-%m-%d").split('-')
|
# pd = self.publication_date.strftime("%Y-%m-%d").split('-')
|
||||||
|
|
Loading…
Reference in New Issue