Class: Geoblacklight::DocumentPresenter Deprecated
- Inherits:
-
Blacklight::IndexPresenter
- Object
- Blacklight::IndexPresenter
- Geoblacklight::DocumentPresenter
- Includes:
- ActionView::Helpers::OutputSafetyHelper
- Defined in:
- app/presenters/geoblacklight/document_presenter.rb
Overview
Deprecated.
This class is removed in GeoBlacklight 5. Applications that set
config.index.document_presenter_class = Geoblacklight::DocumentPresenter
in their CatalogController must drop that line, because the constant no
longer exists.
Adds custom functionality for Geoblacklight document presentation
Instance Method Summary collapse
- #index_fields_display ⇒ String deprecated Deprecated.
Instance Method Details
#index_fields_display ⇒ String
Deprecated.
Presents configured index fields in search results. Passes values through configured helper_method. Multivalued fields separated by presenter field_value_separator (default: comma). Fields separated by period.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/presenters/geoblacklight/document_presenter.rb', line 19 def index_fields_display fields_values = [] @configuration.index_fields.each do |_field_name, field_config| val = field_value(field_config) if val.present? val += "." unless val.end_with?(".") fields_values << val end end safe_join(fields_values, " ") end |