<% requestable = item_requestable?('', { document: document }) %> <% side_content = document.children? || requestable %>

<% if document.containers.present? %> <%= document.containers.join(', ') %>: <% end %> <% counter = document_counter_with_offset(document_counter) %> <%= link_to_document document, document_show_link_field(document), counter: counter %>

<% unless hierarchy_component_context? %>
<%= render partial: 'catalog/bookmark_control', locals: { document: document } %>
<% end %> <% if requestable %> <%= render partial: 'arclight/requests/google_form', locals: { document: document } %> <% end %> <% if document.children? %>
<%= t(:'arclight.views.index.number_of_children', count: document.number_of_children) %> <% unless hierarchy_component_context? %> <%= link_to( t('arclight.hierarchy.view_all'), "##{document.reference}-collapsible-hierarchy", class: 'al-toggle-view-all', data: { toggle: 'collapse' } ) %> <% end %>
<% end %>