Ignore:
Timestamp:
Jan 28, 2010, 5:34:50 PM (10 years ago)
Author:
duh
Message:
  • wizard subjects page now build a table with features, does not work properly yet
  • youtube autoplay help items are possible now
  • development grouping page for selecting subjects and grouping them by dragging and dropping
Location:
trunk/grails-app/domain/dbnp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/data/Term.groovy

    r139 r145  
    77 * The Term object should point to an existing term in an online ontology, therefore instances of this class can also
    88 * be seen as a cache of elements of the external ontology.
     9 *
     10 * Revision information:
     11 * $Rev$
     12 * $Author$
     13 * $Date$
    914 */
    10 class Term {
    11     static searchable = true
    12     String name
    13     Ontology ontology
    14     String accession
     15class Term implements Serializable {
     16        static searchable = true
     17        String name
     18        Ontology ontology
     19        String accession
    1520
    16     static constraints = {
    17     }
     21        static constraints = {
     22        }
    1823
    19   def String toString() {
    20     return name
    21   }
    22 
    23 
     24        def String toString() {
     25                return name
     26        }
    2427}
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r139 r145  
    55/**
    66 * This domain class describes the subjects in a study.
     7 *
     8 * Revision information:
     9 * $Rev$
     10 * $Author$
     11 * $Date$
    712 */
    8 class Subject {
     13class Subject implements Serializable {
    914        static searchable = true
    1015        String name
     
    1621
    1722        static hasMany = [
    18                 templateStringFields : String, // stores both STRING and STRINGLIST items (latter should be checked against the list)
    19                 templateIntegerFields : int,
    20                 templateFloatFields : float,
    21                 templateTermFields : Term
     23                templateStringFields: String, // stores both STRING and STRINGLIST items (latter should be checked against the list)
     24                templateIntegerFields: int,
     25                templateFloatFields: float,
     26                templateTermFields: Term
    2227        ]
    23        
     28
    2429        static constraints = {
    2530        }
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy

    r136 r145  
    33/**
    44 * This is the superclass for template fields. Normally, this class will not be instantiated.
     5 *
     6 * Revision information:
     7 * $Rev$
     8 * $Author$
     9 * $Date$
    510 */
    6 abstract class TemplateField {
    7     String name
    8     TemplateFieldType type
    9     String unit
     11abstract class TemplateField implements Serializable {
     12        String name
     13        TemplateFieldType type
     14        String unit
    1015
    11     static constraints = {
    12             name(unique:true)
    13             unit(nullable:true, blank:true)
    14     }
     16        static constraints = {
     17                name(unique: true)
     18                unit(nullable: true, blank: true)
     19        }
    1520
    1621        def String toString() {
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateFieldType.groovy

    r139 r145  
    33/**
    44 * Enum describing the type of a templated field.
     5 * Revision information:
     6 * $Rev$
     7 * $Author$
     8 * $Date$
    59 */
    610public enum TemplateFieldType {
    7     STRING('String'),
    8     INTEGER('Integer number'),
    9     FLOAT('Decimal number'),
    10     STRINGLIST('List of items'),
    11     ONTOLOGYTERM('Ontology Reference')
     11        STRING('String'),
     12        INTEGER('Integer number'),
     13        FLOAT('Decimal number'),
     14        STRINGLIST('List of items'),
     15        ONTOLOGYTERM('Ontology Reference')
    1216
    13     String name
     17        String name
    1418
    15     TemplateFieldType(String name) {
    16      this.name = name
    17     }
     19        TemplateFieldType(String name) {
     20                this.name = name
     21        }
    1822
    19     static list() {
    20      [STRING, INTEGER, FLOAT, STRINGLIST, ONTOLOGYTERM]
    21     }
     23        static list() {
     24                [STRING, INTEGER, FLOAT, STRINGLIST, ONTOLOGYTERM]
     25        }
    2226
    23   // It would be nice to see the description string in the scaffolding,
    24   // and the following works, but then the item cannot be saved properly.
    25   // TODO: find a way to display the enum description but save the enum value in the scaffolding
    26   /*def String toString() {
    27       return this.name
    28   }*/
    29 
     27        // It would be nice to see the description string in the scaffolding,
     28        // and the following works, but then the item cannot be saved properly.
     29        // TODO: find a way to display the enum description but save the enum value in the scaffolding
     30        /*
     31        def String toString() {
     32                  return this.name
     33        }
     34        */
    3035}
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateSubjectField.groovy

    r131 r145  
    33/**
    44 * Instances of this class describe an extra (template) field for the Subject entity.
     5 *
     6 * Revision information:
     7 * $Rev$
     8 * $Author$
     9 * $Date$
    510 */
    611class TemplateSubjectField extends TemplateField {
Note: See TracChangeset for help on using the changeset viewer.