Update personal_journals_controller.rb
This commit is contained in:
parent
1bc7e8a065
commit
d8ee2ec656
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue