Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-12 17:55:50 +08:00
parent 95479dcd52
commit 7424582720
1 changed files with 3 additions and 1 deletions

View File

@ -54,13 +54,15 @@ class PersonalJournalsController < ApplicationController
} }
end end
choice_value = fields_to_show choice_value = fields_to_show
choice_value.unshift("paper_title")"
choice_show = headers choice_show = headers
choice_show.unshift({"head-title" => (OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——")})
{ {
"journal_papers" => journal_paper_list, "journal_papers" => journal_paper_list,
"headers" => headers, "headers" => headers,
"extras" => {"widget-title" => t("module_name.journal_paper")}, "extras" => {"widget-title" => t("module_name.journal_paper")},
"total_pages" => journal_papers.total_pages, "total_pages" => journal_papers.total_pages,
"choice" => {"choice_value" => choice_value.unshift "paper_title","choice_show" => choice_show.unshift {"head-title"=>OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——"}}, "choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
"url" => OrbitHelper.params[:locale]+OrbitHelper.params[:url] "url" => OrbitHelper.params[:locale]+OrbitHelper.params[:url]
} }
end end