Sha256: 3fc70833548aa5882cc6de7ee8331a9417ca2ef3094d0f544b32f867736db8b2

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

<% bookmarked = current_user.document_is_bookmarked?(document) ? 'bookmarked' : '' %>

<% if document.respond_to?('friendlier_id') %>
  <%= content_tag :li, id: document.friendlier_id, class: bookmarked do %>
    <%= check_box_tag nil, nil, false, data: { id: document.friendlier_id, action: 'click->results#checkChecked'}%>

    <%= render 'admin/documents/document_bookmark', document: document %>

    <%= "#{@documents.meta['pages']['offset_value'] + index + 1}." if @documents %>

    <%= link_to document.title, edit_admin_document_path(document.friendlier_id) %>
    &middot; <%= publication_state_badge(document) %>

    <% if document.send("schema_provider_s") %>
      &middot; <%= document.send("schema_provider_s") %>
    <% end %>
    <% if document.send("dct_temporal_sm") %>
      &middot; <%= document.send("dct_temporal_sm").join("-") %>
    <% end %>
    <% if document.send("dct_description_sm").present? %>
      <p class="js-truncate"><%= document.send("dct_description_sm").join %></p>
    <% end %>

  <% end %>
<% else %>
  <li>
    <p><strong>Missing from database: </strong><%= document.inspect %></p>
  </li>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geoblacklight_admin-0.4.1 app/views/admin/documents/_document.html.erb
geoblacklight_admin-0.4.0 app/views/admin/documents/_document.html.erb