app/presenters/blacklight/document_presenter.rb in blacklight-7.14.1 vs app/presenters/blacklight/document_presenter.rb in blacklight-7.15.0
- old
+ new
@@ -95,11 +95,15 @@
# @option options [String] :value
def field_value field_config, options = {}
field_presenter(field_config, options).render
end
+ def thumbnail_presenter_class
+ view_config.thumbnail_presenter || thumbnail_presenter
+ end
+
def thumbnail
- @thumbnail ||= thumbnail_presenter.new(document, view_context, view_config)
+ @thumbnail ||= thumbnail_presenter_class.new(document, view_context, view_config)
end
##
# Create <link rel="alternate"> links from a documents dynamically
# provided export formats. Returns empty string if no links available.