Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 10:17:09 +08:00
parent c3a12a33f1
commit e426d77a03
1 changed files with 3 additions and 3 deletions

View File

@ -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,