<%# This is a search result view %> <% noid = profile.noid %>
  • <%= document_counter_with_offset( profile_counter ) %> <%= render :partial => 'catalog/_index_partials/type_display', locals: {document: profile} %>
    <% solr_doc = profile.inner_object.solr_doc %> <%# Minimize Fedora hits by using solr_doc rather than document %> <%= link_to render_index_field_value(document: solr_doc, field: 'desc_metadata__title_tesim'), profile, :id => "src_copy_link_#{noid}" %>
    <% if current_user %> <%= render partial: 'add_to_collection_gui', locals: { document: profile } %> <%= link_to( raw(''), edit_collection_path(profile), :class=> 'itemicon itemedit btn pull-right', :title => 'Edit Profile' ) if can? :edit, profile %> <% end -%>
    <%= render :partial => 'catalog/_index_partials/thumbnail_display', locals: {document: profile} %>
    <% if solr_doc.has?('desc_metadata__description_tesim') %>
    Description:
    <%= truncate(render_index_field_value(document: solr_doc, field: 'desc_metadata__description_tesim'), length: 150) %>
    <% end %> <% if solr_doc.has?('edit_access_person_ssim') %>
    Owner:
    <%= render_index_field_value(document: solr_doc, field: 'edit_access_person_ssim') %>
    <% end %>