Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-10-31 23:34:04 +08:00
parent 1bc7e8a065
commit d8ee2ec656
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ class PersonalJournalsController < ApplicationController
t << { 'value' => (journal_paper.journal_paper_type.title rescue '') } t << { 'value' => (journal_paper.journal_paper_type.title rescue '') }
when 'language' when 'language'
t << { 'value' => (!journal_paper.language.nil? ? t(journal_paper.language.to_s) : '') } t << { 'value' => (!journal_paper.language.nil? ? t(journal_paper.language.to_s) : '') }
when 'url'
t << { 'value' => ("<a href='#{journal_paper.url}'>#{journal_paper.url}</a>" rescue ''}
else else
t << { 'value' => (journal_paper.send(fs) rescue '') } t << { 'value' => (journal_paper.send(fs) rescue '') }
end end