From 6dd5472ad2a0fc0959dc5a2fc48bcb4c44ff9ced Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 8 Apr 2019 09:26:42 +0200 Subject: [PATCH] fix syntax in activities api --- app/serializers/activity_serializer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/serializers/activity_serializer.rb b/app/serializers/activity_serializer.rb index 320f4b1e7..9892fd70d 100644 --- a/app/serializers/activity_serializer.rb +++ b/app/serializers/activity_serializer.rb @@ -9,8 +9,8 @@ class ActivitySerializer belongs_to :doi, record_type: :dois attribute "prov:wasDerivedFrom" do |object| - url = Rails.env.production? ? "https://api.datacite.org" : "https://api.test.datacite.org" - url + "/dois" + object.uid + url = Rails.env.production? ? "https://doi.org/" : "https://handle.test.datacite.org/" + url + object.uid end attribute "prov:wasAttributedTo" do |object|