Changeset 1791
- Timestamp:
- Apr 27, 2011, 12:10:16 PM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r1669 r1791 84 84 * @see dbnp.studycapturing.Sample 85 85 */ 86 TemplateEntity.getField(Subject.domainFields, 'species').ontologies = [Ontology.getOrCreateOntologyByNcboId(1132)] 87 TemplateEntity.getField(Sample.domainFields, 'material').ontologies = [Ontology.getOrCreateOntologyByNcboId(1005)] 86 TemplateEntity.getField(Subject.domainFields, 'species').ontologies = [ 87 Ontology.getOrCreateOntologyByNcboId(1132), // NCBI Organismal Classification 88 Ontology.getOrCreateOntologyByNcboId(1069) // Environmental Ontology 89 ] 90 TemplateEntity.getField(Sample.domainFields, 'material').ontologies = [ 91 Ontology.getOrCreateOntologyByNcboId(1005) // BRENDA Tissue / enzyme source 92 ] 88 93 } 89 94 -
trunk/grails-app/views/studyWizard/pages/_subjects.gsp
r1461 r1791 14 14 * $Date$ 15 15 */ 16 17 def speciesOntologies = dbnp.studycapturing.Subject.giveDomainFields().find { it.name == 'species' }.ontologies.collect { it.ncboId } 16 18 %> 17 19 <af:page> … … 31 33 The species of the subjects you would like to add to your study 32 34 </af:termElement> 33 <af:templateElement name="template" description="with template" value="${values?.template}" error="template" entity="${dbnp.studycapturing.Subject}" ontologies=" 1132" addDummy="true">35 <af:templateElement name="template" description="with template" value="${values?.template}" error="template" entity="${dbnp.studycapturing.Subject}" ontologies="${speciesOntologies.join( ',' )}" addDummy="true"> 34 36 The template to use for these subjects 35 37 </af:templateElement>
Note: See TracChangeset
for help on using the changeset viewer.