From 689be811b61d5b5cb792be1e1db86880b99928ba Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 29 Dec 2018 09:25:49 +0100 Subject: [PATCH] include media in dois api --- app/controllers/dois_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index 9d2501482..d1c8c6946 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -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