Project

General

Profile

1 3404 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 3426 leinfelder
        	<title>SANParks - South African National Park Data Repository</title>
15 3672 leinfelder
        	<link rel="stylesheet" type="text/css" href="@systemidserver@@style-skins-path@/sanparks/sanparks.css"/>
16 3404 leinfelder
        </head>
17 3426 leinfelder
        <body style="background: #FFFFFF;">
18 3404 leinfelder
            <jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView"/>
19
            <jsp:setProperty name="clientViewBean" property="*"/>
20
21 3426 leinfelder
            <h2>Delete Data Packages</h2>
22
23 3404 leinfelder
            <jsp:scriptlet>
24
                clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
25
                clientViewHelper.clientRequest(request, response);
26
                if (clientViewHelper.isLoggedIn()) {
27
            </jsp:scriptlet>
28 3426 leinfelder
29
            <table>
30 3404 leinfelder
                <tr>
31
                    <td colspan="3">
32 3426 leinfelder
                        <h3>Search</h3>
33
                        <p class="regtext">
34
                        	Retrieve a list of existing FGDC data packages for a specified scope.
35
                        </p>
36 3404 leinfelder
                        <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 3426 leinfelder
                                <jsp:attribute name="value">
43
                                	<jsp:getProperty name="clientViewBean" property="sessionid"/>
44
                                </jsp:attribute>
45 3404 leinfelder
                            </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 3426 leinfelder
                                    <jsp:attribute name="value">
52
                                    	<jsp:getProperty name="clientViewBean" property="username"/>
53
                                    </jsp:attribute>
54 3404 leinfelder
                                    <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 3426 leinfelder
                 <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 3404 leinfelder
                <tr>
75 3426 leinfelder
                    <td>
76 3404 leinfelder
                        <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 3426 leinfelder
                                <jsp:attribute name="value">
81
                                	<jsp:getProperty name="clientViewBean" property="sessionid"/>
82
                                </jsp:attribute>
83 3404 leinfelder
                            </jsp:element>
84
                            <jsp:expression>clientViewBean.getMessage(ClientView.SELECT_MESSAGE)</jsp:expression>
85 3426 leinfelder
86 3404 leinfelder
                            <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 3426 leinfelder
								<jsp:expression>clientViewBean.getMessage(ClientView.DELETE_MESSAGE)</jsp:expression>
96 3404 leinfelder
                            <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 3426 leinfelder
	            <span class="regtext">
109
	                You must be logged into your user account before deleting a data set.
110
	            </span>
111 3404 leinfelder
            <jsp:scriptlet>
112
                }
113
            </jsp:scriptlet>
114 3426 leinfelder
115 3404 leinfelder
            <p class="regtext">
116
                <form action="SaeonLogin.jspx">
117 3426 leinfelder
                    <input name="action" type="submit" value="Back" class="button_login"/>
118 3404 leinfelder
                </form>
119
            </p>
120 3426 leinfelder
121 3404 leinfelder
            <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>