Update personal_journals_controller.rb
This commit is contained in:
parent
cdadf32b15
commit
db2d0ea772
|
@ -32,9 +32,9 @@ class PersonalJournalsController < ApplicationController
|
||||||
journal_papers_show = journal_papers_temp.select {|value| value.create_link.include? params[:keywords]}
|
journal_papers_show = journal_papers_temp.select {|value| value.create_link.include? params[:keywords]}
|
||||||
end
|
end
|
||||||
when "level_type"
|
when "level_type"
|
||||||
journal_papers_show = journal_papers_temp.select {|value| value.journal_levels.collect{|x| x.title}.join(', ')}).to_s.include? params[:keywords]}
|
journal_papers_show = journal_papers_temp.select {|value| value.journal_levels.collect{|x| x.title}.join(', ').to_s.include? params[:keywords]}
|
||||||
when "publication_date"
|
when "publication_date"
|
||||||
journal_papers_show = journal_papers_temp.select {|value| value.send("publication_date").strftime("%Y/%m").collect{|x| x.title}.join(', ')}).include? params[:keywords]}
|
journal_papers_show = journal_papers_temp.select {|value| value.send("publication_date").strftime("%Y/%m").collect{|x| x.title}.join(', ').include? params[:keywords]}
|
||||||
when "author_type"
|
when "author_type"
|
||||||
ournal_papers_show = journal_papers_temp.select {|value| value.journal_paper_author_types.collect{|jat| jat.title}.join(", ").include? params[:keywords]}
|
ournal_papers_show = journal_papers_temp.select {|value| value.journal_paper_author_types.collect{|jat| jat.title}.join(", ").include? params[:keywords]}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue