Changeset 63


Ignore:
Timestamp:
Dec 14, 2009, 10:48:04 AM (13 years ago)
Author:
ademcan
Message:

Parsing and Loading information from an IDF file (MageTab?). Actually working for Person, Publication and Protocol attributs.
The file path has to be changed for every user in LoadController?.groovy

Location:
trunk
Files:
12 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/magetab/idf/Person.groovy

    r56 r63  
    77    String midInitials
    88    String email
     9    String fax
    910    String phone
    1011    String address
    1112    String affiliation
     13    String roles
     14    String roles_ref
    1215
    1316    static hasMany = [
     
    1619
    1720    static constraints = {
     21        lastName(nullable:true,blank:true)
     22        firstName(nullable:true,blank:true)
     23        midInitials(nullable:true,blank:true)
     24        email(nullable:true,blank:true)
     25        fax(nullable:true,blank:true)
     26        phone(nullable:true,blank:true)
     27        affiliation(nullable:true,blank:true)
     28        roles(nullable:true,blank:true)
     29        roles_ref(nullable:true,blank:true)
     30        address(nullable:true,blank:true)
    1831    }
    1932}
  • trunk/grails-app/domain/magetab/idf/Protocol.groovy

    r56 r63  
    88    String hardware
    99    OntologyTerm type
     10    String parameters
     11    String contact
    1012
    1113    static hasMany = [
     
    1416
    1517    static constraints = {
    16         type(nullable: true)
     18        type(nullable: true,blank:true)
     19        name(nullable:true,blank:true)
     20        description(nullable:true,blank:true)
     21        software(nullable:true,blank:true)
     22        hardware(nullable:true,blank:true)
     23        parameters(nullable:true,blank:true)
     24        contact(nullable:true,blank:true)
    1725    }
    1826}
  • trunk/grails-app/domain/magetab/idf/Publication.groovy

    r56 r63  
    1313
    1414    static constraints = {
    15         status(nullable: true)
     15        status(nullable:true,blank:true)
     16        title(nullable:true,blank:true)
     17        pubMedID(nullable:true,blank:true)
     18        DOI(nullable:true,blank:true)
    1619    }
    1720}
  • trunk/grails-app/views/common/_topnav.gsp

    r41 r63  
    33    <ul class="topnav">
    44      <li><g:link url="/${meta(name: 'app.name')}/">Home</g:link></li>
     5    <li><g:link controller="load" action="index">Loading data</g:link></li>
    56      <li><g:link controller="query" action="index">Query database</g:link></li>
    67<n:isLoggedIn>
Note: See TracChangeset for help on using the changeset viewer.