app/views/curation_concern/images/_image.html.erb in curate-0.5.1 vs app/views/curation_concern/images/_image.html.erb in curate-0.5.2
- old
+ new
@@ -1,36 +1,11 @@
<%# This is a search result view %>
-<% noid = image.noid %>
-<li id="document_<%= noid %>" class="search-result">
+<% solr_doc = image.inner_object.solr_doc %>
+<li id="document_<%= image.noid %>" class="search-result">
- <div class="row-fluid">
+ <%= render :partial => 'catalog/_index_partials/identifier_and_action', locals: {document: image, counter: image_counter} %>
- <div class="span2 list-number">
- <%= image_counter + 1 %>
- <%= render :partial => 'catalog/_index_partials/type_display', locals: {document: image} %>
- </div>
-
- <div class="span6">
- <% solr_doc = image.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'), curation_concern_image_path(image), :id => "src_copy_link_#{noid}" %>
- </div>
-
- <div class="span4">
- <% if current_user -%>
- <%= render partial: 'add_to_collection_gui', locals: { document: image } %>
- <%= link_to(
- raw('<i class="icon-pencil icon-large"></i>'),
- edit_curation_concern_image_path(image),
- :class=> 'itemicon itemedit btn pull-right',
- :title => 'Edit Image'
- ) if can? :edit, image %>
- <% end -%>
- </div>
- </div>
-
<div class="row-fluid">
-
<div class="span2">
<%= render :partial => 'catalog/_index_partials/thumbnail_display', locals: {document: image} %>
</div>
<div class="span10">