Blame view

controllets/providers-utility-controllet/ckan.js 843 Bytes
89558a41   Renato De Donato   datatype, provide...
1
2
3
4
  function ckan_Provider () { //--> dataUrl inutile
      //this.dataUrl = dataUrl;
      //this.path = "result->records";
      //this.arrayPath = ["result", "records", "*"];
9fd4ca8a   Renato De Donato   new data table
5
6
  }
  
89558a41   Renato De Donato   datatype, provide...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  ckan_Provider.prototype.selectData = function(data) {
      return data.result.records;
  };
  
  ckan_Provider.prototype.addLimit = function(url) {
      if(url.indexOf("&limit=") > -1)
          return url;
      return url + "&limit=99999";
  };
  
  //ckan_Provider.prototype.getFields = function(data) {
  //    var fields = [];
  //    for (var key in data.result.records[0])
  //        fields.push(key);
  //    return fields;
  //};
  
  //ckan_Provider.prototype.requestData = function() {
  //    var that = this;
  //
  //    $.ajax({
  //        url: this.dataUrl,
  //        dataType: "json",
  //        success: function(data){
  //            that.data = data.result.records;
  //        }
  //    });
  //};