diff --git a/js/selection/controller.js b/js/selection/controller.js index 8faee94..9e2b6fc 100644 --- a/js/selection/controller.js +++ b/js/selection/controller.js @@ -6670,21 +6670,21 @@ $scope.sendRunRequest = function() { } else { if (remoteFile != "") { if ($scope.select.typeResource == "metadata"){ - var params = remoteFile.split("?"); - var properties=[] - params=params[1] - params=params.split("&") - var i=0 - while (i {return param.split("=")[0].toLowerCase()}) + if(!properties.includes("outputschema")){ + remoteFile=remoteFile+"&outputSchema=http://www.isotc211.org/2005/gmd"} + if(!properties.includes("elementsetname")){ + remoteFile=remoteFile+"&elementSetName=full"} + } else { + remoteFile=remoteFile+"?outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full"} + } + var txtUsername = $("#text-input-username").val(); var txtPassword = $("#text-input-password").val(); if ($('#file-upload-id').text().includes("Service URL")) {