Fix links in member module
This commit is contained in:
parent
08a8d668ec
commit
7ef2dacf00
|
@ -83,11 +83,12 @@ class WritingBook
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_link
|
def create_link
|
||||||
|
title = []
|
||||||
title = ["\"#{self.extracted_chapters}\""]
|
# title = ["#{self.extracted_chapters}"] if self.extracted_chapters.present?
|
||||||
title << self.book_title
|
title << self.paper_title if self.paper_title.present?
|
||||||
title << self.publisher
|
title << self.book_title if self.book_title.present?
|
||||||
title << self.pages
|
title << self.publisher if self.publisher.present?
|
||||||
|
title << self.pages if self.pages.present?
|
||||||
# title << "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})"
|
# title << "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})"
|
||||||
title.join(', ')
|
title.join(', ')
|
||||||
end
|
end
|
||||||
|
|
|
@ -84,15 +84,13 @@ class WritingConference
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_link
|
def create_link
|
||||||
|
title = ["#{self.paper_title}"]
|
||||||
title = ["\"#{self.paper_title}\""]
|
title << self.conference_title if self.conference_title.present?
|
||||||
title << self.conference_title
|
title << self.sponsor if self.sponsor.present?
|
||||||
title << self.sponsor
|
title << self.location if self.location.present?
|
||||||
title << self.location
|
title << "#{period_start_date}-#{period_end_date}" if (self.period_start_date.present? && self.period_end_date.present?)
|
||||||
title << "#{period_start_date}-#{period_end_date}"
|
|
||||||
# title << "(#{self.conference_paper_types.collect{|x| x.title}.join(', ')})"
|
# title << "(#{self.conference_paper_types.collect{|x| x.title}.join(', ')})"
|
||||||
title.join(', ')
|
title.join(', ')
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
|
@ -90,10 +90,12 @@ class WritingJournal
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_link
|
def create_link
|
||||||
title = ["\"#{self.paper_title}\""]
|
title = ["#{self.paper_title}"]
|
||||||
title << self.journal_title
|
title << self.journal_title if self.journal_title.present?
|
||||||
title.join(', ')
|
|
||||||
title << ( !self.journal_level_types.blank? ? "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})" : nil)
|
title << ( !self.journal_level_types.blank? ? "(#{self.journal_level_types.collect{|x| x.title}.join(', ')})" : nil)
|
||||||
|
title << "Volume No: "+self.vol_no if (self.vol_no.present? && self.vol_no != "0")
|
||||||
|
title << "From Page: "+self.form_to_start if (self.form_to_start.present? && self.form_to_start != "0")
|
||||||
|
title << "To Page: "+self.form_to_end if (self.form_to_end.present? && self.form_to_end != "0")
|
||||||
title.join(', ')
|
title.join(', ')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue