Update personal_journals_controller.rb
This commit is contained in:
parent
9ab4bdefb0
commit
67b787c308
|
@ -37,7 +37,7 @@ class PersonalJournalsController < ApplicationController
|
|||
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])}
|
||||
when "paper_type"
|
||||
journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_paper_type.title, params[:keywords])}
|
||||
journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.journal_paper_type.title.to_s, params[:keywords])}
|
||||
when "language"
|
||||
journal_papers_show = journal_papers_temp.select {|value| search_all_words((!value.language.nil? ? t("#{value.language}") : ""), params[:keywords])}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue