Skip to content

Commit

Permalink
include composite parameter in pagination. #476
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 21, 2020
1 parent ff23570 commit 79707bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ def index
"has-person" => params[:has_person],
"has-affiliation" => params[:has_affiliation],
"has-funder" => params[:has_funder],
detail: params[:detail],
composite: params[:composite],
affiliation: params[:affiliation],
# The cursor link should be an array of values, but we want to encode it into a single string for the URL
"page[cursor]" => page[:cursor] ? make_cursor(results) : nil,
"page[number]" => page[:cursor].nil? && page[:number].present? ? page[:number] + 1 : nil,
Expand Down

0 comments on commit 79707bc

Please sign in to comment.