app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-0.26.1 vs app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-0.27.0
- old
+ new
@@ -191,19 +191,19 @@
# rubocop:enable Metrics/MethodLength, Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
def custom_index_fields
Hash[exhibit.custom_fields.map do |x|
field = Blacklight::Configuration::IndexField.new x.configuration.merge(
- key: x.field, field: x.solr_field
+ key: x.field, field: x.solr_field, custom_field: true
)
[x.field, field]
end]
end
def custom_facet_fields
Hash[exhibit.custom_fields.vocab.map do |x|
field = Blacklight::Configuration::FacetField.new x.configuration.merge(
- key: x.field, field: x.solr_field, show: false
+ key: x.field, field: x.solr_field, show: false, custom_field: true
)
[x.field, field]
end]
end