Update personal_journals_controller.rb
This commit is contained in:
parent
868280735c
commit
71ebbe36aa
|
@ -87,8 +87,11 @@ class PersonalJournalsController < ApplicationController
|
||||||
end
|
end
|
||||||
choice_value = fields_to_show
|
choice_value = fields_to_show
|
||||||
choice_value.unshift("paper_title")
|
choice_value.unshift("paper_title")
|
||||||
|
choice_value=choice_value.map{|value| {"choice_value":value}}
|
||||||
choice_default = OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——"
|
choice_default = OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——"
|
||||||
choice_show.unshift(choice_default)
|
choice_show.unshift(choice_default)
|
||||||
|
choice_show=choice_show.map{|value| {"choice_show":value}}
|
||||||
|
choice=choice_value.zip(choice_show)
|
||||||
select_text = params[:locale]!='en' ? "搜尋類別:" : "search class:"
|
select_text = params[:locale]!='en' ? "搜尋類別:" : "search class:"
|
||||||
search_text = params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:"
|
search_text = params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:"
|
||||||
{
|
{
|
||||||
|
@ -96,7 +99,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
"headers" => headers,
|
"headers" => headers,
|
||||||
"extras" => {"widget-title" => t("module_name.journal_paper"), "url" => "/"+params[:locale]+params[:url], "select_text" => select_text, "search_text" => search_text},
|
"extras" => {"widget-title" => t("module_name.journal_paper"), "url" => "/"+params[:locale]+params[:url], "select_text" => select_text, "search_text" => search_text},
|
||||||
"total_pages" => journal_papers_total_pages,
|
"total_pages" => journal_papers_total_pages,
|
||||||
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show}
|
"choice" => choice
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue