<%# Copyright © 2012 The Pennsylvania State University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. %> <% if document.has_key?(:noid_s) %> <% noid = document[:noid_s].first %> " class="<%= cycle("","zebra") %>"> <% gf = ActiveFedora::Base.find(document.id, cast: true) %> " class="icon-plus icon-large fleft show-details">  <%= render :partial => 'dashboard/_index_partials/thumbnail_display', :locals => {:document=>document} %> <%= link_to render_document_show_field_value(:document=>document, :field=>document.title_or_label), polymorphic_path([:curation_concern, gf]), :id => "src_copy_link#{noid}" %>
<%= gf.human_readable_type %> <%= document.fetch(:desc_metadata__date_uploaded_dt,'').to_time.strftime("%m/%d/%Y") unless document.fetch(:desc_metadata__date_uploaded_dt,'').blank? %> <%= link_to_edit_permissions(gf, document) %> <% if current_user -%> <%= link_to( raw(''), edit_polymorphic_path([:curation_concern, gf]), :class=> 'itemicon itemedit', :title => 'Edit File' ) if can? :edit, gf %> <%= link_to( raw(''), polymorphic_path([:curation_concern, gf]), :class=> 'itemicon itemtrash', :title => %(Delete #{gf.to_s.inspect}), :method => :delete, :confirm => "Deleting #{gf.to_s.inspect} from #{t('sufia.product_name')} is permanent. Click OK to delete this from #{t('sufia.product_name')}, or Cancel to cancel this operation" ) if can? :destroy, gf %> <% end -%> ">
<% index_fields.each do |solr_fname, field| -%> <% if should_render_index_field? document, field %>
<%= render_index_field_label :field => solr_fname %>
<%= render_index_field_value :document=>document, :field => solr_fname %>
<% end -%> <% end -%>
<% end %>