ontologies_controller.rb revision 21fe9b58ece065c09fd4507c73e5108e977027fe
#
# Controller for ontologies
#
if in_repository?
else
end
end
@c_vertices = []
if vert
end
end
@c_vertices = []
if vert
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
end
respond_to do |format|
format.json do
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