parent
68ad3d7770
commit
48526a96a7
|
@ -37,7 +37,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
when "level_type"
|
when "level_type"
|
||||||
journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_levels.collect{|x| x.title}.join(', ').to_s, params[:keywords])}
|
journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_levels.collect{|x| x.title}.join(', ').to_s, params[:keywords])}
|
||||||
when "publication_date"
|
when "publication_date"
|
||||||
journal_papers_show = journal_papers_temp.select {|value| (search_all_words(value.send("publication_date").strftime("%Y/%m/%d") rescue ""), params[:keywords])}
|
journal_papers_show = journal_papers_temp.select {|value| search_all_words((value.send("publication_date").strftime("%Y/%m/%d") rescue ""), params[:keywords])}
|
||||||
when "author_type"
|
when "author_type"
|
||||||
journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_paper_author_types.collect{|jat| jat.title}.join(", "), params[:keywords])}
|
journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_paper_author_types.collect{|jat| jat.title}.join(", "), params[:keywords])}
|
||||||
when "language"
|
when "language"
|
||||||
|
|
Loading…
Reference in New Issue