Ignore:
Timestamp:
Jan 21, 2011, 7:37:02 PM (10 years ago)
Author:
work@…
Message:
  • Resolved part of improvement #225
  • refactored the template model out of GSCF into the GDT (Grails Domain Templates) plugin version 0.0.1
  • still work needs to be done (move template editor into gdt, etcetera)
  • fix template owner
  • some methods are missing from Template, but most of it works
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1422 r1426  
    11package dbnp.importer
    22
    3 import dbnp.studycapturing.Study
    4 import dbnp.studycapturing.Subject
    5 import dbnp.studycapturing.Sample
    6 import dbnp.studycapturing.Event
    7 import dbnp.studycapturing.Template
    8 
     3import dbnp.studycapturing.*
     4import nl.grails.plugins.gdt.*
    95import org.apache.poi.ss.usermodel.Workbook
    10 
    116import grails.converters.JSON
    127import cr.co.arquetipos.crypto.Blowfish
    13 
    148import org.codehaus.groovy.grails.plugins.web.taglib.ValidationTagLib
    15 
    169import grails.plugins.springsecurity.Secured
    17 
    1810import org.hibernate.SessionFactory
    1911
     
    446438                                entity.giveFields().each { field ->
    447439                                        // field of type ontology and value "#invalidterm"?
    448                                         if (field.type == dbnp.studycapturing.TemplateFieldType.ONTOLOGYTERM &&
     440                                        if (field.type == nl.grails.plugins.gdt.TemplateFieldType.ONTOLOGYTERM &&
    449441                                                params["entity_" + entity.getIdentifier() + "_" + field.escapedName()] == "#invalidterm"
    450442                                        ) {
    451443                                                invalidontologies++
    452444                                        } else
    453                                         if (field.type == dbnp.studycapturing.TemplateFieldType.ONTOLOGYTERM &&
     445                                        if (field.type == nl.grails.plugins.gdt.TemplateFieldType.ONTOLOGYTERM &&
    454446                                                params["entity_" + entity.getIdentifier() + "_" + field.escapedName()] != "#invalidterm") {
    455447                                                removeFailedCell(flow.importer_failedcells, entity)
Note: See TracChangeset for help on using the changeset viewer.