Skip to content

Commit

Permalink
Merge pull request #36 from guadaltel/issue-35
Browse files Browse the repository at this point in the history
Issue 35
Related to: 
INSPIRE-MIF/helpdesk-validator#846
INSPIRE-MIF/helpdesk-validator#793
INSPIRE-MIF/helpdesk-validator#836

    INSPIRE Reference Validator - problem validate 'Metadata' for 'Data sets and data set series' #846
    Unable to test metadata provided as link to remote file #793
    Validator does not accept WMS URL #836
  • Loading branch information
jenriquesoriano authored Dec 21, 2022
2 parents 3db1e3e + 7406ded commit af13d43
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions js/selection/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<params.length){
var tempParams=params[i]
properties.push(tempParams.split("=")[0])
i=i+1
}
if(!properties.includes("outputSchema")){
remoteFile=remoteFile+"&outputSchema=http://www.isotc211.org/2005/gmd"}
if(!properties.includes("elementSetName")){
remoteFile=remoteFile+"&elementSetName=full"}
}
if (remoteFile.includes("?")){
var params = remoteFile.split("?");
var properties=[];
params=params[1];
params=params.split("&");

properties=params.map(param => {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")) {
Expand Down

0 comments on commit af13d43

Please sign in to comment.