From bc371b753b838ef2d453b5b8e25ba80f42db9ba2 Mon Sep 17 00:00:00 2001 From: Mike Bennett Date: Tue, 25 Jan 2022 14:14:05 +0000 Subject: [PATCH 1/2] temporarily remove related_items from the serializer --- app/serializers/datacite_doi_serializer.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/serializers/datacite_doi_serializer.rb b/app/serializers/datacite_doi_serializer.rb index 906d8d73e..bcad91b05 100644 --- a/app/serializers/datacite_doi_serializer.rb +++ b/app/serializers/datacite_doi_serializer.rb @@ -24,7 +24,7 @@ class DataciteDoiSerializer :language, :types, :related_identifiers, - :related_items, + # :related_items, :sizes, :formats, :version, @@ -191,9 +191,9 @@ class DataciteDoiSerializer Array.wrap(object.related_identifiers) end - attribute :related_items do |object| - Array.wrap(object.related_items) - end + # attribute :related_items do |object| + # Array.wrap(object.related_items) + # end attribute :geo_locations, if: From 116f60edfae6a6d8cbe16e1e771ad0e5a6599d37 Mon Sep 17 00:00:00 2001 From: Mike Bennett Date: Tue, 25 Jan 2022 14:18:42 +0000 Subject: [PATCH 2/2] Rubocop fix --- app/serializers/datacite_doi_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/datacite_doi_serializer.rb b/app/serializers/datacite_doi_serializer.rb index bcad91b05..ca5addf9a 100644 --- a/app/serializers/datacite_doi_serializer.rb +++ b/app/serializers/datacite_doi_serializer.rb @@ -24,7 +24,7 @@ class DataciteDoiSerializer :language, :types, :related_identifiers, - # :related_items, + # :related_items, :sizes, :formats, :version,