Mercurial > hg > LGServices
comparison src/main/webapp/methods/getDataverseForm.jsp @ 28:cbc2c83022c7 dev_dataverse4
new: add dataverse level when publish which means users can have/publish their own dataverses and datasets
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 09 Sep 2015 17:04:01 +0200 |
parents | 3b3e2963c8f7 |
children | 9dbbbfd474f4 |
comparison
equal
deleted
inserted
replaced
27:3b3e2963c8f7 | 28:cbc2c83022c7 |
---|---|
4 <%@page import="java.util.List"%> | 4 <%@page import="java.util.List"%> |
5 <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" /> |
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 // List<Datasets> studies = DataverseUtils.getDatasets(sessionBean.getUser().getUserName(), sessionBean.getUser().getPassword()); |
10 List<Datasets> studies = DataverseUtils.getDatasetsInAllDataverse(sessionBean.getUser().getUserName(), sessionBean.getUser().getPassword()); | |
11 | |
10 System.out.println("%%%%% Studies: " + studies.size()); | 12 System.out.println("%%%%% Studies: " + studies.size()); |
11 | 13 |
12 if(studies.isEmpty()){ | 14 if(studies.isEmpty()){ |
13 %> | 15 %> |
14 | 16 |
26 | 28 |
27 | 29 |
28 <table class="pageTable"> | 30 <table class="pageTable"> |
29 <tbody> | 31 <tbody> |
30 <tr> | 32 <tr> |
33 <th><label class="tableTitle">Dataverse</label></th> | |
34 <!-- | |
31 <th><label class="tableTitle">Dataset ID</label></th> | 35 <th><label class="tableTitle">Dataset ID</label></th> |
32 <th><label class="tableTitle">Title</label></th> | 36 --> |
37 <th><label class="tableTitle">Dataset</label></th> | |
33 <th><label class="tableTitle">Created</label></th> | 38 <th><label class="tableTitle">Created</label></th> |
34 <th><label class="tableTitle">State</label></th> | 39 <th><label class="tableTitle">State</label></th> |
35 <th><label class="tableTitle">Dataverse</label></th> | |
36 <th><label class="tableTitle">Version</label></th> | 40 <th><label class="tableTitle">Version</label></th> |
37 <th><label class="tableTitle">Publish</label></th> | 41 <th><label class="tableTitle">Publish</label></th> |
38 <!-- | 42 <!-- |
39 <th><label class="tableTitle">Release Date</label></th> | 43 <th><label class="tableTitle">Release Date</label></th> |
40 | |
41 <th><label class="tableTitle">Last Updated</label></th> | 44 <th><label class="tableTitle">Last Updated</label></th> |
42 --> | |
43 | |
44 <!-- | |
45 <th><label class="tableTitle">Number of Files </label></th> | 45 <th><label class="tableTitle">Number of Files </label></th> |
46 --> | 46 --> |
47 </tr> | 47 </tr> |
48 </tbody> | 48 </tbody> |
49 <% | 49 <% |
50 for(Datasets study : studies){ | 50 for(Datasets study : studies){ |
51 %> | 51 %> |
52 | 52 |
53 <tr> | 53 <tr> |
54 <td><%= study.getId()%></td> | 54 <!-- <td>Chinese Local Gazetteers </td> --> |
55 <td><%= study.getDvIdInDataverse() %></td> | |
56 | |
57 <!-- <td><%= study.getId()%></td> | |
58 --> | |
55 <td><%= study.getTitle() %></td> | 59 <td><%= study.getTitle() %></td> |
56 <td><%= study.getCreateTime() %></td> | 60 <td><%= study.getCreateTime() %></td> |
57 <td><%= study.getVersionState().toLowerCase() %></td> | 61 <td><%= study.getVersionState().toLowerCase() %></td> |
58 <td>Chinese Local Gazetteers </td> | 62 |
59 <td><%= study.getVersion() %></td> | 63 <td><%= study.getVersion() %></td> |
60 <td> | 64 <td> |
61 <input type="image" | 65 <input type="image" |
62 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationPublish() %> setAction0('publishFile', 'dataverseForm', 'datasetId', '<%=study.getId() %>');" | 66 onclick="<%=sessionBean.getApplicationBean().getJSConfirmationPublish() %> setAction0('publishFile', 'dataverseForm', 'datasetId', '<%=study.getId() %>');" |
63 src="<%=sessionBean.getApplicationBean().getPublishImage()%>"/> | 67 src="<%=sessionBean.getApplicationBean().getPublishImage()%>"/> |