Skip to content

Commit

Permalink
migrate away from deprecated Blacklight helper method in favor of pre…
Browse files Browse the repository at this point in the history
…senter
  • Loading branch information
mejackreed committed Jan 17, 2018
1 parent f93dcb4 commit 09ad586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/catalog/_upper_metadata.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<% document ||= @document %>
<% doc_presenter = show_presenter(document) %>
<div class="geoblacklight-view-panel">

<%# From https://github.com/projectblacklight/blacklight/blob/master/app/views/catalog/_show_default.html.erb %>
Expand All @@ -8,7 +9,7 @@
<% document_show_fields(document).each do |solr_fname, field| %>
<% if should_render_show_field? document, field %>
<dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_label document, field: solr_fname %></dt>
<dd class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_value document, field: solr_fname %></dd>
<dd class="blacklight-<%= solr_fname.parameterize %>"><%= doc_presenter.field_value solr_fname %></dd>
<% end %>
<% end %>
<% if !@document.references.nil? && !@document.references.url.nil? %>
Expand Down

0 comments on commit 09ad586

Please sign in to comment.