app/views/tasks/observation_matrices/interactive_key/key.json.jbuilder
# Build out the json response as needed
json.observation_matrix_id @key.observation_matrix_id
json.project_id @key.project_id
json.observation_matrix_citation @key.observation_matrix_citation
json.descriptor_available_languages @key.descriptor_available_languages
json.language_id @key.language_id
json.language_to_use @key.language_to_use
json.keyword_ids @key.keyword_ids
json.descriptor_available_keywords @key.descriptor_available_keywords
json.row_filter @key.row_filter
json.row_id_filter_array @key.row_id_filter_array
json.otu_filter @key.otu_filter
json.otu_id_filter_array @key.otu_id_filter_array
json.sorting @key.sorting
json.error_tolerance @key.error_tolerance
json.eliminate_unknown @key.eliminate_unknown
json.identified_to_rank @key.identified_to_rank
json.selected_descriptors @key.selected_descriptors
json.selected_descriptors_hash @key.selected_descriptors_hash
json.list_of_descriptors @key.list_of_descriptors
json.observation_matrix do
json.partial! '/shared/data/all/metadata', object: @key.observation_matrix
json.merge! @key.observation_matrix.attributes
end
json.remaining (@key.remaining) do |r|
json.extract! r, :errors, :error_descriptors
json.object do
json.partial! '/shared/data/all/metadata', object: r[:object]
json.merge! r[:object].attributes
end
end
json.eliminated (@key.eliminated) do |e|
json.extract! e, :errors, :error_descriptors
json.object do
json.partial! '/shared/data/all/metadata', object: e[:object]
json.merge! e[:object].attributes
end
end