app/controllers/data_search_controller.rb
# TODO - this should be In the DB with an admin/master curator UI behind it. I
# would also add a "comment" to that model, when we build it, which would
# populate a flash message after the search is run; that would allow things
# like "notice how this search specifies a URI as the query" and the like,
# calling out specific features of each search.
#
# That said, we will have to consider how to deal with I18n, both for the
# "comment" and for the label.
this should be In the DB with an admin/master curator UI behind it. I
would also add a "comment" to that model, when we build it, which would
populate a flash message after the search is run; that would allow things
like "notice how this search specifies a URI as the query" and the like,
calling out specific features of each search.

That said, we will have to consider how to deal with I18n, both for the
"comment" and for the label.
this should be In the DB with an admin / master curator UI behind it . I would also add a " comment " to that model when we build it which would populate a flash message after the search is run ; that would allow things like " notice how this search specifies a URI as the query " and the like calling out specific features of each search . That said we will have to consider how to deal with I18n both for the " comment " and for the label .
def prepare_suggested_searches
    @suggested_searches = [
      { label_key: 'search_suggestion_diatom_shape',
        params: {
          attribute: 'http://purl.obolibrary.org/obo/OBA_0000052',
          taxon_concept_id: 3685 }} 
    ]
  end
def prepare_suggested_searches @suggested_searches = [ { label_key : 'search_suggestion_diatom_shape' , params : { attribute : 'http://purl.obolibrary.org/obo/OBA_0000052' , taxon_concept_id : 3685 } } ] end
TODO - this should be In the DB with an admin/master curator UI behind it.
TODO - this should be In the DB with an admin / master curator UI behind it .
# { label_key: 'search_suggestion_whale_mass', #   params: { #     sort: 'desc', #     min: 10000, #     taxon_concept_id: 7649, #     attribute: 'http://purl.obolibrary.org/obo/VT_0001259', #     unit: 'http://purl.obolibrary.org/obo/UO_0000009' }}, # { label_key: 'search_suggestion_cavity_nests', #   params: { #     q: 'cavity', #     attribute: 'http://eol.org/schema/terms/NestType' }}, #, # { label_key: 'search_suggestion_blue_flowers', #   params: { #     q: 'http://purl.obolibrary.org/obo/PATO_0000318', #     attribute: 'http://purl.obolibrary.org/obo/TO_0000537' }}