Commit 4a58f4fc97c88580e2491a82cd60cbae303873b2

Authored by Renato De Donato
1 parent 8967c24a

treemap placeholder

controllets/dataset-selection-controllet/dataset-selection-controllet.html
... ... @@ -150,7 +150,7 @@
150 150  
151 151 <paper-material id="material_container" elevation="5">
152 152  
153   - <paper-tabs selected="{{selected}}" on-tap="_loadTreeMap">
  153 + <paper-tabs selected="{{selected}}">
154 154 <paper-tab noink>LIST VIEW</paper-tab>
155 155 <paper-tab noink>TREE MAP VIEW</paper-tab>
156 156 <paper-tab noink disabled>MOST POPULAR</paper-tab>
... ... @@ -208,7 +208,7 @@
208 208 <neon-animatable>
209 209 <div id="div_datasetexplorer"></div>
210 210 <!--<datasetexplorer-datalet class="datasetexplorer" data-url="/openwall/api/datasetTree" fields='["result,provider_name","result,organization_name","result,package_name","result,resource_name","result,url","result,w"]'></datasetexplorer-datalet>-->
211   - <!--<datasetexplorer-datalet class="datasetexplorer" data-url="/oxwall_x.y.z/openwall/api/datasetTree" fields='["result,provider_name","result,organization_name","result,package_name","result,resource_name","result,url","result,w"]'></datasetexplorer-datalet>-->
  211 + <!--<datasetexplorer-datalet id="datasetexplorer" data-url="/oxwall_x.y.z/openwall/api/datasetTree" fields='["result,provider_name","result,organization_name","result,package_name","result,resource_name","result,url","result,w"]'></datasetexplorer-datalet>-->
212 212 <!--</div>-->
213 213 </neon-animatable>
214 214  
... ... @@ -282,6 +282,8 @@
282 282  
283 283 if(this.suggestedDatasets)
284 284 this.isSuggested = true;
  285 +
  286 + this._loadTreeMap();
285 287 },
286 288  
287 289 // _isSuggested : function(){
... ... @@ -302,8 +304,11 @@
302 304 },
303 305  
304 306 _loadTreeMap : function(){
305   - if(this.selected != 1 && this.$.div_datasetexplorer.innerHTML == "")
306   - this.$.div_datasetexplorer.innerHTML = "<datasetexplorer-datalet class=\"datasetexplorer\" data-url=\"/openwall/api/datasetTree\" fields='[\"result,provider_name\",\"result,organization_name\",\"result,package_name\",\"result,resource_name\",\"result,url\",\"result,w\"]'></datasetexplorer-datalet>";
  307 + var h = $("#material_container").height() - 48;
  308 + var w = $("#material_container").width();
  309 +
  310 +// if(this.selected != 1 && this.$.div_datasetexplorer.innerHTML == "")
  311 + this.$.div_datasetexplorer.innerHTML = "<datasetexplorer-datalet width=\""+w+"\" height=\""+h+"\" data-url=\"/oxwall_x.y.z/openwall/api/datasetTree\" fields='[\"result,provider_name\",\"result,organization_name\",\"result,package_name\",\"result,resource_name\",\"result,url\",\"result,w\"]'></datasetexplorer-datalet>";
307 312 },
308 313  
309 314 _selectDataUrl_treeMap : function(e){
... ...