Skip to content

Commit

Permalink
include metrics in user meta. datacite/lupo#390
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 2, 2020
1 parent 1a4273b commit d9f4e86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def show
options[:meta] = {
dois: meta.fetch("created", []),
published: meta.fetch("published", []),
"resourceTypes" => meta.fetch("resourceTypes", []) }.compact
"resourceTypes" => meta.fetch("resourceTypes", []),
views: meta.fetch("views", []),
downloads: meta.fetch("downloads", []),
citations: meta.fetch("citations", []) }.compact
options[:include] = @include
options[:is_collection] = false
options[:params] = { current_ability: current_ability }
Expand Down

0 comments on commit d9f4e86

Please sign in to comment.