From ccd577099cd88bdb51f07800870cc3087c8f0802 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Mon, 27 Mar 2023 01:54:56 +0200 Subject: [PATCH] use request_lang in the collection show_members endpoint --- app/controllers/collections_controller.rb | 2 +- app/views/ontologies/concepts_browsers/_concepts_list.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/collections_controller.rb b/app/controllers/collections_controller.rb index 773b7361f..4f05afd00 100644 --- a/app/controllers/collections_controller.rb +++ b/app/controllers/collections_controller.rb @@ -18,7 +18,7 @@ def show_members @collection = get_request_collection page = params[:page] || '1' @auto_click = page.to_s.eql?('1') - @page = @collection.explore.members({page: page}) + @page = @collection.explore.members({page: page, language: request_lang}) @concepts = @page.collection if @ontology.nil? ontology_not_found params[:ontology] diff --git a/app/views/ontologies/concepts_browsers/_concepts_list.html.haml b/app/views/ontologies/concepts_browsers/_concepts_list.html.haml index 07d48f680..f6d49f174 100644 --- a/app/views/ontologies/concepts_browsers/_concepts_list.html.haml +++ b/app/views/ontologies/concepts_browsers/_concepts_list.html.haml @@ -1,6 +1,6 @@ %div{data:{controller: 'turbo-frame', 'turbo-frame': { - 'url-value': "/ajax/classes/list?ontology_id=#{@ontology.acronym}", + 'url-value': "/ajax/classes/list?ontology_id=#{@ontology.acronym}&language=#{request_lang}", 'place-holder-value': "Please select a collection to display" }}} %div.pb-2