<%- keywords = link_to_facet_list(recent_document[:generic_file__tag_t], 'generic_file__tag_facet', 'no keywords specified') -%> <%- filename = render_document_show_field_value(:document=>recent_document, :field=>"label_t") -%> <%- title = render_document_show_field_value(:document=>recent_document, :field=>"generic_file__title_t") -%> <%- title = filename if title.empty? -%> <%- depositor = get_depositor_from_document(recent_document) -%> <% if display_thumbs %> <%= link_to_profile depositor %> <%= render :partial => 'dashboard/_index_partials/thumbnail_display', :locals => {:document=>recent_document, :height=>60, :width=>45} %> <% end %>

<% if title.length > 25 %> <%= link_to "#{title[0..24]}...", generic_file_path(recent_document.fetch(:noid_s, :id)), :title => title %> <% else %> <%= link_to title, generic_file_path(recent_document.fetch(:noid_s, :id)), :title => title %> <% end %> <% if display_access %> <% if !recent_document[:read_access_group_t].blank? and recent_document[:read_access_group_t].include?('registered') %> Penn State <% elsif recent_document[:read_access_group_t].nil? or (recent_document[:read_access_group_t] & ['public']).empty? %> Private <% else %> Open Access <% end %> <% end %>

<% if filename.length > 25 %> <%= link_to "#{filename[0..24]}...", generic_file_path(recent_document.fetch(:noid_s, :id)), :title => filename %>
<% else %> <%= link_to filename, generic_file_path(recent_document.fetch(:noid_s, :id)), :title => filename %>
<% end %> <%= keywords.html_safe %>