Sha256: 37d4d6d3e5ea8d150cc329d8a1c7a373f302d048888af26e7f343c2f7aef90ed

Contents?: true

Size: 2 KB

Versions: 4

Compression:

Stored size: 2 KB

Contents

<%# This is a search result view %>
<% solr_doc = document.inner_object.solr_doc %>
<li id="document_<%= document.noid %>" class="search-result">

  <%= render :partial => 'catalog/_index_partials/identifier_and_action', locals: {document: document, counter: document_counter, solr_doc: solr_doc} %>

  <div class="row-fluid">

    <div class="span2">
      <%= render :partial => 'catalog/_index_partials/thumbnail_display', locals: {document: document} %>
    </div>

    <div class="span10">
      <dl class="attribute-list">
        <% if solr_doc.has?('desc_metadata__contributor_tesim') %>
          <dt>Author(s):</dt>
          <dd><%= render_index_field_value(document: solr_doc, field: 'desc_metadata__contributor_tesim') %></dd>
        <% end %>

        <% if solr_doc.has?('desc_metadata__description_tesim') %>
          <dt>Description:</dt>
          <dd><%= truncate(render_index_field_value(document: solr_doc, field: 'desc_metadata__description_tesim'), length: 150) %></dd>
        <% end %>

        <% if solr_doc.has?('desc_metadata__publisher_tesim') %>
          <dt>Publisher(s): </dt>
          <dd><%= render_index_field_value(document: solr_doc, field: 'desc_metadata__publisher_tesim') %></dd>
        <% end %>
        <% if solr_doc.has?('desc_metadata__type_tesim') %>
          <dt>Document Type:</dt>
          <dd><%= render_index_field_value(document: solr_doc, field: 'desc_metadata__type_tesim') %></dd>
        <% end %>
      </dl>

      <dl class="attribute-list extended-attributes hide">
        <% index_fields.each do |solr_fname, field| -%>
          <% if should_render_index_field? document.inner_object.solr_doc, field %>
            <dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_index_field_label :field => solr_fname %></dt>
            <dd class="blacklight-<%= solr_fname.parameterize %>"><%= render_index_field_value :document=>document.inner_object.solr_doc, :field => solr_fname %></dd>
          <% end -%>
        <% end -%>
      </dl>
    </div>

  </div>

</li>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/curation_concern/documents/_document.html.erb
curate-0.6.5 app/views/curation_concern/documents/_document.html.erb
curate-0.6.4 app/views/curation_concern/documents/_document.html.erb
curate-0.6.3 app/views/curation_concern/documents/_document.html.erb