Document · Admin View

<%= link_to(@document.title, admin_document_path(@document)) %>

Provenance Updated At
<%= @document.schema_provider_s %>
Solr <%= DateTime.parse(@document.raw_solr_document["timestamp"]).strftime('%D %r') %>
Database <%= @document.updated_at.strftime('%D %r') %>

<%= ap(JSON.parse(@document.to_json)).html_safe %>
<%= ap(JSON.parse(@document.raw_solr_document.to_json)).html_safe %>
Protocol Endpoint
<%= @document.viewer_protocol %> <%= link_to(@document.viewer_endpoint, @document.viewer_endpoint) %>
<% if @document&.thumbnail&.present? %> <% else %> <% end %>
Display Attached State Last Transition
AWS S3
<% unless @document&.thumbnail&.file_url(:thumb_mini).nil? %> <%= image_tag @document&.thumbnail&.file_url(:thumb_mini) %> <% end %>
None<%= @document.thumbnail.present? %> <%= @document&.thumbnail_state_machine&.current_state %> <%= ap(@document&.thumbnail_state_machine&.last_transition).html_safe %>
<% @document.distributions.each do |entry| %> <% end %>
Key Values
<%= entry[0] %> <% if entry[1].is_a?(Array) %>
    <% entry[1].each do |value| %>
  • <%= value %>
  • <% end %>
<% else %> <% if entry[1].is_a?(Hash) %>
    <% entry[1].each do |key, value| %>
  • <%= key %>: <%= value %>
  • <% end %>
<% else %>

<%= link_to(entry[1], entry[1]) %>

<% end %> <% end %>