From e426d77a039af09d10f47dc77009be0182c8c39c Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 10:17:09 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 6d9700d..3dc9331 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -24,10 +24,10 @@ class PersonalJournalsController < ApplicationController journal_papers = Mongoid::Sessions.default[:journal_papers].find() journal_papers_count = journal_papers.count journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count) - journal_papers_show = journal_papers_temp.select {|value| value[params[:selectbox]].include? params[:keywords]} + journal_papers_show = journal_papers_temp.select {|value| value[params[:selectbox]][OrbitHelper.params[:locale]].include? params[:keywords]} { - "journal_papers" => journal_paper_list, - "headers" => "headers", + "journal_papers" => [{"jps"=>[{"value"=>"2019"}, {"value"=>"123, 456"}]}], + "headers" => [{"head-title"=>"年度", "col"=>2}, {"head-title"=>"論文名稱", "col"=>3}], "extras" => {"widget-title" => "module_name.journal_paper"}, "total_pages" => 1, "choice" => 1,