diff --git a/app/views/collections/show.html.erb b/app/views/collections/show.html.erb index 5328d728f..ff38a3188 100644 --- a/app/views/collections/show.html.erb +++ b/app/views/collections/show.html.erb @@ -12,8 +12,8 @@

<%= @presenter.description %>

<% unless has_collection_search_parameters? %> - <%= render partial: 'collections/show_actions' %> - <%= render 'attributes', curation_concern: @presenter %> + <%= render 'collections/show_actions' %> + <%= render 'attributes', presenter: @presenter %> <% end %> <%= render 'search_form' %> diff --git a/app/views/curation_concerns/base/_attribute_rows.html.erb b/app/views/curation_concerns/base/_attribute_rows.html.erb index 5d5fb326b..39d3c9253 100644 --- a/app/views/curation_concerns/base/_attribute_rows.html.erb +++ b/app/views/curation_concerns/base/_attribute_rows.html.erb @@ -1,7 +1,7 @@ - <%= @presenter.attribute_to_html(:description) %> - <%= @presenter.attribute_to_html(:creator, catalog_search_link: true ) %> - <%= @presenter.attribute_to_html(:contributor, label: 'Contributors', catalog_search_link: true) %> - <%= @presenter.attribute_to_html(:subject, catalog_search_link: true) %> - <%= @presenter.attribute_to_html(:publisher) %> - <%= @presenter.attribute_to_html(:language) %> + <%= presenter.attribute_to_html(:description) %> + <%= presenter.attribute_to_html(:creator, catalog_search_link: true ) %> + <%= presenter.attribute_to_html(:contributor, label: 'Contributors', catalog_search_link: true) %> + <%= presenter.attribute_to_html(:subject, catalog_search_link: true) %> + <%= presenter.attribute_to_html(:publisher) %> + <%= presenter.attribute_to_html(:language) %> diff --git a/app/views/curation_concerns/base/_attributes.html.erb b/app/views/curation_concerns/base/_attributes.html.erb index f12f98cf9..ce03632ca 100644 --- a/app/views/curation_concerns/base/_attributes.html.erb +++ b/app/views/curation_concerns/base/_attributes.html.erb @@ -1,18 +1,18 @@ -> +
> - <%= render 'attribute_rows' %> + <%= render 'attribute_rows', presenter: presenter %> - <%= @presenter.attribute_to_html(:embargo_release_date) %> - <%= @presenter.attribute_to_html(:lease_expiration_date) %> - <%= @presenter.attribute_to_html(:rights) %> + <%= presenter.attribute_to_html(:embargo_release_date) %> + <%= presenter.attribute_to_html(:lease_expiration_date) %> + <%= presenter.attribute_to_html(:rights) %>

Attributes

Attribute NameValues
Visibility - <%= @presenter.permission_badge %> + <%= presenter.permission_badge %>
diff --git a/app/views/curation_concerns/base/show.html.erb b/app/views/curation_concerns/base/show.html.erb index 39d63b773..b2d42ec3e 100644 --- a/app/views/curation_concerns/base/show.html.erb +++ b/app/views/curation_concerns/base/show.html.erb @@ -7,7 +7,7 @@ <% editor = can?(:edit, @presenter.id) %> <%= render 'representative_media', work: @presenter %> -<%= render 'attributes', curation_concern: @presenter %> +<%= render "attributes", presenter: @presenter %> <%= render 'related_files', presenter: @presenter %> <% if editor %> <%= render 'multiple_upload', presenter: @presenter %> diff --git a/app/views/curation_concerns/file_sets/show.html.erb b/app/views/curation_concerns/file_sets/show.html.erb index 2d407d03d..b28e00028 100644 --- a/app/views/curation_concerns/file_sets/show.html.erb +++ b/app/views/curation_concerns/file_sets/show.html.erb @@ -3,5 +3,5 @@

File Details <%= @presenter.title %>

<% end %> <%= media_display @presenter %> -<%= render "attributes", curation_concern: @presenter %> +<%= render "attributes", presenter: @presenter %> <%= render "show_actions", presenter: @presenter, parent: parent %> diff --git a/app/views/curation_concerns/single_use_links_viewer/show.html.erb b/app/views/curation_concerns/single_use_links_viewer/show.html.erb index 9507c8c0d..9692f9491 100644 --- a/app/views/curation_concerns/single_use_links_viewer/show.html.erb +++ b/app/views/curation_concerns/single_use_links_viewer/show.html.erb @@ -6,5 +6,5 @@

Descriptions:

- <%= render 'attributes' %> + <%= render 'attributes', presenter: @presenter %> diff --git a/spec/views/curation_concerns/base/_attributes.html.erb_spec.rb b/spec/views/curation_concerns/base/_attributes.html.erb_spec.rb index 8ce95c91e..ce585f29e 100644 --- a/spec/views/curation_concerns/base/_attributes.html.erb_spec.rb +++ b/spec/views/curation_concerns/base/_attributes.html.erb_spec.rb @@ -19,8 +19,7 @@ before do allow(view).to receive(:dom_class) { '' } - assign(:presenter, presenter) - render + render 'curation_concerns/base/attributes', presenter: presenter end it 'has links to search for other objects with the same metadata' do