<%# This is a search result view %> <% noid = document.noid %> <% solr_doc = document.inner_object.solr_doc %>
  • <%= render :partial => 'catalog/_index_partials/identifier_and_action', locals: {document: document, counter: document_counter} %>
    <%= render :partial => 'catalog/_index_partials/thumbnail_display', locals: {document: document} %>
    <% if solr_doc.has?('desc_metadata__contributor_tesim') %>
    Author(s):
    <%= render_index_field_value(document: solr_doc, field: 'desc_metadata__contributor_tesim') %>
    <% end %> <% 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?('desc_metadata__publisher_tesim') %>
    Publisher(s):
    <%= render_index_field_value(document: solr_doc, field: 'desc_metadata__publisher_tesim') %>
    <% end %>
    <% index_fields.each do |solr_fname, field| -%> <%# NOTE: Attribute display shouldn't come to this %> <% unless ['desc_metadata__contributor_tesim', 'desc_metadata__creator_tesim', 'desc_metadata__description_tesim', 'desc_metadata__publisher_tesim', 'desc_metadata__title_tesim',].include? solr_fname %> <% if should_render_index_field? solr_doc, field %>
    <%= render_index_field_label field: solr_fname %>
    <%= render_index_field_value document: solr_doc, field: solr_fname %>
    <% end -%> <% end -%> <% end -%>