Skip to content

Commit

Permalink
Merge pull request #376 from sul-dlss/collections_cocina
Browse files Browse the repository at this point in the history
Include all collection attributes from query/collections
  • Loading branch information
ndushay committed Sep 9, 2019
2 parents f552bfe + 19cae5d commit 5d18bb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/queries/collections.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# frozen_string_literal: true

json.collections @collections, :externalIdentifier
json.collections @collections
2 changes: 1 addition & 1 deletion spec/requests/collections_for_object_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
get '/v1/objects/druid:mk420bs7601/query/collections',
headers: { 'X-Auth' => "Bearer #{jwt}" }
expect(response).to be_successful
expect(response.body).to eq '{"collections":[{"externalIdentifier":"druid:999123"}]}'
expect(response.body).to eq '{"collections":[{"externalIdentifier":"druid:999123","type":"collection","label":"collection #1"}]}'
end
end
end

0 comments on commit 5d18bb8

Please sign in to comment.