diff --git a/app/serializers/doi_serializer.rb b/app/serializers/doi_serializer.rb index cf7bafa98..aae42e277 100644 --- a/app/serializers/doi_serializer.rb +++ b/app/serializers/doi_serializer.rb @@ -11,7 +11,7 @@ class DoiSerializer has_many :media attribute :xml, if: Proc.new { |object, params| params && params[:detail] } do |object| - object.xml_encoded || (object.current_metadata.present? && object.current_metadata.xml.to_s.start_with?('