Ignore:
Timestamp:
Nov 15, 2010, 8:25:49 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • added ability to add new ontologies in the "missing properties" step
File:
1 edited

Legend:

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

    r1126 r1140  
    144144
    145145    /**
    146      * Method to save the missing properties
     146     * Method to save the missing properties.
     147     *
    147148     * @param entity entity class we are using (dbnp.studycapturing.Subject etc.)
    148149     */
    149150
    150151    def saveMissingProperties = {
    151 
     152       
    152153        session.importer_importeddata.each { table ->
    153154            table.each { entity ->
     
    158159        }
    159160
    160         render(view:"step3", model:[datamatrix:session.importer_importeddata]) 
     161        // a new ontology term was added, so stay at the current step otherwise go to the next step
     162        if (params.updatefield) render(view:"step3_simple", model:[datamatrix:session.importer_importeddata])
     163            else render(view:"step3", model:[datamatrix:session.importer_importeddata])
    161164    }
    162165
     
    340343        render templates as JSON
    341344    }
     345
     346    def refresh = {
     347       // params
     348    }
    342349}
Note: See TracChangeset for help on using the changeset viewer.