Changeset 2094
- Timestamp:
- Nov 7, 2011, 6:19:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/visualization/VisualizeController.groovy
r2093 r2094 196 196 callUrl = ""+assay.module.url + "/rest/getMeasurementMetaData/query?"+urlVars 197 197 def json = moduleCommunicationService.callModuleRestMethodJSON( assay.module.url /* consumer */, callUrl ); 198 println( callUrl)198 println("JSON:"+json) 199 199 def collection = [] 200 200 json.each{ jason -> … … 204 204 collection.each { field -> 205 205 // For getting this field from this assay 206 println("FIELD: "+field);207 206 fields << [ "id": createFieldId( id: field.name, name: field.name, source: ""+assay.id, type: ""+assay.name, unit: (field.unit?:"")), "source": source, "category": ""+assay.name, "name": field.name + (field.unit?" ("+field.unit+")":"") ] 208 207 } … … 1111 1110 protected String createFieldId( Map attrs ) { 1112 1111 // TODO: What if one of the attributes contains a comma? 1113 def name = new String(attrs.name);1114 def id = new String(attrs.id ?: name);1115 def source = new String(attrs.source);1116 def type = new String(attrs.type ?: "");1117 def unit = new String(attrs.unit ?: "");1112 def name = attrs.name+""; 1113 def id = (attrs.id ?: name)+""; 1114 def source = attrs.source+""; 1115 def type = (attrs.type ?: "")+""; 1116 def unit = (attrs.unit ?: "")+""; 1118 1117 1119 1118 return id.bytes.encodeBase64().toString() + "," +
Note: See TracChangeset
for help on using the changeset viewer.