<%- stat= curation_concern.audit_stat(false) %>
Title <%= curation_concern %>
Filename <%= curation_concern.filename %>
Depositor <%= curation_concern.depositor %>
Date Uploaded <%= curation_concern.date_uploaded %>
Date Modified <%= curation_concern.date_modified %>
Audit Status <%= (stat == 1 ? 'passing' : (stat == 0 ? 'failing' : stat)) %>
Characterization <%= "not yet characterized" if curation_concern.characterization_terms.values.flatten.map(&:empty?).reduce(true) { |sum, value| sum && value } %> <% curation_concern.characterization_terms.each_pair do |term, values| %>
<% label = term.to_s %> <% if label == "format_label" %> <% label = "File Format" %> <% values = curation_concern.file_format %> <% end %> <% label = label.humanize %> <% if values.is_a? Array %> <% length = values.length %> <% length = Sufia::Engine.config.fits_message_length-1 if term == :status_message && values.length > Sufia::Engine.config.fits_message_length-1 %> <% values[0..length].each_with_index do |value, idx| %> <% next if value.empty? %> <%= "#{label}: #{value.truncate(250)}" %> <%= "
".html_safe unless idx == length %> <% end %> <% if length != values.length %> <%= render :partial => "generic_files/extra_fields_modal", :locals=>{:name=>term, :values=> values, :start=>Sufia::Engine.config.fits_message_length}%> <% end %> <% else %> <%= "#{label}: #{values.truncate(250)}" %>
<% end %>
<% end %>