app/views/curation_concern/images/_image.html.erb in curate-0.5.0 vs app/views/curation_concern/images/_image.html.erb in curate-0.5.1
- old
+ new
@@ -16,20 +16,18 @@
</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">
@@ -46,12 +44,12 @@
<% 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__date_created_dtsim') %>
+ <% if solr_doc.has?('desc_metadata__date_created_tesim') %>
<dt>Date:</dt>
- <dd><%= Date.parse(solr_doc['desc_metadata__date_created_dtsim'].first) %></dd>
+ <dd><%= solr_doc['desc_metadata__date_created_tesim'].first %></dd>
<% end %>
</dl>
</div>
</div>