Changeset 1570
- Timestamp:
- Feb 25, 2011, 5:18:49 PM (11 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BaseFilters.groovy
r1436 r1570 41 41 afterView = { 42 42 def actionDuration = request._timeAfterRequest ? request._timeAfterRequest - request._timeBeforeRequest : 0 43 def viewDuration = System.currentTimeMillis() - request._timeAfterRequest43 def viewDuration = request._timeAfterRequest ? System.currentTimeMillis() - request._timeAfterRequest : 0 44 44 log.info("Timer: ${controllerName}(${actionDuration}ms)::${actionName}(${viewDuration}ms)") 45 45 } -
trunk/grails-app/controllers/RestController.groovy
r1512 r1570 346 346 347 347 assays.each{ assay -> 348 if (assay.module .url.equals(params.consumer)) {348 if (assay.module?.url && assay.module.url.equals(params.consumer)) { 349 349 if(assay) { 350 350 def map = [assayToken : assay.giveUUID()] -
trunk/grails-app/controllers/dbnp/studycapturing/PublicationController.groovy
r1565 r1570 34 34 35 35 // Check whether the autorsList is not too long. If it is, split it 36 println "authors length: " + publication.authorsList.size()37 36 if( publication.authorsList.size() > 255 ) { 38 37 def postfix = " et al."; 39 38 def split = publication.authorsList[ 0..255 - postfix.size()].lastIndexOf( ", " ); 40 39 publication.authorsList = publication.authorsList[ 0..split-1] + postfix; 41 42 println "new authors list: " + publication.authorsList.size() + " - " + publication.authorsList43 40 } 44 41 … … 173 170 174 171 // Check whether the autorsList is not too long. If it is, split it 175 println "authors length: " + publication.authorsList.size()176 172 if( publication.authorsList.size() > 255 ) { 177 173 def postfix = " et al."; 178 174 def split = publication.authorsList[ 0..255 - postfix.size()].lastIndexOf( ", " ); 179 175 publication.authorsList = publication.authorsList[ 0..split-1] + postfix; 180 181 println "new authors list: " + publication.authorsList.size() + " - " + publication.authorsList182 176 } 183 177 -
trunk/grails-app/views/study/show_assays.gsp
r1526 r1570 29 29 <td>${assay.token}</td> 30 30 <td>${assay.name}</td> 31 <td>${assay.module .name}</td>32 <td>${assay.module .platform}</td>31 <td>${assay.module?.name}</td> 32 <td>${assay.module?.platform}</td> 33 33 <td> 34 34 <g:if test="${assay.module.openInFrame == null || assay.module.openInFrame == Boolean.TRUE}">
Note: See TracChangeset
for help on using the changeset viewer.