MiraitSystems/enju_trunk

View on GitHub
app/views/opac/manifestations/_title.html.erb

Summary

Maintainability
Test Coverage
<div class="opac_list_title">
  <%= manifestation.original_title %>
</div>
<% unless manifestation.creators.readable_by(current_user).empty? and manifestation.publishers.readable_by(current_user).empty? %>
  <div class="opac_list_sub">
    <% unless manifestation.creators.readable_by(current_user).empty? %>
      <%= t('agent.creator')%>:
      <%= agents_short_list(manifestation.creators.readable_by(current_user), { :nolink => 'true' }) %>
      &nbsp;&nbsp;
    <% end %>
    <% unless manifestation.publishers.readable_by(current_user).empty? %>
      <%= t('agent.publisher') %>: 
      <%= agents_short_list(manifestation.publishers.readable_by(current_user), { :nolink => 'true' }) %>
    <% end %>
  </div>
<% end %>