def search_state_with_facets(params, facet = {})
        state = Blacklight::SearchState.new(params, CatalogController.blacklight_config)
        return state.params if facet.none?
        state.add_facet_params(ActiveFedora.index_field_mapper.solr_name(facet.keys.first, :facetable),
                               facet.values.first)
      end
def search_state_with_facets(params, facet = {})
        state = Blacklight::SearchState.new(params, CatalogController.blacklight_config)
        return state.params if facet.none?
        state.add_facet_params(ActiveFedora.index_field_mapper.solr_name(facet.keys.first, :facetable),
                               facet.values.first)
      end
rubocop:enable Metrics/MethodLength
 @param [ActionController::Parameters] params first argument for Blacklight::SearchState.new
 @param [Hash] facet
 @note Ignores all but the first facet.  Probably a bug.