Sha256: a37e8c0eb44005701ff30de9f45928eb16c49673ac293bea9c7d0f1a773bcb08

Contents?: true

Size: 1.76 KB

Versions: 2

Compression:

Stored size: 1.76 KB

Contents

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

  <div class="row-fluid">

    <div class="span2 list-number">
      <%= collection_counter + 1 %>
      <%= render :partial => 'catalog/_index_partials/type_display', locals: {document: collection} %>
    </div>

    <div class="span6">
      <% solr_doc = collection.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'), collection, :id => "src_copy_link_#{noid}" %>
    </div>

    <div class="span4">
      <% if current_user %>
        <%= render partial: 'add_to_collection_gui', locals: { document: collection } %>

        <%= link_to(
          raw('<i class="icon-pencil icon-large"></i>'),
          edit_collection_path(collection),
            :class=> 'itemicon itemedit btn pull-right',
            :title => 'Edit Collection'
          ) if can? :edit, collection %>
      <% end -%>
    </div>

  </div>

  <div class="row-fluid">

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

    <div class="span10">
      <dl class="attribute-list">
        <% 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?('edit_access_person_ssim') %>
          <dt>Owner:</dt>
          <dd><%= render_index_field_value(document: solr_doc, field: 'edit_access_person_ssim') %></dd>
        <% end %>
    </div>

  </div>

</li>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
curate-0.5.1 app/views/collections/_collection.html.erb
curate-0.5.0 app/views/collections/_collection.html.erb