" type="text/css"/>

Query results

${search.getNumResults()} studystudies found
<% def resultFields = search.getShowableResultFields(); def extraFields = search.getShowableResultFieldNames(resultFields); %>
Title Code Subjects Events Assays ${fieldName}
<% /* The value of this checkbox will be moved to the form (under this table) with javascript. This way the user can select items from multiple pages of the paginated result list correctly. See also http://datatables.net/examples/api/form.html and advancedQueryResults.js */ %> ${fieldValue(bean: studyInstance, field: "title")} ${fieldValue(bean: studyInstance, field: "code")} - , <%=studyInstance.subjects.findAll { return it.species == currentSpecies; }.size()%> ${currentSpecies} - ${studyInstance.giveEventTemplates().name.join(', ')} - ${studyInstance.assays.module.platform.unique().join(', ')} <% def fieldValue = resultFields[ studyInstance.id ]?.get( fieldName ); if( fieldValue ) { if( fieldValue instanceof Collection ) { fieldValue = fieldValue.collect { it.toString() }.findAll { it }.unique().join( ', ' ); } else { fieldValue = fieldValue.toString(); } } else { fieldValue = ""; } %> ${fieldValue}