Update personal_conferences_controller.rb
This commit is contained in:
parent
c231e1b2d5
commit
87a65a93fa
|
@ -33,7 +33,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
when "paper_levels"
|
when "paper_levels"
|
||||||
writing_conferences_show = writing_conferences_temp.select {|value| value.conference_paper_levels.collect{|x| x.title}.join(', ').to_s.include? params[:keywords]}
|
writing_conferences_show = writing_conferences_temp.select {|value| value.conference_paper_levels.collect{|x| x.title}.join(', ').to_s.include? params[:keywords]}
|
||||||
when "paper_types"
|
when "paper_types"
|
||||||
writing_conferences_show = writing_conferences_temp.select {|value| value.conference_paper_levels.collect{|x| x.title}.join(', ').to_s.include? params[:keywords]}
|
writing_conferences_show = writing_conferences_temp.select {|value| value.conference_paper_types.collect{|x| x.title}.join(', ').to_s.include? params[:keywords]}
|
||||||
when "period"
|
when "period"
|
||||||
writing_conferences_show = writing_conferences_temp.select {|value| value.duration.include? params[:keywords]}
|
writing_conferences_show = writing_conferences_temp.select {|value| value.duration.include? params[:keywords]}
|
||||||
when "publication_date"
|
when "publication_date"
|
||||||
|
@ -68,7 +68,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
when "paper_levels"
|
when "paper_levels"
|
||||||
t << {"value" => ( !writing_conference.conference_paper_levels.blank? ? "(#{writing_conference.conference_paper_levels.collect{|x| x.title}.join(', ')})" : nil)}
|
t << {"value" => ( !writing_conference.conference_paper_levels.blank? ? "(#{writing_conference.conference_paper_levels.collect{|x| x.title}.join(', ')})" : nil)}
|
||||||
when "paper_types"
|
when "paper_types"
|
||||||
t << {"value" => ( !writing_conference.conference_paper_levels.blank? ? "(#{writing_conference.conference_paper_levels.collect{|x| x.title}.join(', ')})" : nil)}
|
t << {"value" => ( !writing_conference.conference_paper_types.blank? ? "(#{writing_conference.conference_paper_types.collect{|x| x.title}.join(', ')})" : nil)}
|
||||||
when "publication_date"
|
when "publication_date"
|
||||||
t << {"value" => (writing_conference.send(fs).strftime("%Y/%m") rescue "")}
|
t << {"value" => (writing_conference.send(fs).strftime("%Y/%m") rescue "")}
|
||||||
when "author_type"
|
when "author_type"
|
||||||
|
|
Loading…
Reference in New Issue