parent
adb61b81ba
commit
204827b6be
|
@ -30,9 +30,9 @@ class PersonalProjectsController < ApplicationController
|
||||||
when 'participator'
|
when 'participator'
|
||||||
projects_show = projects_temp.select { |value| search_all_words(get_authors_text(value), params[:keywords]) }
|
projects_show = projects_temp.select { |value| search_all_words(get_authors_text(value), params[:keywords]) }
|
||||||
when 'abstract'
|
when 'abstract'
|
||||||
projects_show = projects_temp.select { |value| search_all_words(Nokogiri::HTML(value).text, params[:keywords]) }
|
projects_show = projects_temp.select { |value| search_all_words(Nokogiri::HTML(value.abstract).text, params[:keywords]) }
|
||||||
when 'note'
|
when 'note'
|
||||||
projects_show = projects_temp.select { |value| search_all_words(Nokogiri::HTML(value).text, params[:keywords]) }
|
projects_show = projects_temp.select { |value| search_all_words(Nokogiri::HTML(value.note).text, params[:keywords]) }
|
||||||
else
|
else
|
||||||
projects_show = projects_temp.select { |value| search_all_words(value.send(params[:selectbox]).to_s, params[:keywords]) }
|
projects_show = projects_temp.select { |value| search_all_words(value.send(params[:selectbox]).to_s, params[:keywords]) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue