diff --git a/vendor/built_in_modules/personal_book/app/models/writing_book.rb b/vendor/built_in_modules/personal_book/app/models/writing_book.rb index e6359f9d..1e99ac61 100644 --- a/vendor/built_in_modules/personal_book/app/models/writing_book.rb +++ b/vendor/built_in_modules/personal_book/app/models/writing_book.rb @@ -94,6 +94,8 @@ class WritingBook if !self.publish_date.nil? pd = self.publish_date.strftime("%Y-%m-%d").split('-') title << pd[0]+"/"+pd[1] + elsif !self.year.blank? + title << self.year end # title << "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})" diff --git a/vendor/built_in_modules/personal_conference/app/models/writing_conference.rb b/vendor/built_in_modules/personal_conference/app/models/writing_conference.rb index 8b5ab9e9..a31f9906 100644 --- a/vendor/built_in_modules/personal_conference/app/models/writing_conference.rb +++ b/vendor/built_in_modules/personal_conference/app/models/writing_conference.rb @@ -91,6 +91,8 @@ class WritingConference if !self.publication_date.nil? pd = self.publication_date.strftime("%Y-%m-%d").split('-') title << pd[0] + elsif !self.year.blank? + title << self.year end title << self.paper_title if self.paper_title.present? diff --git a/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb b/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb index 415198b9..15cfde77 100644 --- a/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb +++ b/vendor/built_in_modules/personal_journal/app/models/writing_journal.rb @@ -97,6 +97,8 @@ class WritingJournal if !self.publication_date.nil? pd = self.publication_date.strftime("%Y-%m-%d").split('-') title << pd[0] + elsif !self.year.blank? + title << self.year end title << self.paper_title if self.paper_title.present? title << self.journal_title if self.journal_title.present?