Show
Ignore:
Timestamp:
27-04-10 15:53:06 (4 years ago)
Author:
roberth
Message:

Updated the template entities to be able to return domain fields, template fields and both.
Rolled back the change of Kees in the Event object, so the startTime and endTime fields returned.
Also updated the studies list with a new layout.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy

    r375 r386  
    1616        // a member that describes the quantity of the sample? --> should be in the templates 
    1717 
    18         Map giveDomainFields() { 
    19                 return ['name':TemplateFieldType.STRING,'material':TemplateFieldType.ONTOLOGYTERM] 
     18        List<DomainTemplateField> giveDomainFields() { 
     19                [ new DomainTemplateField( 
     20                            name: 'name', 
     21                            type: TemplateFieldType.STRING), 
     22                        new DomainTemplateField( 
     23                            name: 'material', 
     24                            type: TemplateFieldType.ONTOLOGYTERM) ]; 
    2025        } 
    2126