1 function getMetadata(){
4 // returns all fields of a given method
5 function getMetadata_fields(method){
6 var result=new Array();
7 jQuery.each(all_headers, function(m,obj){
9 jQuery.each(obj['column'], function(i,f){
15 result.sort(sort_by('column', false, function(a){return a.toUpperCase()}));
16 //result=jQuery(result).sort("column", "asc");
19 // returns all properties of a given field
20 function getMetadata_field(method, field){
21 //console.log(all_headers);
22 var result=new Array();
23 jQuery.each(all_headers, function(m,obj){
25 jQuery.each(obj['column'], function(i,f){
26 if(f['column']==field){
36 // returns the value of a property from a field within a method (type of object : resource,node,lease,slice...)
37 function getMetadata_property(method, field, property){
38 //console.log(all_headers);
40 jQuery.each(all_headers, function(m,obj){
42 jQuery.each(obj['column'], function(i,f){
43 if(f['column']==field){
52 //all_headers[method]['column']