app/views/records/edit_fields/_resource_type.html.erb
<%
if f.object.resource_type[0].blank?
case params[:controller]
when 'hyrax/articles'
value = 'Article'
when 'hyrax/artworks'
value = 'Art'
when 'hyrax/data_sets'
value = 'Dataset'
when 'hyrax/honors_theses'
value = 'Honors Thesis'
when 'hyrax/masters_papers'
value = 'Masters Paper'
else
value = ''
end
else
value = f.object.resource_type[0]
end
%>
<%= f.input :resource_type, as: :select,
collection: Hyrax::ResourceTypesService.select_options,
selected: value,
input_html: { class: 'form-control', multiple: true, size: 6 } %>