Commit 1ee86c2061070d09788cb830e1485b3e212c73dd

Authored by Luigi Serra
1 parent f4ba4a5d

deepClient.js update

Showing 2 changed files with 28 additions and 5 deletions
js/deepClient.js
@@ -20,7 +20,7 @@ var ComponentService = @@ -20,7 +20,7 @@ var ComponentService =
20 var datalet_code = link + '<' + params.component; 20 var datalet_code = link + '<' + params.component;
21 var keys = Object.keys(params.params); 21 var keys = Object.keys(params.params);
22 for(var i = 0; i < keys.length; i++){ 22 for(var i = 0; i < keys.length; i++){
23 - datalet_code += ' ' + keys[i] + '="' + params.params[keys[i]] +'"'; 23 + datalet_code += ' ' + keys[i] + '=\'' + params.params[keys[i]] +'\'';
24 } 24 }
25 datalet_code += " fields='" + JSON.stringify(params.fields) + "'></" + params.component + ">"; 25 datalet_code += " fields='" + JSON.stringify(params.fields) + "'></" + params.component + ">";
26 26
sevc.html
@@ -10,14 +10,37 @@ @@ -10,14 +10,37 @@
10 10
11 <script> 11 <script>
12 12
13 - ComponentService.deep_url = parent.ODE.deep_url; 13 + var datasetsPrato = [
  14 + {
  15 + name: 'Consuntivo entrate 2009',
  16 + url: 'http://ckan.routetopa.eu/api/action/datastore_search?resource_id=07843fc3-07e1-4c66-9be4-fed43ca4a26f&limit=10000',
  17 + },
  18 + {
  19 + name: 'Consuntivo entrate 2010',
  20 + url: 'http://ckan.routetopa.eu/api/action/datastore_search?resource_id=48a4db73-d3d4-4639-bbc2-9c797d0e6cda&limit=10000',
  21 + },
  22 + {
  23 + name: 'Consuntivo entrate 2011',
  24 + url: 'http://ckan.routetopa.eu/api/action/datastore_search?resource_id=a14cc2fb-0c24-48d7-9370-834045797d89&limit=10000',
  25 + },
  26 + {
  27 + name: 'Consuntivo entrate 2014',
  28 + url: 'http://ckan.routetopa.eu/api/action/datastore_search?resource_id=0cb600fc-19ad-4aaf-9794-1e6ea851840a&limit=10000',
  29 + },
  30 + {
  31 + name: 'Consuntivo entrate 2009',
  32 + url: 'http://ckan.routetopa.eu/api/action/datastore_search?resource_id=07843fc3-07e1-4c66-9be4-fed43ca4a26f&limit=10000',
  33 + }
  34 + ]
  35 +
  36 + ComponentService.deep_url = 'http://192.168.214.128/DEEalerProvider/DEEP/';
14 ComponentService.getComponent({ 37 ComponentService.getComponent({
15 component : "data-sevc-controllet", 38 component : "data-sevc-controllet",
16 params : 39 params :
17 { 40 {
18 - 'deep-url' : parent.ODE.deep_url,  
19 - 'datalets-list-url' : parent.ODE.deep_datalet_list,  
20 - 'organization' : parent.ODE.organization 41 + 'deep-url' : 'http://192.168.214.128/DEEalerProvider/DEEP/',
  42 + 'datalets-list-url' : 'http://192.168.214.128/DEEalerProvider/DEEP/datalets-list',
  43 + 'datasets' : JSON.stringify(datasetsPrato)
21 }, 44 },
22 fields : Array(), 45 fields : Array(),
23 placeHolder : "ode_controllet_placeholder_float" 46 placeHolder : "ode_controllet_placeholder_float"