2 * This file is included in includes/js_libraries.php
5 function getMetadata(){
8 // returns all fields of a given method
9 function getMetadata_fields(method){
10 var result=new Array();
11 jQuery.each(all_headers, function(m,obj){
13 jQuery.each(obj['column'], function(i,f){
19 result.sort(sort_by('column', false, function(a){return a.toUpperCase()}));
20 //result=jQuery(result).sort("column", "asc");
23 // returns all properties of a given field
24 function getMetadata_field(method, field){
25 //console.log(all_headers);
26 var result=new Array();
27 jQuery.each(all_headers, function(m,obj){
29 jQuery.each(obj['column'], function(i,f){
30 if(f['column']==field){
40 // returns the value of a property from a field within a method (type of object : resource,node,lease,slice...)
41 function getMetadata_property(method, field, property){
42 //console.log(all_headers);
44 jQuery.each(all_headers, function(m,obj){
46 jQuery.each(obj['column'], function(i,f){
47 if(f['column']==field){
56 //all_headers[method]['column']