Skip to content

Commit

Permalink
DEPRECATION WARNING: #index_presenter is deprecated; use #document_pr…
Browse files Browse the repository at this point in the history
…esenter instead
  • Loading branch information
sandbergja committed Dec 29, 2022
1 parent 76fb8b9 commit f1111de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/blacklight_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def truncated_link(doc, field_or_string, opts = { counter: nil }, length = 200)
label_value = if field_or_string.class == String
field_or_string
else
index_presenter(doc).label(field_or_string, opts)
document_presenter(doc).label(field_or_string, opts)
end
label = label_value.truncate(length, separator: /\s/).html_safe
link_to label, url_for_document(doc), document_link_params(doc, opts)
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_index_default.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% doc_presenter = index_presenter(document) %>
<% doc_presenter = document_presenter(document) %>
<%# default partial to display solr document fields in catalog index view -%>
<abbr class="unapi-id" title="<%= document.id %>"></abbr>
<ul class="document-metadata dl-horizontal dl-invert">
Expand Down

0 comments on commit f1111de

Please sign in to comment.