Skip to content

Commit

Permalink
include media in dois api
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 29, 2018
1 parent 39e1a8a commit 689be81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ def set_doi
def set_include
if params[:include].present?
@include = params[:include].split(",").map { |i| i.downcase.underscore.to_sym }
@include = @include & [:client, :resource_type]
@include = @include & [:client, :media]
else
@include = [:client, :resource_type]
@include = [:client, :media]
end
end

Expand Down

0 comments on commit 689be81

Please sign in to comment.