Module: Geoblacklight::CatalogHelperOverride

Included in:
ViewHelperOverride
Defined in:
lib/geoblacklight/catalog_helper_override.rb

Instance Method Summary collapse

Instance Method Details

#remove_spatial_filter_group(field, source_params = params) ⇒ Object

Removes spatial query from params

Parameters:

  • symbol (Symbol)

    of field to be removed

  • request (Hash)

    parameters


8
9
10
11
12
# File 'lib/geoblacklight/catalog_helper_override.rb', line 8

def remove_spatial_filter_group(field, source_params = params)
  p = source_params.dup
  p.delete(field.to_s)
  p
end