Changeset 73
- Timestamp:
- Jun 24, 2011, 3:26:20 PM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 1 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/config-development.properties
r52 r73 20 20 gscf.baseURL=http://localhost:8080/gscf 21 21 massSequencing.consumerID=http://localhost:8184/massSequencing 22 massSequencing.synchronization= false22 massSequencing.synchronization=true 23 23 24 24 # File uploads -
trunk/grails-app/controllers/nl/tno/massSequencing/AssaySampleController.groovy
r71 r73 126 126 def processId = params.processId; 127 127 128 // Export the sequences and quality scores 129 response.setHeader "Content-disposition", "attachment; filename=" + session.process[ processId ].name + ".zip" 128 // Retrieve the file 129 def file = fileService.get( session.process[ processId ].filename ); 130 130 131 try { 131 response.outputStream << fileService.get( session.process[ processId ].filename ).newInputStream(); 132 // Send the file to the user 133 response.setHeader "Content-disposition", "attachment; filename=" + session.process[ processId ].name + ".zip" 134 response.setHeader "Content-Length", file.size().toString(); 135 136 response.outputStream << file.newInputStream(); 132 137 response.outputStream.flush(); 133 138 } catch( Exception e ) { -
trunk/grails-app/controllers/nl/tno/massSequencing/files/FileController.groovy
r72 r73 127 127 // Return the file 128 128 response.setHeader "Content-disposition", "attachment; filename=${filename}" 129 response.setHeader "Content-Length", file.size().toString() 129 130 response.outputStream << file.newInputStream() 130 131 response.outputStream.flush() -
trunk/grails-app/controllers/nl/tno/massSequencing/query/QueryController.groovy
r67 r73 383 383 384 384 // Copy value 385 if( formCriterion.factor .isDouble() )385 if( formCriterion.factor?.isDouble() ) 386 386 criterion.factor = Double.parseDouble( formCriterion.factor ); 387 387 -
trunk/grails-app/services/nl/tno/massSequencing/FastaService.groovy
r72 r73 811 811 812 812 // Export an excel file with information about the classification samples 813 zipFile.putNextEntry( new ZipEntry( name + " classification.summary" ) );813 zipFile.putNextEntry( new ZipEntry( name + ".classification.summary" ) ); 814 814 classificationService.exportClassifications( assaySamples, zipFile ); 815 815 zipFile.flush(); -
trunk/grails-app/services/nl/tno/massSequencing/integration/SynchronizationService.groovy
r67 r73 497 497 498 498 a.save() 499 499 500 501 // Remove authorization from other users 502 if( study.isDirty ) 503 Auth.executeUpdate( "DELETE FROM Auth WHERE study = :study AND user <> :user", [ 'study': study, 'user': user ] ) 504 500 505 return a 501 506 } -
trunk/grails-app/views/classification/percentageClassified.gsp
r62 r73 43 43 </form> 44 44 <p class="options"> 45 <a class="fasta" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="assaySample" action="exportAsFasta" />' ); return false;">Export as fasta</a>46 45 <a class="classification" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="classification" action="show" />' ); return false;">Show classification</a> 46 <a class="fasta" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="assaySample" action="exportAsFasta" />' ); return false;">Export all data</a> 47 47 <a class="classification_export" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="classification" action="export" />' ); return false;">Export classification</a> 48 48 <a class="back" href="${returnUrl}">Return to ${entityType}</a> -
trunk/grails-app/views/classification/show.gsp
r63 r73 95 95 </form> 96 96 <p class="options"> 97 <a class="fasta" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="assaySample" action="exportAsFasta" />' ); return false;">Export as fasta</a>98 97 <a class="classification_percentage" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="classification" action="percentageClassified" />' ); return false;">Percentage classified</a> 98 <a class="fasta" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="assaySample" action="exportAsFasta" />' ); return false;">Export all data</a> 99 99 <a class="classification_export" href="#" onClick="submitFormAbsoluteUrl( $( '#sampleForm' ), '<g:createLink controller="classification" action="export" />' ); return false;">Export classification</a> 100 100 <a class="back" href="${returnUrl}">Return to ${entityType}</a>
Note: See TracChangeset
for help on using the changeset viewer.