Revision 3426
Added by ben leinfelder over 17 years ago
lib/style/skins/sanparks/SaeonLogin.jspx | ||
---|---|---|
79 | 79 |
<td> |
80 | 80 |
|
81 | 81 |
<h2>Search for SANParks Data</h2> |
82 |
|
|
83 |
<p class="emphasis">Searching: |
|
84 |
<jsp:scriptlet> |
|
85 |
String organizationScope = request.getParameter("organizationScope"); |
|
86 |
if (organizationScope == null) { |
|
87 |
organizationScope = "%"; |
|
88 |
} |
|
89 |
if (!organizationScope.equals("%")) { |
|
90 |
</jsp:scriptlet> |
|
91 |
<jsp:expression>request.getParameter("organizationScope")</jsp:expression> |
|
92 |
<jsp:scriptlet> |
|
93 |
} |
|
94 |
else { |
|
95 |
</jsp:scriptlet> |
|
96 |
All Organizations |
|
97 |
<jsp:scriptlet> |
|
98 |
} |
|
99 |
</jsp:scriptlet> |
|
100 |
</p> |
|
101 |
|
|
82 | 102 |
<form name="searchform" method="post" action="../../../metacat" target="_top"> |
83 | 103 |
<jsp:include page="SimpleSearchMetacatPostFields.html" /> |
84 | 104 |
<jsp:element name="input"> |
lib/style/skins/sanparks/leftnav.jsp | ||
---|---|---|
1 |
|
|
2 | 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
3 | 2 |
<html> |
4 | 3 |
<head> |
... | ... | |
14 | 13 |
</tr> |
15 | 14 |
<tr class="leftnav" valign="top"> |
16 | 15 |
<td> |
17 |
Narrow your search |
|
18 |
<form> |
|
19 |
<select> |
|
20 |
<option>All SANParks</option> |
|
21 |
<option>Kruger National Park</option> |
|
22 |
<option>SAEON Nodes</option> |
|
23 |
</select> |
|
16 |
|
|
17 |
<form action="./SaeonLogin.jspx" method="get" target="iframeloginboxclass" name="orgForm"> |
|
18 |
<input name="organizationScope" type="hidden" value="%"> |
|
19 |
<table> |
|
20 |
<tr> |
|
21 |
<td> |
|
22 |
<div id="nav"> |
|
23 |
<ul class="level-1"> |
|
24 |
<li> |
|
25 |
Narrow your search |
|
26 |
<ul class="level-2"> |
|
27 |
<li><a href="#" onclick="orgForm.organizationScope.value='%';orgForm.submit();">All</a></li> |
|
28 |
<li><a href="#" onclick="orgForm.organizationScope.value='SANParks, South Africa';orgForm.submit();">All SANParks</a></li> |
|
29 |
<li><a href="#" onclick="orgForm.organizationScope.value='Kruger National Park, South Africa';orgForm.submit();">Kruger National Park</a></li> |
|
30 |
<!-- |
|
31 |
<option value="Addo National Park, South Africa">Addo National Park</option> |
|
32 |
<option value="Mapungubwe National Park, South Africa">Mapungubwe National Park</option> |
|
33 |
<option value="Marakele National Park, South Africa">Marakele National Park</option> |
|
34 |
<option value="Golden Gate National Park, South Africa">Golden Gate National Park</option> |
|
35 |
<option value="Karoo National Park, South Africa">Karoo National Park</option> |
|
36 |
<option value="Richtersveld National Park, South Africa">Richtersveld National Park</option> |
|
37 |
<option value="Wilderness National Park, South Africa">Wilderness National Park</option> |
|
38 |
<option value="Agulhas National Park, South Africa">Agulhas National Park</option> |
|
39 |
<option value="Bontebok National Park, South Africa">Bontebok National Park</option> |
|
40 |
<option value="Camdeboo National Park, South Africa">Camdeboo National Park</option> |
|
41 |
<option value="Knysna National Lake Area, South Africa">Knysna National Lake Area</option> |
|
42 |
<option value="Mokala National Park, South Africa">Mokala National Park</option> |
|
43 |
<option value="Mountain Zebra National Park, South Africa">Mountain Zebra National Park</option> |
|
44 |
<option value="Namaqua National Park, South Africa">Namaqua National Park</option> |
|
45 |
<option value="Table Mountain National Park, South Africa">Table Mountain National Park</option> |
|
46 |
<option value="Tankwa Karoo National Park, South Africa">Tankwa Karoo National Park</option> |
|
47 |
<option value="Tsitsikamma National Park, South Africa">Tsitsikamma National Park</option> |
|
48 |
<option value="West Coast National Park, South Africa">West Coast National Park</option> |
|
49 |
<option value="Augrabies Falls National Park, South Africa">Augrabies Falls National Park</option> |
|
50 |
<option value="SAEON, South Africa">SAEON</option> |
|
51 |
<option value="Ndlovu SAEON Node, South Africa">Ndlovu SAEON Node</option> |
|
52 |
<option value="Elwandle SAEON Node, South Africa">Elwandle SAEON Node</option> |
|
53 |
--> |
|
54 |
</ul> |
|
55 |
</li> |
|
56 |
</ul> |
|
57 |
</div> |
|
58 |
</td> |
|
59 |
</tr> |
|
60 |
</table> |
|
61 |
|
|
62 |
<!-- THIS IS A GOOD VERSION, BUT DROP DOWN CAN BE MISLEADING ON OTHER PAGES.... |
|
63 |
<form action="./SaeonLogin.jspx" method="get" target="iframeloginboxclass" name="nodeForm"> |
|
64 |
<table> |
|
65 |
<tr> |
|
66 |
<td> |
|
67 |
<select name="organizationScope" style="width: 160px;" > |
|
68 |
<option value="%">All</option> |
|
69 |
<option value="SANParks, South Africa">All SANParks</option> |
|
70 |
<option value="Kruger National Park, South Africa">Kruger National Park</option> |
|
71 |
<option value="Addo National Park, South Africa">Addo National Park</option> |
|
72 |
<option value="Mapungubwe National Park, South Africa">Mapungubwe National Park</option> |
|
73 |
<option value="Marakele National Park, South Africa">Marakele National Park</option> |
|
74 |
<option value="Golden Gate National Park, South Africa">Golden Gate National Park</option> |
|
75 |
<option value="Karoo National Park, South Africa">Karoo National Park</option> |
|
76 |
<option value="Richtersveld National Park, South Africa">Richtersveld National Park</option> |
|
77 |
<option value="Wilderness National Park, South Africa">Wilderness National Park</option> |
|
78 |
<option value="Agulhas National Park, South Africa">Agulhas National Park</option> |
|
79 |
<option value="Bontebok National Park, South Africa">Bontebok National Park</option> |
|
80 |
<option value="Camdeboo National Park, South Africa">Camdeboo National Park</option> |
|
81 |
<option value="Knysna National Lake Area, South Africa">Knysna National Lake Area</option> |
|
82 |
<option value="Mokala National Park, South Africa">Mokala National Park</option> |
|
83 |
<option value="Mountain Zebra National Park, South Africa">Mountain Zebra National Park</option> |
|
84 |
<option value="Namaqua National Park, South Africa">Namaqua National Park</option> |
|
85 |
<option value="Table Mountain National Park, South Africa">Table Mountain National Park</option> |
|
86 |
<option value="Tankwa Karoo National Park, South Africa">Tankwa Karoo National Park</option> |
|
87 |
<option value="Tsitsikamma National Park, South Africa">Tsitsikamma National Park</option> |
|
88 |
<option value="West Coast National Park, South Africa">West Coast National Park</option> |
|
89 |
<option value="Augrabies Falls National Park, South Africa">Augrabies Falls National Park</option> |
|
90 |
<option value="SAEON, South Africa">SAEON</option> |
|
91 |
<option value="Ndlovu SAEON Node, South Africa">Ndlovu SAEON Node</option> |
|
92 |
<option value="Elwandle SAEON Node, South Africa">Elwandle SAEON Node</option> |
|
93 |
|
|
94 |
</select> |
|
95 |
</td> |
|
96 |
</tr> |
|
97 |
<tr> |
|
98 |
<td align="right"> |
|
99 |
<input type="submit" value="Go" /> |
|
100 |
</td> |
|
101 |
</tr> |
|
102 |
</table> |
|
24 | 103 |
</form> |
104 |
--> |
|
25 | 105 |
</td> |
26 | 106 |
</tr> |
27 | 107 |
</table> |
lib/style/skins/sanparks/sanparks.js | ||
---|---|---|
91 | 91 |
// Location of the search box that will be displayed above the |
92 | 92 |
// results on the results page (optional) |
93 | 93 |
var SEARCHBOX_URL = ""; //= "searchform.html" |
94 |
//var SEARCHBOX_URL = "@style-skins-path@/sanparks/SaeonLogin.jspx"; |
|
94 | 95 |
|
95 | 96 |
// Location of the header that will be displayed at the top of the page |
96 | 97 |
var LEFTCOL_URL = "@style-skins-path@/sanparks/leftnav.jsp"; |
97 | 98 |
|
98 | 99 |
// Location of the header that will be displayed at the top of the page |
99 |
var RIGHTCOL_URL = "@style-skins-path@/sanparks/spatial/pma.html"; |
|
100 |
//var RIGHTCOL_URL = "";
|
|
100 |
//var RIGHTCOL_URL = "@style-skins-path@/sanparks/spatial/pma.html";
|
|
101 |
var RIGHTCOL_URL = ""; |
|
101 | 102 |
|
102 | 103 |
// Location of the header that will be displayed at the top of the page |
103 | 104 |
var FOOTER_URL = "@style-skins-path@/sanparks/footer.jspx"; |
104 | 105 |
|
106 |
//var LOGINBOX_URL = ""; |
|
105 | 107 |
var LOGINBOX_URL = "@style-skins-path@/sanparks/SaeonLogin.jspx"; |
106 | 108 |
|
107 | 109 |
|
... | ... | |
129 | 131 |
var IFRAME_HEADER_CLASS = "iframeheaderclass"; |
130 | 132 |
|
131 | 133 |
//(metacat only) search box iframe class |
132 |
var IFRAME_SEARCHBOX_CLASS = "iframesearchboxclass"; |
|
134 |
//var IFRAME_SEARCHBOX_CLASS = "iframesearchboxclass"; |
|
135 |
var IFRAME_SEARCHBOX_CLASS = "iframeloginboxclass"; |
|
133 | 136 |
|
134 | 137 |
//left column iframe class |
135 | 138 |
var IFRAME_LEFTCOL_CLASS = "iframeleftcolclass"; |
lib/style/skins/sanparks/index.jsp | ||
---|---|---|
42 | 42 |
} |
43 | 43 |
insertTemplateOpening(); |
44 | 44 |
insertLoginBox(); |
45 |
//insertSearchBox(); |
|
45 | 46 |
insertTemplateClosing(); |
46 | 47 |
</script> |
47 | 48 |
</body> |
lib/style/skins/sanparks/sanparks.css | ||
---|---|---|
45 | 45 |
* container frame, *NOT* to the document within it! |
46 | 46 |
*/ |
47 | 47 |
.iframeheaderclass { |
48 |
height: 112px; |
|
48 |
height: 112px; |
|
49 |
width: 100%; |
|
50 |
/* |
|
49 | 51 |
min-width:775px; |
50 | 52 |
width:expression(document.body.clientWidth < 775? "775px": "auto" ); |
53 |
*/ |
|
51 | 54 |
border: 0px; |
52 | 55 |
margin-top: 0px; |
53 | 56 |
} |
... | ... | |
63 | 66 |
} |
64 | 67 |
|
65 | 68 |
|
66 |
.iframesearchboxclass { /* not used */ } |
|
69 |
.iframesearchboxclass { |
|
70 |
height: 712px; |
|
71 |
/*width:600px;*/ |
|
72 |
min-width:600px; |
|
73 |
width:expression(document.body.clientWidth < 600? "600px": "auto" ); |
|
74 |
border: 0px; |
|
75 |
vertical-align: top; |
|
76 |
text-align: left; |
|
77 |
} |
|
67 | 78 |
|
68 | 79 |
.iframeleftcolclass { |
69 | 80 |
height: 712px; |
... | ... | |
171 | 182 |
margin:10px 0 10px 0; |
172 | 183 |
} |
173 | 184 |
|
185 |
/*****BEGIN SANPARKS NAV*******/ |
|
186 |
#nav { |
|
187 |
float: left; |
|
188 |
width: 175px; |
|
189 |
color: #fff; |
|
190 |
clear: both; |
|
191 |
} |
|
192 |
#nav ul.level-1 { |
|
193 |
font-weight: bold; |
|
194 |
list-style: none; |
|
195 |
padding: 6px; |
|
196 |
margin: 0; |
|
197 |
line-height: 1.1; |
|
198 |
} |
|
199 |
|
|
200 |
#nav ul.level-1 li { |
|
201 |
font-size: 1.1em; |
|
202 |
/*margin: 0px 0px 5px 0px;*/ |
|
203 |
margin: 0px 0px 12px 0px; |
|
204 |
padding: 0px 0px 0px 0px; |
|
205 |
background: none; |
|
206 |
} |
|
207 |
|
|
208 |
#nav ul.level-2 { |
|
209 |
font-weight: normal; |
|
210 |
list-style: none; |
|
211 |
padding: 0; |
|
212 |
font-size: 0.9em; |
|
213 |
margin: 5px 0px 0px 0px; |
|
214 |
} |
|
215 |
#nav ul.level-3 { |
|
216 |
font-weight: normal; |
|
217 |
list-style: none; |
|
218 |
padding: 0; |
|
219 |
font-size: 0.9em; |
|
220 |
margin: 0px 0px 0px 0px; |
|
221 |
} |
|
222 |
#nav ul.level-2 li { |
|
223 |
background: transparent url("images/horns.png") left 1px no-repeat !important; |
|
224 |
padding: 0; |
|
225 |
margin: 0; |
|
226 |
margin: 0px 0px 2px 0px; |
|
227 |
} |
|
228 |
#nav ul.level-3 li { |
|
229 |
background: transparent left 1px no-repeat !important; |
|
230 |
padding: 0; |
|
231 |
margin: 0; |
|
232 |
} |
|
233 |
|
|
234 |
#nav ul.level-1 li a { |
|
235 |
color: #fff; |
|
236 |
text-decoration: none; |
|
237 |
display: block; |
|
238 |
/*height: 1.6em;*/ |
|
239 |
} |
|
240 |
|
|
241 |
#nav ul.level-2 li a { |
|
242 |
color: #fff; |
|
243 |
text-decoration: none; |
|
244 |
display: block; |
|
245 |
padding-left: 18px; |
|
246 |
height: auto; |
|
247 |
} |
|
248 |
|
|
249 |
#nav ul.level-2 li a:hover, ul.level-2 li a:active { |
|
250 |
background: transparent url(images/nav_bullets_orange.gif) no-repeat left 1px !important; |
|
251 |
} |
|
252 |
|
|
253 |
#nav ul.level-1 li a:hover, ul.level-1 li a:active, ul.level-2 li a:hover, ul.level-2 li a:active { |
|
254 |
/* #nav li a:hover, li a:active { */ |
|
255 |
color: #F76501; |
|
256 |
text-decoration: underline; |
|
257 |
} |
|
258 |
|
|
259 |
#nav ul li a.current { |
|
260 |
background: transparent url(images/nav_bullets_orange.gif) no-repeat left 1px !important; |
|
261 |
} |
|
262 |
|
|
263 |
#nav ul li.current_cat, #nav ul li a.current_cat { |
|
264 |
color: #f30; |
|
265 |
} |
|
266 |
|
|
267 |
#nav .current_home { |
|
268 |
color: #f30; |
|
269 |
padding-bottom: 5px; |
|
270 |
display: block; |
|
271 |
border-bottom: 1px solid #0E321D; |
|
272 |
text-decoration: none; |
|
273 |
font-size: 1.1em; |
|
274 |
font-weight: bold; |
|
275 |
margin-bottom: 0px; |
|
276 |
margin-left: 5px; |
|
277 |
margin-top: 7px; |
|
278 |
margin-right: 5px; |
|
279 |
} |
|
280 |
/*****END SANPARKS NAV*******/ |
|
281 |
|
|
174 | 282 |
/** |
175 | 283 |
* set the size and alignment etc of the top-level layout table |
176 | 284 |
*/ |
... | ... | |
346 | 454 |
|
347 | 455 |
p.emphasis { |
348 | 456 |
|
349 |
font-size: 18px;
|
|
457 |
font-size: 14px;
|
|
350 | 458 |
color: #dd7744; |
351 | 459 |
font-weight: bold; |
352 | 460 |
font-style: normal; |
lib/style/skins/sanparks/SaeonDelete.jspx | ||
---|---|---|
11 | 11 |
|
12 | 12 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
13 | 13 |
<head> |
14 |
<title>SANParks - South African National Park Data Repository</title> |
|
15 |
<link href="sanparks.css" rel="stylesheet" type="text/css" /> |
|
14 | 16 |
</head> |
15 |
<body> |
|
17 |
<body style="background: #FFFFFF;">
|
|
16 | 18 |
<jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView"/> |
17 | 19 |
<jsp:setProperty name="clientViewBean" property="*"/> |
18 | 20 |
|
21 |
<h2>Delete Data Packages</h2> |
|
22 |
|
|
19 | 23 |
<jsp:scriptlet> |
20 | 24 |
clientViewHelper = ClientViewHelper.clientViewHelperInstance(request); |
21 | 25 |
clientViewHelper.clientRequest(request, response); |
22 | 26 |
if (clientViewHelper.isLoggedIn()) { |
23 | 27 |
</jsp:scriptlet> |
24 |
<br/> |
|
25 |
<table bgcolor="WhiteSmoke">
|
|
28 |
|
|
29 |
<table> |
|
26 | 30 |
<tr> |
27 | 31 |
<td colspan="3"> |
28 |
|
|
32 |
<h3>Search</h3> |
|
33 |
<p class="regtext"> |
|
34 |
Retrieve a list of existing FGDC data packages for a specified scope. |
|
35 |
</p> |
|
29 | 36 |
<form name="scopeForm" method="post" action="SaeonDelete.jspx"> |
30 | 37 |
<input name="returnfield" type="hidden" value="distinfo/stdorder/digform/digtopt/onlinopt/computer/networka/networkr"/> |
31 | 38 |
<input name="pathExpr" type="hidden" value="/metadata/distinfo/resdesc"/> |
32 | 39 |
<jsp:element name="input"> |
33 | 40 |
<jsp:attribute name="name">sessionid</jsp:attribute> |
34 | 41 |
<jsp:attribute name="type">hidden</jsp:attribute> |
35 |
<jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute> |
|
42 |
<jsp:attribute name="value"> |
|
43 |
<jsp:getProperty name="clientViewBean" property="sessionid"/> |
|
44 |
</jsp:attribute> |
|
36 | 45 |
</jsp:element> |
37 | 46 |
<p class="regtext"> |
38 | 47 |
<!-- Set the pathValue to the username (the scope) --> |
39 | 48 |
<jsp:element name="input"> |
40 | 49 |
<jsp:attribute name="name">pathValue</jsp:attribute> |
41 | 50 |
<jsp:attribute name="type">text</jsp:attribute> |
42 |
<jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="username"/></jsp:attribute> |
|
51 |
<jsp:attribute name="value"> |
|
52 |
<jsp:getProperty name="clientViewBean" property="username"/> |
|
53 |
</jsp:attribute> |
|
43 | 54 |
<jsp:attribute name="size">14</jsp:attribute> |
44 | 55 |
</jsp:element> |
45 | 56 |
<input name="action" value="Scope" type="submit" class="button_login"/> |
46 |
  Get a list of existing FGDC data packages for a specified scope.   |
|
47 | 57 |
</p> |
48 | 58 |
</form> |
49 | 59 |
|
... | ... | |
53 | 63 |
<jsp:scriptlet> |
54 | 64 |
if (clientViewBean.getMessage(ClientView.SELECT_MESSAGE) != null) { |
55 | 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> |
|
56 | 74 |
<tr> |
57 |
<td rowspan="3">
|
|
75 |
<td> |
|
58 | 76 |
<form name="deleteForm" method="post" action="SaeonDelete.jspx"> |
59 | 77 |
<jsp:element name="input"> |
60 | 78 |
<jsp:attribute name="name">sessionid</jsp:attribute> |
61 | 79 |
<jsp:attribute name="type">hidden</jsp:attribute> |
62 |
<jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="sessionid"/></jsp:attribute> |
|
80 |
<jsp:attribute name="value"> |
|
81 |
<jsp:getProperty name="clientViewBean" property="sessionid"/> |
|
82 |
</jsp:attribute> |
|
63 | 83 |
</jsp:element> |
64 | 84 |
<jsp:expression>clientViewBean.getMessage(ClientView.SELECT_MESSAGE)</jsp:expression> |
65 |
<br/> |
|
85 |
|
|
66 | 86 |
<input name="action" type="submit" value="Delete" class="button_login"/> |
67 | 87 |
</form> |
68 | 88 |
|
69 | 89 |
</td> |
70 |
<td> |
|
71 |
<p class="regtext"> |
|
72 |
Caution: Removes records from metacat server and, if a metadata Doc Id, any associated Doc Id records. |
|
73 |
</p> |
|
74 |
</td> |
|
75 | 90 |
</tr> |
76 | 91 |
<tr> |
77 | 92 |
<td> |
78 | 93 |
<p class="regtext"> |
79 | 94 |
<jsp:scriptlet>if (clientViewBean.getMessage(ClientView.DELETE_MESSAGE) != null) {</jsp:scriptlet> |
80 |
<jsp:expression>clientViewBean.getMessage(ClientView.DELETE_MESSAGE)</jsp:expression>
|
|
95 |
<jsp:expression>clientViewBean.getMessage(ClientView.DELETE_MESSAGE)</jsp:expression>
|
|
81 | 96 |
<jsp:scriptlet>}</jsp:scriptlet> |
82 | 97 |
</p> |
83 | 98 |
</td> |
... | ... | |
90 | 105 |
<jsp:scriptlet> |
91 | 106 |
} else { |
92 | 107 |
</jsp:scriptlet> |
93 |
<span class="regtext"> |
|
94 |
You must be logged into your user account before deleting a data set. |
|
95 |
</span> |
|
108 |
<span class="regtext">
|
|
109 |
You must be logged into your user account before deleting a data set.
|
|
110 |
</span>
|
|
96 | 111 |
<jsp:scriptlet> |
97 | 112 |
} |
98 | 113 |
</jsp:scriptlet> |
114 |
|
|
99 | 115 |
<p class="regtext"> |
100 | 116 |
<form action="SaeonLogin.jspx"> |
101 |
<input name="action" type="submit" value="Go Back" class="button_login"/>
|
|
117 |
<input name="action" type="submit" value="Back" class="button_login"/> |
|
102 | 118 |
</form> |
103 | 119 |
</p> |
120 |
|
|
104 | 121 |
<br/>DEBUG<br/> |
105 | 122 |
action = <jsp:getProperty name="clientViewBean" property="action"/><br/> |
106 | 123 |
qformat = <jsp:getProperty name="clientViewBean" property="qformat"/><br/> |
Also available in: Unified diff
save point before refactoring iframes/index page