From ff2aaea4128a7089fdc991c57a29ad7da309f8be Mon Sep 17 00:00:00 2001 From: Adam Jazairi Date: Mon, 1 Aug 2022 14:01:24 -0400 Subject: [PATCH] Delimit content types in a readable format Why these changes are being introduced: The record view does not join the content type field on a character, so multiple content types are displayed in an unreadable format. Relevant ticket(s): https://mitlibraries.atlassian.net/browse/RDI-242 How this addresses that need: This joins the content type field on a semicolon to render it the same as the result view. Side effects of this change: None. --- app/views/record/_record.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record/_record.html.erb b/app/views/record/_record.html.erb index d30b3a6c..1fc625d7 100644 --- a/app/views/record/_record.html.erb +++ b/app/views/record/_record.html.erb @@ -14,7 +14,7 @@ <% if @record['contentType'].present? %> <% # we need to create separate displays for different types of content types, see https://github.com/MITLibraries/bento/pull/908/files#diff-6718f9b88f6f93e59d8c2509512dc40a62088430ff3cce1165ab414565949415L22-L57 for starting point but we should anticipate wanting to expand to many more unique content types %> - Type <%= @record['contentType'].join %> + Type <%= @record['contentType'].join(' ; ') %> <% end %>