LafayetteCollegeLibraries/spot

View on GitHub
app/views/hyrax/publications/_form_metadata.html.erb

Summary

Maintainability
Test Coverage
<%# display all of our terms up front instead of splitting required/optional
    with a collapse element. using the | operator with the two arrays
    will remove duplicates within 'secondary_terms' (which contains the
    values of `f.object.terms` without the hyrax internal fields (for
    embargo, files, etc) %>
        <div class="base-terms">
          <% f.object.primary_terms.each do |field| %>
            <%= render_edit_field_partial(field, f: f) %>
          <% end %>
        </div>