Sha256: 4758d110882d793d123f96c4084547515484fbbc5368c1d7408979f57e324e3b

Contents?: true

Size: 1.95 KB

Versions: 3

Compression:

Stored size: 1.95 KB

Contents

<%- keywords = link_to_facet_list(recent_document[:desc_metadata__tag_t], 'desc_metadata__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=>"desc_metadata__title_t") -%>
<%- title = filename if title.empty? -%>
<%- short_title = truncate(title, :length => 28, :separator => ' ') -%>
<%- depositor = get_depositor_from_document(recent_document) -%>
    <tr>
      <% if display_thumbs %>
        <td class="span10"><%= link_to_profile depositor %> <%= render :partial => 'dashboard/_index_partials/thumbnail_display', :locals => {:document=>recent_document, :height=>60, :width=>45} %> </td>
      <% end %>
      <td>
        <h3>
          <%= link_to short_title, sufia.generic_file_path(recent_document.fetch(:noid_s, :id)), :title => title  %>

          <% if display_access %>
              <% if !recent_document[:read_access_group_t].blank? and recent_document[:read_access_group_t].include?('registered') %>
                 <span class="label label-info" title="<%=t('sufia.institution_name') %>"><%=t('sufia.institution_name') %></span>
              <% elsif recent_document[:read_access_group_t].nil? or (recent_document[:read_access_group_t] & ['public']).empty? %>
                <span class="label label-important">Private</span>
              <% else %>
                <span class="label label-success">Open Access</span>
              <% end %>
          <% end %>
        </h3>
        <p> 
          <% if filename.length > 25 %>
            <%= link_to "#{filename[0..24]}...", sufia.generic_file_path(recent_document.fetch(:noid_s, :id)), :title => filename %><br />
          <% else %>
            <%= link_to filename, sufia.generic_file_path(recent_document.fetch(:noid_s, :id)), :title => filename %><br />
          <% end %>
            <%= keywords.html_safe %>
        </p>
      </td>
    </tr>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sufia-0.1.0 app/views/catalog/_recent_document.html.erb
sufia-0.0.8 app/views/catalog/_recent_document.html.erb
sufia-0.0.7 app/views/catalog/_recent_document.html.erb