Ignore:
Timestamp:
Mar 10, 2010, 7:27:57 PM (9 years ago)
Author:
tabma
Message:
  • rewrite of celltype detection
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy

    r251 r255  
    1616package dbnp.importer
    1717import dbnp.studycapturing.Template
     18import dbnp.studycapturing.TemplateFieldType
    1819
    1920class ImporterTagLib {
     
    2223                        [type:3, name:"Protocol"], [type:4, name:"Sample"]]
    2324
    24     def standardcelltypes = [
     25    /*def standardcelltypes = [
    2526                         [type:0, name:"Numeric"], [type:1, name:"String"], [type:2, name:"Formula"],
    2627                         [type:3, name:"Blank"], [type:4, name:"Boolean"], [type:5, name:"Error"], [type:6, name:"Date"],
    2728                         [type:7, name:"Float"], [type:8, name:"Double"], [type:9, name:"List of items"], [type:10, name:"Ontologyterm"]
    28                      ]
     29                     ]*/
    2930
    3031    /**
     
    6162    }
    6263
    63     def createSelect(int selected, String name, ArrayList options, String customvalue) {
     64    def createSelect(int selected, String name, options, String customvalue) {
    6465        def res = "<select style=\"font-size:10px\" name=\"${name}\">"
    6566
     
    136137        def selected = (attrs['selected']==null) ? -1 : attrs['selected']
    137138        def customvalue = (attrs['customvalue']==null) ? "" : attrs['customvalue']
    138         out << createSelect(selected, attrs['name'], standardcelltypes, customvalue)
     139        //out << createSelect(selected, attrs['name'], standardcelltypes, customvalue)
     140        out << createSelect(selected, attrs['name'], TemplateFieldType.list(), customvalue)
    139141    }
    140142}
Note: See TracChangeset for help on using the changeset viewer.