fix member plugin frontend
This commit is contained in:
		
							parent
							
								
									a845a9d41b
								
							
						
					
					
						commit
						5e9c6924e2
					
				| 
						 | 
				
			
			@ -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(', ')})"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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?
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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?
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in New Issue