Skip to content

Commit

Permalink
fix syntax in activities api
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 8, 2019
1 parent 613dac2 commit 6dd5472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/serializers/activity_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 6dd5472

Please sign in to comment.