Skip to content
Snippets Groups Projects
Commit 4da47779 authored by Kapil Patel's avatar Kapil Patel
Browse files

reemove depositor from public pages.

parent cdfdc314
Branches
Tags
1 merge request!205Do not display depositor for public users
Pipeline #9310 failed
<div class="col-md-6">
<div class="metadata">
<dl class="dl-horizontal">
<% doc_presenter = index_presenter(document) %>
<% index_fields = current_user ? index_fields(document) : index_fields(document).except('depositor_tesim', 'proxy_depositor_ssim') %>
<% index_fields.each do |field_name, field| -%>
<% if should_render_index_field? document, field %>
<dt data-solr-field-name="<%= field_name %>"><%= render_index_field_label document, field: field_name %></dt>
<dd><%= doc_presenter.field_value field %></dd>
<% end %>
<% end %>
</dl>
</div>
</div>
<% if document.collection? %>
<% collection_presenter = Hyrax::CollectionPresenter.new(document, current_ability) %>
<div class="col-md-4">
<div class="collection-counts-wrapper">
<div class="collection-counts-item">
<span><%= collection_presenter.total_viewable_collections %></span>Collections
</div>
<div class="collection-counts-item">
<span><%= collection_presenter.total_viewable_works %></span>Works
</div>
</div>
</div>
<% end %>
\ No newline at end of file
<div>
<div class="featured-item-title">
<span class="sr-only"><%= t('hyrax.homepage.featured_works.document.title_label') %></span>
<h3>
<%= link_to [main_app, featured] do %>
<%= render_thumbnail_tag(featured, {width: 90, alt: "#{featured.title.first.to_s} #{ t('hyrax.homepage.admin_sets.thumbnail')}" }, {suppress_link: true}) + featured.title.first %>
<% end %>
</h3>
</div>
<% if current_user %>
<div class="featured-field featured-item-depositor">
<span class="featured-label"><%= t('hyrax.homepage.featured_works.document.depositor_label') %>:</span> <%= link_to_profile featured.proxy_depositor&.first || featured.depositor(t('hyrax.homepage.featured_works.document.depositor_missing')) %>
</div>
<% end %>
<div class="featured-field featured-item-keywords">
<span class="featured-label"><%= t('hyrax.homepage.featured_works.document.keyword_label') %>:</span> <%= link_to_facet_list(featured.keyword, 'keyword', t('hyrax.homepage.featured_works.document.keyword_missing')) %>
</div>
</div>
\ No newline at end of file
<li class="recent-item">
<div class="row">
<div class="col-sm-12">
<span class="sr-only"><%= t('hyrax.homepage.recently_uploaded.document.title_label') %></span>
<h3>
<%= link_to [main_app, recent_document] do %>
<%= render_thumbnail_tag(recent_document, {width: 90, alt: "#{recent_document} #{ t('hyrax.homepage.admin_sets.thumbnail')}" }, {suppress_link: true}) %><%= recent_document %>
<% end %>
</h3>
<% if current_user %>
<p class="recent-field">
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.proxy_depositor&.first || recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
</p>
<% end %>
<p class="recent-field">
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
</p>
</div>
</div>
</li>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment