This repository has been archived by the owner on May 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
_attributes.html.erb
44 lines (43 loc) · 1.63 KB
/
_attributes.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<table class="table table-striped <%= dom_class(@presenter) %> attributes">
<caption class="table-heading"><h2>Attributes</h2></caption>
<thead>
<tr><th>Attribute Name</th><th>Values</th></tr>
</thead>
<tbody>
<%= @presenter.attribute_to_html(:creator, render_as: 'rtl_linked' ) %>
<% (PlumSchema.display_fields - [:creator, :created, :date_created, :resource_type] + [:date_uploaded, :date_modified]).each do |display_field| %>
<%= @presenter.attribute_to_html(display_field) %>
<% end %>
<%= @presenter.attribute_to_html(:description) %>
<tr>
<th>Access Rights</th>
<td>
<%= @presenter.permission_badge %>
</td>
</tr>
<% if @presenter.respond_to? :state_badge %>
<tr>
<th>State</th>
<td>
<%= @presenter.state_badge %>
</td>
</tr>
<% end %>
<%= @presenter.attribute_to_html(:embargo_release_date) %>
<%= @presenter.attribute_to_html(:lease_expiration_date) %>
<% if @presenter.respond_to? :rights_statement %>
<%= @presenter.rights_statement %>
<% end %>
<% if @presenter.respond_to? :holding_location %>
<%= @presenter.holding_location %>
<% end %>
<%= @presenter.attribute_to_html(:identifier) %>
<%= @presenter.attribute_to_html(:source_metadata_identifier) %>
<% if defined?(presenter.member_of_collection_presenters) && presenter.member_of_collection_presenters.size > 0 %>
<%= render 'hyrax/base/member_of_collections', presenter: @presenter %>
<% end %>
<% if defined?(@presenter.ephemera_project_name) && @presenter.ephemera_project_name %>
<%= render 'hyrax/base/ephemera_project', presenter: @presenter %>
<% end %>
</tbody>
</table>