Update personal_journals_controller.rb
This commit is contained in:
parent
c3a12a33f1
commit
e426d77a03
|
@ -24,10 +24,10 @@ class PersonalJournalsController < ApplicationController
|
||||||
journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
||||||
journal_papers_count = journal_papers.count
|
journal_papers_count = journal_papers.count
|
||||||
journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(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,
|
"journal_papers" => [{"jps"=>[{"value"=>"2019"}, {"value"=>"123, 456"}]}],
|
||||||
"headers" => "headers",
|
"headers" => [{"head-title"=>"年度", "col"=>2}, {"head-title"=>"論文名稱", "col"=>3}],
|
||||||
"extras" => {"widget-title" => "module_name.journal_paper"},
|
"extras" => {"widget-title" => "module_name.journal_paper"},
|
||||||
"total_pages" => 1,
|
"total_pages" => 1,
|
||||||
"choice" => 1,
|
"choice" => 1,
|
||||||
|
|
Loading…
Reference in New Issue