Update journal_papers_controller.rb
This commit is contained in:
parent
6bb7c58e18
commit
367e09b868
|
@ -9,8 +9,10 @@ class Admin::JournalPapersController < OrbitMemberController
|
||||||
|
|
||||||
before_action :need_access_right
|
before_action :need_access_right
|
||||||
before_action :allow_admin_only, :only => [:index, :setting]
|
before_action :allow_admin_only, :only => [:index, :setting]
|
||||||
|
def merge_process
|
||||||
|
puts ['id1',params['journal_id']]
|
||||||
|
end
|
||||||
def merge
|
def merge
|
||||||
puts ['id',params['journal_id']]
|
|
||||||
@journals=JournalPaper.order_by(:year=>'desc').map{|value| value}.group_by{|v| [v[:paper_title],v[:journal_title]]}
|
@journals=JournalPaper.order_by(:year=>'desc').map{|value| value}.group_by{|v| [v[:paper_title],v[:journal_title]]}
|
||||||
@journals.each do |key,value|
|
@journals.each do |key,value|
|
||||||
if value.length==1
|
if value.length==1
|
||||||
|
|
Loading…
Reference in New Issue