diff --git a/app/assets/javascripts/order_policies.coffee b/app/assets/javascripts/order_policies.coffee index cce9a82af..2dc13492f 100644 --- a/app/assets/javascripts/order_policies.coffee +++ b/app/assets/javascripts/order_policies.coffee @@ -71,7 +71,11 @@ $(document).ready -> # to retrieve data specific to the selected values if selectedValues.length > 0 # Not providing any concept ids will result in all items coming back, avoid that - $.ajax '/provider_collections?' + $.param('concept_id': selectedValues) + '&page_size=' + selectedValues.length, + $.ajax '/provider_collections', + method: 'POST' + data: + concept_id: selectedValues + page_size: selectedValues.length success: (data) -> # Sets the selected values of the chooser collectionsChooser.setToVal(data.items) diff --git a/app/assets/javascripts/service_management.coffee b/app/assets/javascripts/service_management.coffee index 29b505ee9..3e40d1f39 100644 --- a/app/assets/javascripts/service_management.coffee +++ b/app/assets/javascripts/service_management.coffee @@ -91,7 +91,11 @@ $(document).ready -> # to retrieve data specific to the selected values if selectedValues.length > 0 # Not providing any concept ids will result in all items coming back, avoid that - $.ajax '/provider_collections?' + $.param('concept_id': selectedValues) + '&page_size=' + selectedValues.length, + $.ajax '/provider_collections', + method: 'POST' + data: + concept_id: selectedValues + page_size: selectedValues.length success: (data) -> # Sets the selected values of the chooser collectionsChooser.setToVal(data.items) diff --git a/config/routes.rb b/config/routes.rb index 7d38127a2..c451f7706 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -72,6 +72,7 @@ # API Endpoints for Chooser implementations get 'provider_collections' => 'manage_cmr#provider_collections' + post 'provider_collections' => 'manage_cmr#provider_collections' get 'service_implementations_with_datasets' => 'manage_cmr#service_implementations_with_datasets' get 'datasets_for_service_implementation' => 'manage_cmr#datasets_for_service_implementation'