comparison src/main/webapp/methods/getDataverseForm.jsp @ 27:3b3e2963c8f7 dev_dataverse4

new: rewrite LGServices for LGDataverse with the new dataverse, dataverse4.0
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 08 Sep 2015 16:33:31 +0200
parents 3e62083dbcbf
children cbc2c83022c7
comparison
equal deleted inserted replaced
26:ce2e3f2814c0 27:3b3e2963c8f7
1 <%@page import="de.mpiwg.gazetteer.dataverse.DataverseUtils"%> 1 <%@page import="de.mpiwg.gazetteer.dataverse.DataverseUtils"%>
2 <%@page import="de.mpiwg.gazetteer.dataverse.bo.Study"%> 2 <%@page import="de.mpiwg.gazetteer.dataverse.bo.Study"%>
3 <%@page import="de.mpiwg.gazetteer.dataverse.bo.Datasets"%>
3 <%@page import="java.util.List"%> 4 <%@page import="java.util.List"%>
4 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> 5 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" />
5 <% 6 <%
6 7
7 8 //List<Study> studies = DataverseUtils.getStudies(sessionBean.getUser().getUserName(), sessionBean.getUser().getPassword());
8 List<Study> studies = DataverseUtils.getStudies(sessionBean.getUser().getUserName(), sessionBean.getUser().getPassword()); 9 List<Datasets> studies = DataverseUtils.getDatasets(sessionBean.getUser().getUserName(), sessionBean.getUser().getPassword());
9 System.out.println("%%%%% Studies: " + studies.size()); 10 System.out.println("%%%%% Studies: " + studies.size());
10 11
11 if(studies.isEmpty()){ 12 if(studies.isEmpty()){
12 %> 13 %>
13 14
25 26
26 27
27 <table class="pageTable"> 28 <table class="pageTable">
28 <tbody> 29 <tbody>
29 <tr> 30 <tr>
30 <th><label class="tableTitle">Study Global ID</label></th> 31 <th><label class="tableTitle">Dataset ID</label></th>
31 <th><label class="tableTitle">Title</label></th> 32 <th><label class="tableTitle">Title</label></th>
32 <th><label class="tableTitle">Creator</label></th>
33 <th><label class="tableTitle">Created</label></th> 33 <th><label class="tableTitle">Created</label></th>
34 <th><label class="tableTitle">Status</label></th> 34 <th><label class="tableTitle">State</label></th>
35 <th><label class="tableTitle">Dataverse</label></th> 35 <th><label class="tableTitle">Dataverse</label></th>
36 <th><label class="tableTitle">Version</label></th>
36 <th><label class="tableTitle">Publish</label></th> 37 <th><label class="tableTitle">Publish</label></th>
37 <!-- 38 <!--
38 <th><label class="tableTitle">Release Date</label></th> 39 <th><label class="tableTitle">Release Date</label></th>
39 <th><label class="tableTitle">Version</label></th> 40
40 <th><label class="tableTitle">Last Updated</label></th> 41 <th><label class="tableTitle">Last Updated</label></th>
41 --> 42 -->
42 43
43 <!-- 44 <!--
44 <th><label class="tableTitle">Number of Files </label></th> 45 <th><label class="tableTitle">Number of Files </label></th>
45 --> 46 -->
46 </tr> 47 </tr>
47 </tbody> 48 </tbody>
48 <% 49 <%
49 for(Study study : studies){ 50 for(Datasets study : studies){
50 %> 51 %>
51 52
52 <tr> 53 <tr>
53 <td><%= study.getGlobalId()%></td> 54 <td><%= study.getId()%></td>
54 <td><%= study.getTitle() %></td> 55 <td><%= study.getTitle() %></td>
55 <td><%= study.getCreator() %></td>
56 <td><%= study.getCreateTime() %></td> 56 <td><%= study.getCreateTime() %></td>
57 <td><%= study.getStatus() %></td> 57 <td><%= study.getVersionState().toLowerCase() %></td>
58 <td><%= study.getDataverse().getName() %></td> 58 <td>Chinese Local Gazetteers </td>
59 <td><%= study.getVersion() %></td>
59 <td> 60 <td>
60 <input type="image" 61 <input type="image"
61 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationPublish() %> setAction0('publishFile', 'dataverseForm', 'studyGlobalId', '<%=study.getGlobalId() %>');" 62 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationPublish() %> setAction0('publishFile', 'dataverseForm', 'datasetId', '<%=study.getId() %>');"
62 src="<%=sessionBean.getApplicationBean().getPublishImage()%>"/> 63 src="<%=sessionBean.getApplicationBean().getPublishImage()%>"/>
63 </td> 64 </td>
64 </tr> 65 </tr>
65 66
66 <% 67 <%