From 79707bcd21e52be9a42d410bbfecc532c5e6bae1 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 21 Apr 2020 18:47:35 +0200 Subject: [PATCH] include composite parameter in pagination. #476 --- app/controllers/dois_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index e3327cf69..0387c189a 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -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,