Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-11-02 13:54:18 +08:00
parent 78f7eafcff
commit 5155427305
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class PersonalJournalsController < ApplicationController
when 'language'
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 '')}
t << { 'value' => journal_paper.url.to_s.blank? ? "" : "<a href='#{journal_paper.url}'>#{journal_paper.url}</a>"}
when 'authors'
t << { 'value' => get_authors_show(journal_paper) }
else