app/helpers/blacklight_advanced_search/advanced_helper_behavior.rb
# Fill in default from existing search, if present
# -- if you are using same search fields for basic
# search and advanced, will even fill in properly if existing
# search used basic search on same field present in advanced.
Fill in default from existing search, if present
if you are using same search fields for basic
search and advanced, will even fill in properly if existing
search used basic search on same field present in advanced.
Fill in default from existing search if present if you are using same search fields for basic search and advanced will even fill in properly if existing search used basic search on same field present in advanced .
def search_fields_for_advanced_search
      @search_fields_for_advanced_search ||= begin
                                               blacklight_config.search_fields.select { |_k, v| v.include_in_advanced_search || v.include_in_advanced_search.nil? }
                                             end
    end
def search_fields_for_advanced_search @search_fields_for_advanced_search ||= begin blacklight_config . search_fields . select { | _k , v | v . include_in_advanced_search || v . include_in_advanced_search . nil? } end end
Fill in default from existing search, if present
 if you are using same search fields for basic
search and advanced, will even fill in properly if existing
search used basic search on same field present in advanced.
Fill in default from existing search if present if you are using same search fields for basic search and advanced will even fill in properly if existing search used basic search on same field present in advanced .