Update journal_papers_controller.rb
This commit is contained in:
parent
020ac3a528
commit
d9ef7c5585
|
@ -224,21 +224,6 @@ class Admin::JournalPapersController < OrbitMemberController
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
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
|
def set_journal_paper
|
||||||
path = request.path.split('/')
|
path = request.path.split('/')
|
||||||
if path.last.include? '-'
|
if path.last.include? '-'
|
||||||
|
|
Loading…
Reference in New Issue