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