Skip to content

Commit

Permalink
Merge pull request #1462 from pulibrary/1457-online-label
Browse files Browse the repository at this point in the history
Display electronic location link label as a string
  • Loading branch information
tpendragon authored Jun 8, 2023
2 parents 2dad1a9 + 378684a commit 2cf86f2
Show file tree
Hide file tree
Showing 4 changed files with 932 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/values/manifest_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def link_to_catalog(value)
def electronic_location_link(value)
return value unless value.is_a?(Hash)

"<a href='#{value['@id']}'>#{value['label']}</a>"
# label may or may not be an array
"<a href='#{value['@id']}'>#{Array.wrap(value['label']).first}</a>"
end

def language_name(value)
Expand Down
Loading

0 comments on commit 2cf86f2

Please sign in to comment.