Mercurial > hg > LGServices
comparison src/main/webapp/methods/getDataverseForm.jsp @ 0:3e62083dbcbf
First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
| author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
|---|---|
| date | Thu, 23 Apr 2015 15:46:01 +0200 |
| parents | |
| children | 3b3e2963c8f7 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:3e62083dbcbf |
|---|---|
| 1 <%@page import="de.mpiwg.gazetteer.dataverse.DataverseUtils"%> | |
| 2 <%@page import="de.mpiwg.gazetteer.dataverse.bo.Study"%> | |
| 3 <%@page import="java.util.List"%> | |
| 4 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> | |
| 5 <% | |
| 6 | |
| 7 | |
| 8 List<Study> studies = DataverseUtils.getStudies(sessionBean.getUser().getUserName(), sessionBean.getUser().getPassword()); | |
| 9 System.out.println("%%%%% Studies: " + studies.size()); | |
| 10 | |
| 11 if(studies.isEmpty()){ | |
| 12 %> | |
| 13 | |
| 14 <label>The system does not find studies for the user <%= sessionBean.getUser().getUserName()%>.</label> | |
| 15 | |
| 16 <% | |
| 17 } else { | |
| 18 %> | |
| 19 | |
| 20 <form name="dataverseForm" | |
| 21 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" | |
| 22 method="post"> | |
| 23 <input name="bean" type="hidden" value="branchBean" /> | |
| 24 <input name="fileId" type="hidden" value="<%=request.getParameter("fileId") %>" /> | |
| 25 | |
| 26 | |
| 27 <table class="pageTable"> | |
| 28 <tbody> | |
| 29 <tr> | |
| 30 <th><label class="tableTitle">Study Global ID</label></th> | |
| 31 <th><label class="tableTitle">Title</label></th> | |
| 32 <th><label class="tableTitle">Creator</label></th> | |
| 33 <th><label class="tableTitle">Created</label></th> | |
| 34 <th><label class="tableTitle">Status</label></th> | |
| 35 <th><label class="tableTitle">Dataverse</label></th> | |
| 36 <th><label class="tableTitle">Publish</label></th> | |
| 37 <!-- | |
| 38 <th><label class="tableTitle">Release Date</label></th> | |
| 39 <th><label class="tableTitle">Version</label></th> | |
| 40 <th><label class="tableTitle">Last Updated</label></th> | |
| 41 --> | |
| 42 | |
| 43 <!-- | |
| 44 <th><label class="tableTitle">Number of Files </label></th> | |
| 45 --> | |
| 46 </tr> | |
| 47 </tbody> | |
| 48 <% | |
| 49 for(Study study : studies){ | |
| 50 %> | |
| 51 | |
| 52 <tr> | |
| 53 <td><%= study.getGlobalId()%></td> | |
| 54 <td><%= study.getTitle() %></td> | |
| 55 <td><%= study.getCreator() %></td> | |
| 56 <td><%= study.getCreateTime() %></td> | |
| 57 <td><%= study.getStatus() %></td> | |
| 58 <td><%= study.getDataverse().getName() %></td> | |
| 59 <td> | |
| 60 <input type="image" | |
| 61 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationPublish() %> setAction0('publishFile', 'dataverseForm', 'studyGlobalId', '<%=study.getGlobalId() %>');" | |
| 62 src="<%=sessionBean.getApplicationBean().getPublishImage()%>"/> | |
| 63 </td> | |
| 64 </tr> | |
| 65 | |
| 66 <% | |
| 67 } | |
| 68 %> | |
| 69 </table> | |
| 70 </form> | |
| 71 <% | |
| 72 } | |
| 73 %> |
