From 0a179503d6aa4e0c0a243507811d1f2bab958073 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 5 Nov 2019 21:59:31 +0800 Subject: [PATCH] Update journal_papers_controller.rb --- app/controllers/admin/journal_papers_controller.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index fa41c6d..ffe8624 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -31,20 +31,6 @@ class Admin::JournalPapersController < OrbitMemberController @journals.delete key end end - #journals = JournalPaper.order_by(:year=>'desc').map{|value| value} - #journals_name1 = journals.map{|value| value[:paper_title]} - #journals_name2 = journals.map{|value| value[:journal_title]} - #compare1 = journals_name1.map{|v1| journals_name1.select{|v2| v2==v1}.count>1} - #compare2 = journals_name2.map{|v1| journals_name2.select{|v2| v2==v1}.count>1} - #compare = compare1 and compare2 - #@journal = Hash.new - #compare.each_with_index do |b,i| - # if b && !(@journal.keys.include? [journals_name1[i],journals_name2[i]]) - # @journal[[journals_name1[i],journals_name2[i]]] = [journals[i]] - # elsif b - # @journal[[journals_name1[i],journals_name2[i]]] << journals[i] - # end - #end if params['mode']!='simple' @journals.each do |key,value| @journals[key] = value.group_by{|v| [get_level_type(v),get_author_type(v),get_paper_type(v),get_publication_date(v)]}