Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/datacite/lupo
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 10, 2019
2 parents 762e0db + 5ada557 commit 98f4b67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/clients_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def totals
page_prov = { size: 2000, number: 1 }

ttl = Client.query("", page: page_prov).map do |client|
response = Doi.query("", client_id: client.symbol.downcase, page: page)
response = Doi.query("", client_id: client.symbol.downcase, state: params[:state] || "",page: page)
total = response.results.total
states = total > 0 ? facet_by_key(response.response.aggregations.states.buckets) : nil
temporal ={}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/providers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def totals
page_prov = { size: 500, number: 1}

ttl = Provider.query("", page: page_prov).map do |provider|
response = Doi.query("", provider_id: provider.symbol.downcase, page: page)
response = Doi.query("", provider_id: provider.symbol.downcase, state: params[:state] || "", page: page)
total = response.results.total
states = total > 0 ? facet_by_key(response.response.aggregations.states.buckets) : nil
temporal ={}
Expand Down

0 comments on commit 98f4b67

Please sign in to comment.