Commit cc57caa4dceba80ee6ea7f6e35474d566598b798

Authored by Renato De Donato
1 parent 4cf88b25

datasetexplorer

.htaccess deleted
1 -RewriteEngine On  
2 -RewriteCond %{REQUEST_FILENAME} !-f  
3 -RewriteRule ^ index.php [QSA,L]  
4 -Header add Access-Control-Expose-Headers "Location"  
datalets/base-datalet/base-datalet.html
@@ -177,14 +177,14 @@ Example : @@ -177,14 +177,14 @@ 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 -  
186 - if(this.title != "" && this.description != "")  
187 - this.description = "- " + this.description; 180 +// if(this.title == undefined)
  181 +// this.title = "";
  182 +//
  183 +// if(this.description == undefined)
  184 +// this.description = "";
  185 +//
  186 +// if(this.title != "" && this.description != "")
  187 +// this.description = "- " + this.description;
188 }, 188 },
189 189
190 /** 190 /**
datalets/datasetexplorer-datalet/datasetexplorer-datalet.html
@@ -84,8 +84,7 @@ Example: @@ -84,8 +84,7 @@ Example:
84 stroke: #fff; 84 stroke: #fff;
85 } 85 }
86 86
87 - :host ::content rect.parent,  
88 - .grandparent rect { 87 + :host ::content rect.parent {
89 stroke-width: 2px; 88 stroke-width: 2px;
90 } 89 }
91 90
@@ -97,8 +96,12 @@ Example: @@ -97,8 +96,12 @@ Example:
97 fill: #ee9700; 96 fill: #ee9700;
98 } 97 }
99 98
100 - :host ::content .children rect.parent,  
101 - .grandparent rect { 99 + :host ::content .children rect.parent {
  100 + cursor: pointer;
  101 + }
  102 +
  103 + :host ::content .grandparent rect {
  104 + stroke-width: 2px;
102 cursor: pointer; 105 cursor: pointer;
103 } 106 }
104 107
datalets/datasetexplorer-datalet/js/buildtreemap2.js
@@ -43,7 +43,18 @@ function build2(root, meta, place_holder, select_listener, width, height) { @@ -43,7 +43,18 @@ function build2(root, meta, place_holder, select_listener, width, height) {
43 grandparent.append("rect") 43 grandparent.append("rect")
44 .attr("y", -margin.top) 44 .attr("y", -margin.top)
45 .attr("width", width) 45 .attr("width", width)
46 - .attr("height", margin.top); 46 + .attr("height", margin.top)
  47 + //.call(rect)
  48 + .attr("onmousemove", function() {
  49 + //var data = ["lvl", "name", "color", "description", "logoUrl", "datasets", "datasetUrl"];
  50 + var data = ["top", "", "#000000", "", "", "", ""];
  51 + //data[3] = OW.getLanguageText('ode', 'back');
  52 + data[3] = datasetexplorer_ln["ode+back_"+datasetexplorer_ln["ln"]];
  53 + console.log(data[3]);
  54 +
  55 + return "showTooltip(evt, '" + data + "')";
  56 + })
  57 + .attr("onmouseout", function() {return "hideTooltip()";})
47 58
48 grandparent.append("text") 59 grandparent.append("text")
49 .attr("x", 6) 60 .attr("x", 6)
datalets/datasetexplorer-datalet/treemap_tooltip.html
@@ -46,6 +46,10 @@ @@ -46,6 +46,10 @@
46 /*left: 20px;*/ 46 /*left: 20px;*/
47 } 47 }
48 48
  49 + .tooltip#top_info {
  50 + white-space: nowrap;
  51 + }
  52 +
49 .tooltip#first_info { 53 .tooltip#first_info {
50 width: 400px; 54 width: 400px;
51 } 55 }
@@ -93,6 +97,10 @@ @@ -93,6 +97,10 @@
93 97
94 </style> 98 </style>
95 99
  100 + <paper-dialog id="top_info" class="tooltip">
  101 + <p class="ptop"><b>{{description}}</b></p>
  102 + </paper-dialog>
  103 +
