Changeset 453 for trunk/grails-app/controllers
- Timestamp:
- May 20, 2010, 5:02:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/StudyController.groovy
r397 r453 57 57 } 58 58 59 /** 60 * Shows a comparison of multiple studies using the show view 61 * 62 * 63 */ 59 64 def list_extended = { 65 60 66 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() ] ) 62 69 } 63 70 … … 80 87 81 88 def show = { 89 82 90 def studyInstance = Study.get(params.id) 83 91 if (!studyInstance) { … … 86 94 } 87 95 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 ] ] 89 100 } 90 101 }
Note: See TracChangeset
for help on using the changeset viewer.