Update personal_conferences_controller.rb
This commit is contained in:
parent
51eb98dc23
commit
c231e1b2d5
|
@ -39,7 +39,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
when "publication_date"
|
when "publication_date"
|
||||||
writing_conferences_show = writing_conferences_temp.select {|value| value.send("publication_date").strftime("%Y/%m").collect{|x| x.title}.join(', ').include? params[:keywords]}
|
writing_conferences_show = writing_conferences_temp.select {|value| value.send("publication_date").strftime("%Y/%m").collect{|x| x.title}.join(', ').include? params[:keywords]}
|
||||||
when "author_type"
|
when "author_type"
|
||||||
writing_conferences_show = writing_conferences_temp.select {|value| value.journal_paper_author_types.collect{|cat| cat.title}.join(", ").include? params[:keywords]}
|
writing_conferences_show = writing_conferences_temp.select {|value| value.conference_author_types.collect{|cat| cat.title}.join(", ").include? params[:keywords]}
|
||||||
else
|
else
|
||||||
writing_conferences_show = writing_conferences_temp.select {|value| value.send(params[:selectbox]).to_s.include? params[:keywords]}
|
writing_conferences_show = writing_conferences_temp.select {|value| value.send(params[:selectbox]).to_s.include? params[:keywords]}
|
||||||
end
|
end
|
||||||
|
@ -81,7 +81,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
end
|
end
|
||||||
writing_conference_list << {"cps" => t}
|
writing_conference_list << {"cps" => t}
|
||||||
end
|
end
|
||||||
|
choice_show = []
|
||||||
headers = []
|
headers = []
|
||||||
fields_to_show.each do |fs|
|
fields_to_show.each do |fs|
|
||||||
col = 2
|
col = 2
|
||||||
|
|
Loading…
Reference in New Issue