forked from saurabh/personal-project
parent
b4458dfd4b
commit
adb61b81ba
|
@ -29,6 +29,10 @@ class PersonalProjectsController < ApplicationController
|
||||||
projects_show = projects_temp.select { |value| search_all_words(t(value.send('language')), params[:keywords]) }
|
projects_show = projects_temp.select { |value| search_all_words(t(value.send('language')), params[:keywords]) }
|
||||||
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'
|
||||||
|
projects_show = projects_temp.select { |value| search_all_words(Nokogiri::HTML(value).text, params[:keywords]) }
|
||||||
|
when 'note'
|
||||||
|
projects_show = projects_temp.select { |value| search_all_words(Nokogiri::HTML(value).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