ontologies_controller.rb revision b795aa29b9a4182f5b0586acd7656ba39e306c0b
#
# Controller for ontologies
#
if in_repository?
else
end
end
end
end
end
end
if !params[:repository_id]
# redirect for legacy routing
return
end
respond_to do |format|
format.html do
if !resource.distributed?
else
end
end
format.json do
end
end
end
# retry a specific ontology
end
redirect_to (id ? [parent, scope.first!, :ontology_versions] : [parent, :ontologies])
end
respond_to do |format|
format.json do
end
end
end
end
end
end
end
end
@a ||= []
vertex.children.each { |child| build_categories_tree(child) unless child.children.empty?; @a << child }
@a
end
def user_selected_categories
params[:category_ids].keys unless params[:category_ids].nil?
end
end