Update journal_papers_controller.rb

This commit is contained in:
chiu 2019-11-01 14:39:57 +08:00
parent 020ac3a528
commit d9ef7c5585
1 changed files with 0 additions and 15 deletions

View File

@ -224,21 +224,6 @@ class Admin::JournalPapersController < OrbitMemberController
end
private
def get_member(journal)
Array(MemberProfile.find(journal.member_profile_id))
end
def get_level_type(journal)
!journal.journal_levels.blank? ? "(#{journal.journal_levels.collect(&:title).join(', ')})" : nil
end
def get_author_type(journal)
journal.journal_paper_author_types.collect(&:title).join(', ') rescue ''
end
def get_paper_type(journal)
journal.journal_paper_type.title rescue ''
end
def get_publication_date(journal)
journal.publication_date.strftime('%Y/%m/%d') rescue ''
end
def set_journal_paper
path = request.path.split('/')
if path.last.include? '-'