Last change
on this file since 1213 was
1213,
checked in by robert@…, 12 years ago
|
Improved the study overview page such that the different tabs are loaded when needed. Also rewritten parts of the code. See ticket #155
|
File size:
934 bytes
|
Line | |
---|
1 | <% |
---|
2 | // Determine a list of all persons |
---|
3 | allPublications = studyList*.publications.flatten().unique() |
---|
4 | %> |
---|
5 | <g:if test="${allPublications?.size()==0}"> |
---|
6 | No publications attached to these studies |
---|
7 | </g:if> |
---|
8 | <g:else> |
---|
9 | <table> |
---|
10 | <tr> |
---|
11 | <thead> |
---|
12 | <th>Title</th> |
---|
13 | <th>Authors</th> |
---|
14 | <th>Comments</th> |
---|
15 | |
---|
16 | <g:if test="${multipleStudies}"> |
---|
17 | <g:each in="${studyList}" var="studyInstance"> |
---|
18 | <th>${studyInstance.title}</th> |
---|
19 | </g:each> |
---|
20 | </g:if> |
---|
21 | </thead> |
---|
22 | </tr> |
---|
23 | <g:each in="${allPublications}" var="publication" status="i"> |
---|
24 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
25 | <td>${publication.title}</td> |
---|
26 | <td> |
---|
27 | ${publication.authorsList} |
---|
28 | </td> |
---|
29 | <td>${publication.comments}</td> |
---|
30 | <g:if test="${multipleStudies}"> |
---|
31 | <g:each in="${studyList}" var="studyInstance"> |
---|
32 | <td> |
---|
33 | <g:if test="${publication in studyInstance.publications}"> |
---|
34 | x |
---|
35 | </g:if> |
---|
36 | </td> |
---|
37 | </g:each> |
---|
38 | </g:if> |
---|
39 | </tr> |
---|
40 | </g:each> |
---|
41 | </table> |
---|
42 | </g:else> |
---|
Note: See
TracBrowser
for help on using the repository browser.