Update journal_papers_helper.rb

This commit is contained in:
chiu 2019-11-02 11:41:03 +08:00
parent e9feed00ba
commit 1f56a3ae60
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
module Admin::JournalPapersHelper module Admin::JournalPapersHelper
def get_authors_text(journal) def get_authors_text(journal)
journal.authors.to_s.blank? ? get_member(journal).join('/') : Nokogiri::HTML(journal.authors.to_s).text journal.authors.to_s.blank? ? get_member(journal).collect(&:name).join('/') : Nokogiri::HTML(journal.authors.to_s).text
end end
def get_authors_show(journal) def get_authors_show(journal)
journal.authors.to_s.blank? ? get_member(journal).collect(&:name).join('/') : (journal.authors.to_s) journal.authors.to_s.blank? ? get_member(journal).collect(&:name).join('/') : (journal.authors.to_s)