Skip to content

Commit

Permalink
Gives renderer a variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
CB987 authored and bwatson78 committed Jan 15, 2025
1 parent abfc904 commit 01848da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/hyrax/base/_attribute_rows.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Instead, they are hard coded here. We, in turn, have overridden this partial so we can institute our own choices/order. -->
<% generic_renderer = ::Hyrax::Renderers::AttributeRenderer %>
<% facet_renderer = ::Hyrax::Renderers::FacetedAttributeRenderer %>
<% external_link_renderer = ::Hyrax::Renderers::ExternalLinkAttributeRenderer %>
<% content_type_term = SelfDeposit::ContentTypesService.label(presenter.solr_document['emory_content_type_tesi']) %>
<!-- Persistent URL block start -->
<%= render 'purl', presenter: presenter %>
Expand Down Expand Up @@ -33,7 +34,7 @@
<%= facet_renderer.new(:sponsor, presenter.solr_document['sponsor_ssi'], {}).render_dl_row %>
<%= facet_renderer.new(:grant_agencies, presenter.solr_document['grant_agencies_ssim'], {}).render_dl_row %>
<%= generic_renderer.new(:grant_information, presenter.solr_document['grant_information_tesim'], {}).render_dl_row %>
<%= Hyrax::Renderers::ExternalLinkAttributeRenderer.new(:related_datasets, presenter.solr_document['related_datasets_ssim'], {}).render_dl_row %>
<%= external_link_renderer.new(:related_datasets, presenter.solr_document['related_datasets_ssim'], {}).render_dl_row %>
<%= presenter.attribute_to_html(:abstract, html_dl: true) %>
<%= generic_renderer.new(:author_notes, presenter.solr_document['author_notes_tesi'], {}).render_dl_row %>
<%= presenter.attribute_to_html(:keyword, render_as: :faceted, html_dl: true) %>
Expand Down

0 comments on commit 01848da

Please sign in to comment.