Skip to content

Commit ff2aaea

Browse files
committed
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.
1 parent 41719d2 commit ff2aaea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/record/_record.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<% if @record['contentType'].present? %>
1515
<span class="record-type">
1616
<% # 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 %>
17-
<span class="sr">Type</span> <%= @record['contentType'].join %>
17+
<span class="sr">Type</span> <%= @record['contentType'].join(' ; ') %>
1818
</span>
1919
<% end %>
2020

0 commit comments

Comments
 (0)