fix member plugin frontend

This commit is contained in:
Spen 2013-11-28 10:10:55 +08:00 committed by Manson Wang
parent a845a9d41b
commit 5e9c6924e2
3 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,8 @@ class WritingBook
if !self.publish_date.nil? if !self.publish_date.nil?
pd = self.publish_date.strftime("%Y-%m-%d").split('-') pd = self.publish_date.strftime("%Y-%m-%d").split('-')
title << pd[0]+"/"+pd[1] title << pd[0]+"/"+pd[1]
elsif !self.year.blank?
title << self.year
end end
# title << "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})" # title << "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})"

View File

@ -91,6 +91,8 @@ class WritingConference
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('-')
title << pd[0] title << pd[0]
elsif !self.year.blank?
title << self.year
end end
title << self.paper_title if self.paper_title.present? title << self.paper_title if self.paper_title.present?

View File

@ -97,6 +97,8 @@ class WritingJournal
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('-')
title << pd[0] title << pd[0]
elsif !self.year.blank?
title << self.year
end end
title << self.paper_title if self.paper_title.present? title << self.paper_title if self.paper_title.present?
title << self.journal_title if self.journal_title.present? title << self.journal_title if self.journal_title.present?