Update personal_journals_controller.rb
This commit is contained in:
parent
e7880ea2a1
commit
779e5c3939
|
@ -89,7 +89,6 @@ class PersonalJournalsController < ApplicationController
|
|||
choice_value.unshift("paper_title")
|
||||
choice_default = OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——"
|
||||
choice_show.unshift(choice_default)
|
||||
journal_papers1 = Mongoid::Sessions.default[:journal_papers].find()
|
||||
journal_papers_count = journal_papers1.count
|
||||
journal_papers_temp = journal_papers1.take(journal_papers_count)
|
||||
journal_papers_show = journal_papers_temp.select {|value| value["paper_title"][OrbitHelper.params[:locale]].include? "1"}
|
||||
|
@ -98,6 +97,7 @@ class PersonalJournalsController < ApplicationController
|
|||
"headers" => headers,
|
||||
"extras" => {"widget-title" => t("module_name.journal_paper")},
|
||||
"total_pages" => journal_papers_total_pages,
|
||||
"search_text" =>{"select" => params[:locale]!='en' ? "搜尋類別:" : "search class:", "search" => params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:"},
|
||||
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
|
||||
"url" => "/"+params[:locale]+params[:url],
|
||||
"all" => journal_papers_show_last
|
||||
|
|
Loading…
Reference in New Issue