Skip to content

Commit

Permalink
DEPRECATION WARNING: Calling show_fields_for with a SolrDocument is d…
Browse files Browse the repository at this point in the history
…eprecated and will be removed in Blacklight 8
  • Loading branch information
sandbergja committed Jan 5, 2023
1 parent 2c0e737 commit 06e3fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/catalog/_show_top_fields.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% doc_presenter = document_presenter(document) %>
<%# default partial to display solr document fields in catalog show view -%>
<dl class="dl-horizontal dl-invert top-fields">
<% doc_presenter.configuration.show_fields_for(document).each do |field_name, field| -%>
<% doc_presenter.configuration.show_fields_for(document['format']).each do |field_name, field| -%>
<% if render_top_field? document, field_name %>
<% field_presenter = Blacklight::FieldPresenter.new(doc_presenter.view_context, document, field) %>
<% if field_name == 'author_display' && document['marc_relator_display'] %>
Expand Down

0 comments on commit 06e3fdf

Please sign in to comment.