Changeset 2094


Ignore:
Timestamp:
Nov 7, 2011, 6:19:41 PM (11 years ago)
Author:
tjeerd@…
Message:

Yet Another Commit (trying to fix error in fieldId creation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/visualization/VisualizeController.groovy

    r2093 r2094  
    196196            callUrl = ""+assay.module.url + "/rest/getMeasurementMetaData/query?"+urlVars
    197197            def json = moduleCommunicationService.callModuleRestMethodJSON( assay.module.url /* consumer */, callUrl );
    198             println(callUrl)
     198            println("JSON:"+json)
    199199            def collection = []
    200200            json.each{ jason ->
     
    204204            collection.each { field ->
    205205                // For getting this field from this assay
    206                 println("FIELD: "+field);
    207206                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+")":"")  ]
    208207            }
     
    11111110        protected String createFieldId( Map attrs ) {
    11121111                // 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 ?: "")+"";
    11181117
    11191118                return id.bytes.encodeBase64().toString() + "," +
Note: See TracChangeset for help on using the changeset viewer.