96 <paper-dialog id="first_info" class="tooltip"> 104 <paper-dialog id="first_info" class="tooltip">
97 <iron-icon icon="communication:call-made" class="this" style$="color: {{color}};"></iron-icon> 105 <iron-icon icon="communication:call-made" class="this" style$="color: {{color}};"></iron-icon>
98 <div class="tooltip_top"> 106 <div class="tooltip_top">
@@ -165,6 +173,11 @@ @@ -165,6 +173,11 @@
165 this.hideTooltip(); 173 this.hideTooltip();
166 174
167 switch (lvl) { 175 switch (lvl) {
  176 + case "top":
  177 + $("#top_info").css("top", y);
  178 + $("#top_info").css("left", x);
  179 + this.$.top_info.open();
  180 + break;
168 case "first": 181 case "first":
169 $("#first_info").css("top", y); 182 $("#first_info").css("top", y);
170 $("#first_info").css("left", x); 183 $("#first_info").css("left", x);
@@ -183,6 +196,7 @@ @@ -183,6 +196,7 @@
183 }, 196 },
184 197
185 hideTooltip: function() { 198 hideTooltip: function() {
  199 + this.$.top_info.close();
186 this.$.first_info.close(); 200 this.$.first_info.close();
187 this.$.middle_info.close(); 201 this.$.middle_info.close();
188 this.$.last_info.close(); 202 this.$.last_info.close();
locales/datasetexplorer_ln.js
1 datasetexplorer_ln = []; 1 datasetexplorer_ln = [];
2 2
3 /*EN*/ 3 /*EN*/
  4 +datasetexplorer_ln["ode+back_en"] = "<< Click to navigate back to the top level.";
  5 +
4 datasetexplorer_ln["openwall+provider_1_en"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; 6 datasetexplorer_ln["openwall+provider_1_en"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)";
5 datasetexplorer_ln["openwall+provider_2_en"] = "data.issy.com (from OpenDataSoft France)"; 7 datasetexplorer_ln["openwall+provider_2_en"] = "data.issy.com (from OpenDataSoft France)";
6 datasetexplorer_ln["openwall+provider_3_en"] = "Open data Regione Lazio (Italy)"; 8 datasetexplorer_ln["openwall+provider_3_en"] = "Open data Regione Lazio (Italy)";
@@ -11,6 +13,8 @@ datasetexplorer_ln[&quot;openwall+provider_7_en&quot;] = &quot;Ireland\\&#39;s Open Data Portal (Ir @@ -11,6 +13,8 @@ datasetexplorer_ln[&quot;openwall+provider_7_en&quot;] = &quot;Ireland\\&#39;s Open Data Portal (Ir
11 datasetexplorer_ln["openwall+provider_8_en"] = "TET v.0.1 @ Galway (Ireland)"; 13 datasetexplorer_ln["openwall+provider_8_en"] = "TET v.0.1 @ Galway (Ireland)";
12 14
13 /*IT*/ 15 /*IT*/
  16 +datasetexplorer_ln["ode+back_it"] = "<< Clicca qui per tornare al livello precedente.";
  17 +
14 datasetexplorer_ln["openwall+provider_1_it"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; 18 datasetexplorer_ln["openwall+provider_1_it"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)";
15 datasetexplorer_ln["openwall+provider_2_it"] = "data.issy.com (from OpenDataSoft France)"; 19 datasetexplorer_ln["openwall+provider_2_it"] = "data.issy.com (from OpenDataSoft France)";
16 datasetexplorer_ln["openwall+provider_3_it"] = "Open data Regione Lazio (Italy)"; 20 datasetexplorer_ln["openwall+provider_3_it"] = "Open data Regione Lazio (Italy)";
@@ -21,6 +25,8 @@ datasetexplorer_ln[&quot;openwall+provider_7_it&quot;] = &quot;Ireland\\&#39;s Open Data Portal (Ir @@ -21,6 +25,8 @@ datasetexplorer_ln[&quot;openwall+provider_7_it&quot;] = &quot;Ireland\\&#39;s Open Data Portal (Ir
21 datasetexplorer_ln["openwall+provider_8_it"] = "TET v.0.1 @ Galway (Ireland)"; 25 datasetexplorer_ln["openwall+provider_8_it"] = "TET v.0.1 @ Galway (Ireland)";
22 26
23 /*FR*/ 27 /*FR*/
  28 +datasetexplorer_ln["ode+back_fr"] = "<< Click to navigate back to the top level.";
  29 +
24 datasetexplorer_ln["openwall+provider_1_fr"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; 30 datasetexplorer_ln["openwall+provider_1_fr"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)";
25 datasetexplorer_ln["openwall+provider_2_fr"] = "data.issy.com (from OpenDataSoft France)"; 31 datasetexplorer_ln["openwall+provider_2_fr"] = "data.issy.com (from OpenDataSoft France)";
26 datasetexplorer_ln["openwall+provider_3_fr"] = "Open data Regione Lazio (Italy)"; 32 datasetexplorer_ln["openwall+provider_3_fr"] = "Open data Regione Lazio (Italy)";
@@ -31,6 +37,8 @@ datasetexplorer_ln[&quot;openwall+provider_7_fr&quot;] = &quot;Ireland\\&#39;s Open Data Portal (Ir @@ -31,6 +37,8 @@ datasetexplorer_ln[&quot;openwall+provider_7_fr&quot;] = &quot;Ireland\\&#39;s Open Data Portal (Ir
31 datasetexplorer_ln["openwall+provider_8_fr"] = "TET v.0.1 @ Galway (Ireland)"; 37 datasetexplorer_ln["openwall+provider_8_fr"] = "TET v.0.1 @ Galway (Ireland)";
32 38
33 /*NL*/ 39 /*NL*/
  40 +datasetexplorer_ln["ode+back_en"] = "<< Click to navigate back to the top level.";
  41 +
34 datasetexplorer_ln["openwall+provider_1_nl"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)"; 42 datasetexplorer_ln["openwall+provider_1_nl"] = "Example CKAN with data from out pilots (Pratos - Groiningen - Den Haag)";
35 datasetexplorer_ln["openwall+provider_2_nl"] = "data.issy.com (from OpenDataSoft France)"; 43 datasetexplorer_ln["openwall+provider_2_nl"] = "data.issy.com (from OpenDataSoft France)";
36 datasetexplorer_ln["openwall+provider_3_nl"] = "Open data Regione Lazio (Italy)"; 44 datasetexplorer_ln["openwall+provider_3_nl"] = "Open data Regione Lazio (Italy)";