We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a448571 commit 5e440fbCopy full SHA for 5e440fb
1 file changed
app/presenters/research_output_presenter.rb
@@ -105,6 +105,14 @@ def display_name
105
@research_output.title
106
end
107
108
+ # Returns the truncated DOI if it is greater than 50 characters
109
+ def display_doi_url
110
+ return '' unless @research_output.is_a?(ResearchOutput)
111
+ return "#{@research_output.doi_url[0..49]} ..." if @research_output.doi_url.present?
112
+
113
+ @research_output.doi_url
114
+ end
115
116
# Returns the humanized version of the output_type enum variable
117
def display_type
118
return '' unless @research_output.is_a?(ResearchOutput)
0 commit comments