Commit 4149a40ecedbe8d8c482b2ae4d6b6bf348beb302

Authored by Renato De Donato
1 parent 6dea0311

dataset invalid url

controllets/data-sevc-controllet/data-sevc-controllet.html
@@ -158,6 +158,9 @@ @@ -158,6 +158,9 @@
158 _allowSecondStep : function(e){ 158 _allowSecondStep : function(e){
159 this.dataUrl = e.detail.url; 159 this.dataUrl = e.detail.url;
160 160
  161 + var wrongUrl = ln["wrongUrl_" + this.localization];
  162 + console.log(ln["wrongUrl_en"]);
  163 +
161 $.ajax({ 164 $.ajax({
162 url: e.detail.url, 165 url: e.detail.url,
163 dataType: "json", 166 dataType: "json",
@@ -169,6 +172,7 @@ @@ -169,6 +172,7 @@
169 error: function(){ 172 error: function(){
170 // this.jsonData = undefined; 173 // this.jsonData = undefined;
171 slider.chevronRight(false); 174 slider.chevronRight(false);
  175 + dataset_selection.dataUrl = wrongUrl;
172 } 176 }
173 }); 177 });
174 178
datalets/base-datalet/base-datalet.html
@@ -177,6 +177,12 @@ Example : @@ -177,6 +177,12 @@ Example :
177 }, 177 },
178 178
179 attached: function(){ 179 attached: function(){
  180 + if(this.title == undefined)
  181 + this.title = "";
  182 +
  183 + if(this.description == undefined)
  184 + this.description = "";
  185 +
180 if(this.title != "" && this.description != "") 186 if(this.title != "" && this.description != "")
181 this.description = "- " + this.description; 187 this.description = "- " + this.description;
182 }, 188 },
locales/lnHashMap.js
@@ -14,6 +14,7 @@ ln["mostPopular_it"] = "I PIÙ VISTI"; @@ -14,6 +14,7 @@ ln["mostPopular_it"] = "I PIÙ VISTI";
14 ln["availableDatasets_it"] = "Dataset disponibili"; 14 ln["availableDatasets_it"] = "Dataset disponibili";
15 ln["suggestedDatasets_it"] = "Dataset suggeriti"; 15 ln["suggestedDatasets_it"] = "Dataset suggeriti";
16 ln["selectedUrl_it"] = "Url selezionata"; 16 ln["selectedUrl_it"] = "Url selezionata";
  17 +ln["wrongUrl_it"] = "Url invalido o data provider non ancora supportato.";
17 18
18 ln["inputs_it"] = "DATI DI INPUT"; 19 ln["inputs_it"] = "DATI DI INPUT";
19 ln["layouts_it"] = "ETICHETTE / OPZIONI"; 20 ln["layouts_it"] = "ETICHETTE / OPZIONI";
@@ -66,6 +67,7 @@ ln["mostPopular_en"] = "MOST POPULAR"; @@ -66,6 +67,7 @@ ln["mostPopular_en"] = "MOST POPULAR";
66 ln["availableDatasets_en"] = "Available datasets"; 67 ln["availableDatasets_en"] = "Available datasets";
67 ln["suggestedDatasets_en"] = "Suggested datasets"; 68 ln["suggestedDatasets_en"] = "Suggested datasets";
68 ln["selectedUrl_en"] = "Selected url"; 69 ln["selectedUrl_en"] = "Selected url";
  70 +ln["wrongUrl_en"] = "Invalid url or data provider not supported yet.";
69 71
70 ln["inputs_en"] = "INPUTS"; 72 ln["inputs_en"] = "INPUTS";
71 ln["layouts_en"] = "LABELS / OPTIONS"; 73 ln["layouts_en"] = "LABELS / OPTIONS";
@@ -119,6 +121,7 @@ ln["mostPopular_fr"] = "LES PLUS POPULAIRES"; @@ -119,6 +121,7 @@ ln["mostPopular_fr"] = "LES PLUS POPULAIRES";
119 ln["availableDatasets_fr"] = "Jeux de données disponibles"; 121 ln["availableDatasets_fr"] = "Jeux de données disponibles";
120 ln["suggestedDatasets_fr"] = "Jeux de données suggérés"; 122 ln["suggestedDatasets_fr"] = "Jeux de données suggérés";
121 ln["selectedUrl_fr"] = "Sélectionner URL"; 123 ln["selectedUrl_fr"] = "Sélectionner URL";
  124 +ln["wrongUrl_fr"] = "Invalid url or data provider not supported yet.";
122 125
123 ln["inputs_fr"] = "SORTIES"; 126 ln["inputs_fr"] = "SORTIES";
124 ln["layouts_fr"] = "VIGNETTES/OPTIONSs"; 127 ln["layouts_fr"] = "VIGNETTES/OPTIONSs";
@@ -171,6 +174,7 @@ ln["mostPopular_nl"] = "MOST POPULAR"; @@ -171,6 +174,7 @@ ln["mostPopular_nl"] = "MOST POPULAR";
171 ln["availableDatasets_nl"] = "Available datasets"; 174 ln["availableDatasets_nl"] = "Available datasets";
172 ln["suggestedDatasets_nl"] = "Suggested datasets"; 175 ln["suggestedDatasets_nl"] = "Suggested datasets";
173 ln["selectedUrl_nl"] = "Selected url"; 176 ln["selectedUrl_nl"] = "Selected url";
  177 +ln["wrongUrl_nl"] = "Invalid url or data provider not supported yet.";
174 178
175 ln["inputs_nl"] = "INPUTS"; 179 ln["inputs_nl"] = "INPUTS";
176 ln["layouts_nl"] = "LABELS / OPTIONS"; 180 ln["layouts_nl"] = "LABELS / OPTIONS";