Ignore:
Timestamp:
May 20, 2010, 5:02:22 PM (12 years ago)
Author:
roberth
Message:

Improved study list, study detail view and study comparison. Also improved performance issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/StudyController.groovy

    r397 r453  
    5757    }
    5858
     59    /**
     60     * Shows a comparison of multiple studies using the show view
     61     *
     62     *
     63     */
    5964    def list_extended = {
     65       
    6066        params.max = Math.min(params.max ? params.int('max') : 10, 100)
    61         [studyList: Study.list(params), studyInstanceTotal: Study.count()]
     67       
     68        render(view:'show',model:[studyList: Study.list(params), studyInstanceTotal: Study.count() ] )
    6269    }
    6370
     
    8087
    8188    def show = {
     89
    8290        def studyInstance = Study.get(params.id)
    8391        if (!studyInstance) {
     
    8694        }
    8795        else {
    88             [studyInstance: studyInstance]
     96            // The study instance is packed into an array, to be able to
     97            // use the same view for showing the study and comparing multiple
     98            // studies
     99            [studyList: [ studyInstance ] ]
    89100        }
    90101    }
Note: See TracChangeset for help on using the changeset viewer.