Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 16:07:32 +08:00
parent 3c8e66ddba
commit b23a4f76ef
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class PersonalJournalsController < ApplicationController
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]}
when "author_type"
ournal_papers_show = journal_papers_temp.select {|value| value.journal_paper_author_types.collect{|jat| jat.title}.join(", ").include? params[:keywords]}
journal_papers_show = journal_papers_temp.select {|value| value.journal_paper_author_types.collect{|jat| jat.title}.join(", ").include? params[:keywords]}
else
journal_papers_show = journal_papers_temp.select {|value| value.send(params[:selectbox]).to_s.include? params[:keywords]}
end