app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-0.3.0 vs app/models/spotlight/blacklight_configuration.rb in blacklight-spotlight-0.3.1

- old
+ new

@@ -74,10 +74,11 @@ config.show.partials.insert(2, "spotlight/catalog/tags") # Add any custom fields config.index_fields.merge! custom_index_fields config.index_fields = Hash[config.index_fields.sort_by { |k,v| field_weight(index_fields, k) }] + config.index_fields.reject! { |k,v| v.if == false } # Update with customizations config.index_fields.each do |k, v| if index_fields[k] @@ -91,9 +92,12 @@ v.if = :field_enabled? v.normalize! config v.validate! end + + + config.show_fields.reject! { |k,v| v.if == false } config.show_fields.reject { |k,v| config.index_fields[k] }.each do |k,v| config.index_fields[k] = v set_show_field_defaults(v)