ontology_search_controller.rb revision 3a2e1a2642136a6e39213b7bd635c81736df7d10
#
# Ontology search endpoints for the GWT search code.
#
if in_repository?
else
end
end
if in_repository?
else
end
end
types = OntologyType.select([:name, :id]).order(:name).all.map {|type| {"name" => type.name.sub(/Ontology/, "ontologies"), "value" => type.id.to_s} }
repositories = Repository.select([:name, :id]).order(:name).all.map {|repository| {"name" => "in " + repository.name, "value" => repository.id.to_s} }
projects = Project.select([:name, :id]).order(:name).all.map {|project| {"name" => "from " + project.name, "value" => project.id.to_s} }
formalities = FormalityLevel.select([:name, :id]).order(:name).all.map {|formality| {"name" => "in " + formality.name, "value" => formality.id.to_s} }
licenses = LicenseModel.select([:name, :id]).order(:name).all.map {|license| {"name" => "under " + license.name, "value" => license.id.to_s} }
tasks = Task.select([:name, :id]).order(:name).all.map {|task| {"name" => "for " + task.name[0..-5].from_titlecase_to_spacedlowercase, "value" => task.id.to_s} }
filters_map = {
'OntologyType' => [
],
'Repository' => [
],
'Project' => [
],
'FormalityLevel' => [
],
'LicenseModel' => [
],
'Task' => [
]
}
end
end