Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/controllers/institutions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def show
# format.json { render layout: false, json: JSON.parse(JbuilderTemplate.new(view_context).api_format!(@institution).target!) }
#format.json { render json: @institution } #normal json
format.json {render json: @institution, include: [params[:include]]}
format.rdf { render template: 'rdf/show' }
end
end

Expand Down
1 change: 0 additions & 1 deletion app/models/institution.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class Institution < ApplicationRecord

acts_as_yellow_pages

auto_strip_attributes :web_page, :title
Expand Down
3 changes: 2 additions & 1 deletion lib/seek/rdf/jerm_vocab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def self.defined_types
Investigation => :Investigation,
Publication => :Publication,
Strain => :Strain,
Sample => :Sample
Sample => :Sample,
Institution => :Institution
}
end

Expand Down
2 changes: 1 addition & 1 deletion test/unit/util_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def teardown
test 'rdf capable types' do
types = Seek::Util.rdf_capable_types
expected = %w[Assay DataFile Investigation Model ObservationUnit Organism Person Programme Project Publication
Sample Sop Strain Study]
Sample Sop Strain Study Institution]
assert_equal expected, types.collect(&:name).sort
end

Expand Down
Loading