Sha256: 53780af01041f69abecfcaf22797b28ff52966798223a6dfcfdb39d4a05d226c
Contents?: true
Size: 1.79 KB
Versions: 6
Compression:
Stored size: 1.79 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"> <%= document_counter_with_offset( collection_counter ) %> <%= 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
6 entries across 6 versions & 1 rubygems