1 |
3640
|
leinfelder
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
|
3 |
|
|
|
4 |
|
|
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
|
5 |
|
|
<jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientViewHelper"/>
|
6 |
|
|
<jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientView"/>
|
7 |
|
|
|
8 |
|
|
<jsp:declaration>
|
9 |
|
|
private ClientViewHelper clientViewHelper;
|
10 |
|
|
</jsp:declaration>
|
11 |
|
|
|
12 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
13 |
|
|
<head>
|
14 |
|
|
<title>SAEON - South African Environmental Observation Network Repository</title>
|
15 |
|
|
<link href="saeon.css" rel="stylesheet" type="text/css" />
|
16 |
|
|
</head>
|
17 |
|
|
<body style="background: #FFFFFF;">
|
18 |
|
|
<jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView"/>
|
19 |
|
|
<jsp:setProperty name="clientViewBean" property="*"/>
|
20 |
|
|
|
21 |
|
|
<h2>Delete Data Packages</h2>
|
22 |
|
|
|
23 |
|
|
<jsp:scriptlet>
|
24 |
|
|
clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
|
25 |
|
|
clientViewHelper.clientRequest(request, response);
|
26 |
|
|
if (clientViewHelper.isLoggedIn()) {
|
27 |
|
|
</jsp:scriptlet>
|
28 |
|
|
|
29 |
|
|
<table>
|
30 |
|
|
<tr>
|
31 |
|
|
<td colspan="3">
|
32 |
|
|
<h3>Search</h3>
|
33 |
|
|
<p class="regtext">
|
34 |
|
|
Retrieve a list of existing FGDC data packages for a specified scope.
|
35 |
|
|
</p>
|
36 |
|
|
<form name="scopeForm" method="post" action="SaeonDelete.jspx">
|
37 |
|
|
<input name="returnfield" type="hidden" value="distinfo/stdorder/digform/digtopt/onlinopt/computer/networka/networkr"/>
|
38 |
|
|
<input name="pathExpr" type="hidden" value="/metadata/distinfo/resdesc"/>
|
39 |
|
|
<jsp:element name="input">
|
40 |
|
|
<jsp:attribute name="name">sessionid</jsp:attribute>
|
41 |
|
|
<jsp:attribute name="type">hidden</jsp:attribute>
|
42 |
|
|
<jsp:attribute name="value">
|
43 |
|
|
<jsp:getProperty name="clientViewBean" property="sessionid"/>
|
44 |
|
|
</jsp:attribute>
|
45 |
|
|
</jsp:element>
|
46 |
|
|
<p class="regtext">
|
47 |
|
|
<!-- Set the pathValue to the username (the scope) -->
|
48 |
|
|
<jsp:element name="input">
|
49 |
|
|
<jsp:attribute name="name">pathValue</jsp:attribute>
|
50 |
|
|
<jsp:attribute name="type">text</jsp:attribute>
|
51 |
|
|
<jsp:attribute name="value">
|
52 |
|
|
<jsp:getProperty name="clientViewBean" property="username"/>
|
53 |
|
|
</jsp:attribute>
|
54 |
|
|
<jsp:attribute name="size">14</jsp:attribute>
|
55 |
|
|
</jsp:element>
|
56 |
|
|
<input name="action" value="Scope" type="submit" class="button_login"/>
|
57 |
|
|
</p>
|
58 |
|
|
</form>
|
59 |
|
|
|
60 |
|
|
</td>
|
61 |
|
|
</tr>
|
62 |
|
|
|
63 |
|
|
<jsp:scriptlet>
|
64 |
|
|
if (clientViewBean.getMessage(ClientView.SELECT_MESSAGE) != null) {
|
65 |
|
|
</jsp:scriptlet>
|
66 |
|
|
<tr>
|
67 |
|
|
<td>
|
68 |
|
|
<h3>Delete</h3>
|
69 |
|
|
<p class="regtext">
|
70 |
|
|
Caution: Removes records from metacat server and, if a metadata Doc Id, any associated Doc Id records.
|
71 |
|
|
</p>
|
72 |
|
|
</td>
|
73 |
|
|
</tr>
|
74 |
|
|
<tr>
|
75 |
|
|
<td>
|
76 |
|
|
<form name="deleteForm" method="post" action="SaeonDelete.jspx">
|
77 |
|
|
<jsp:element name="input">
|
78 |
|
|
<jsp:attribute name="name">sessionid</jsp:attribute>
|
79 |
|
|
<jsp:attribute name="type">hidden</jsp:attribute>
|
80 |
|
|
<jsp:attribute name="value">
|
81 |
|
|
<jsp:getProperty name="clientViewBean" property="sessionid"/>
|
82 |
|
|
</jsp:attribute>
|
83 |
|
|
</jsp:element>
|
84 |
|
|
<jsp:expression>clientViewBean.getMessage(ClientView.SELECT_MESSAGE)</jsp:expression>
|
85 |
|
|
|
86 |
|
|
<input name="action" type="submit" value="Delete" class="button_login"/>
|
87 |
|
|
</form>
|
88 |
|
|
|
89 |
|
|
</td>
|
90 |
|
|
</tr>
|
91 |
|
|
<tr>
|
92 |
|
|
<td>
|
93 |
|
|
<p class="regtext">
|
94 |
|
|
<jsp:scriptlet>if (clientViewBean.getMessage(ClientView.DELETE_MESSAGE) != null) {</jsp:scriptlet>
|
95 |
|
|
<jsp:expression>clientViewBean.getMessage(ClientView.DELETE_MESSAGE)</jsp:expression>
|
96 |
|
|
<jsp:scriptlet>}</jsp:scriptlet>
|
97 |
|
|
</p>
|
98 |
|
|
</td>
|
99 |
|
|
</tr>
|
100 |
|
|
<jsp:scriptlet>
|
101 |
|
|
}
|
102 |
|
|
</jsp:scriptlet>
|
103 |
|
|
</table>
|
104 |
|
|
|
105 |
|
|
<jsp:scriptlet>
|
106 |
|
|
} else {
|
107 |
|
|
</jsp:scriptlet>
|
108 |
|
|
<span class="regtext">
|
109 |
|
|
You must be logged into your user account before deleting a data set.
|
110 |
|
|
</span>
|
111 |
|
|
<jsp:scriptlet>
|
112 |
|
|
}
|
113 |
|
|
</jsp:scriptlet>
|
114 |
|
|
|
115 |
|
|
<p class="regtext">
|
116 |
|
|
<form action="SaeonLogin.jspx">
|
117 |
|
|
<input name="action" type="submit" value="Back" class="button_login"/>
|
118 |
|
|
</form>
|
119 |
|
|
</p>
|
120 |
|
|
|
121 |
|
|
<br/>DEBUG<br/>
|
122 |
|
|
action = <jsp:getProperty name="clientViewBean" property="action"/><br/>
|
123 |
|
|
qformat = <jsp:getProperty name="clientViewBean" property="qformat"/><br/>
|
124 |
|
|
anyfield = <jsp:getProperty name="clientViewBean" property="anyfield"/><br/>
|
125 |
|
|
username = <jsp:getProperty name="clientViewBean" property="username"/><br/>
|
126 |
|
|
organization = <jsp:getProperty name="clientViewBean" property="organization"/><br/>
|
127 |
|
|
</body>
|
128 |
|
|
</html>
|
129 |
|
|
|
130 |
|
|
</jsp:root>
|