Revision 4000
Added by berkley over 16 years ago
lib/style/skins/knb/knb.css | ||
---|---|---|
1 |
/* |
|
2 |
* '$RCSfile$' |
|
3 |
* Purpose: Default style sheet for KNB project web pages |
|
4 |
* Using this stylesheet rather than placing styles directly in |
|
5 |
* the KNB web documents allows us to globally change the |
|
6 |
* formatting styles of the entire site in one easy place. |
|
7 |
* Copyright: 2000 Regents of the University of California and the |
|
8 |
* National Center for Ecological Analysis and Synthesis |
|
9 |
* Authors: Matt Jones |
|
10 |
* |
|
11 |
* '$Author$' |
|
12 |
* '$Date$' |
|
13 |
* '$Revision$' |
|
14 |
* |
|
15 |
* This program is free software; you can redistribute it and/or modify |
|
16 |
* it under the terms of the GNU General Public License as published by |
|
17 |
* the Free Software Foundation; either version 2 of the License, or |
|
18 |
* (at your option) any later version. |
|
19 |
* |
|
20 |
* This program is distributed in the hope that it will be useful, |
|
21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
23 |
* GNU General Public License for more details. |
|
24 |
* |
|
25 |
* You should have received a copy of the GNU General Public License |
|
26 |
* along with this program; if not, write to the Free Software |
|
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
28 |
*/ |
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
/* |
|
33 |
* import eml css: |
|
34 |
*/ |
|
35 |
|
|
36 |
@import url(../../../style/common/eml_xsl.css); |
|
37 |
|
|
38 |
|
|
39 |
/* |
|
40 |
* import eml css: |
|
41 |
*/ |
|
42 |
|
|
43 |
@import url(../knb2/portalpages.css); |
|
44 |
|
|
45 |
|
|
46 |
/** |
|
47 |
* set the correct iframe sizes to accomodate the |
|
48 |
* header, footer, left and right areas. |
|
49 |
* NOTE: these styles apply only to each |
|
50 |
* container frame, *NOT* to the document within it! |
|
51 |
*/ |
|
52 |
.iframeheaderclass { |
|
53 |
height: 80px; |
|
54 |
width: 100%; |
|
55 |
border: 0px; |
|
56 |
margin: 0px; |
|
57 |
} |
|
58 |
|
|
59 |
.iframesearchboxclass { |
|
60 |
height: 461px; |
|
61 |
width: 100%; |
|
62 |
border: 0px; |
|
63 |
margin: 0px; |
|
64 |
} |
|
65 |
|
|
66 |
.iframeleftcolclass { /* not used */ } |
|
67 |
.iframerightcolclass { /* not used */ } |
|
68 |
.iframefooterclass { /* not used */ } |
|
69 |
|
|
70 |
/** |
|
71 |
* set the size and alignment etc of the top-level layout table |
|
72 |
*/ |
|
73 |
.templatetableclass { |
|
74 |
width: 100%; |
|
75 |
border: 0px; |
|
76 |
padding: 0px; |
|
77 |
margin: 0px; |
|
78 |
} |
|
79 |
|
|
80 |
|
|
81 |
/** |
|
82 |
* set the style of the main content area and its contents |
|
83 |
*/ |
|
84 |
.templatecontentareaclass { |
|
85 |
border: 0px; |
|
86 |
padding: 0px; |
|
87 |
margin: 0px; |
|
88 |
} |
|
89 |
|
|
90 |
|
|
91 |
/** |
|
92 |
* set the correct <td> sizes to accomodate the |
|
93 |
* header, footer, left and right iframes. |
|
94 |
* NOTE: these styles apply only to each |
|
95 |
* container frame, *NOT* to the document in |
|
96 |
* the iframe within it! |
|
97 |
*/ |
|
98 |
.templateheaderrowclass { |
|
99 |
height: 80px; |
|
100 |
/* |
|
101 |
no width allowed - uses same width as table class |
|
102 |
*/ |
|
103 |
border: 0px; |
|
104 |
padding: 0px; |
|
105 |
margin: 0px; |
|
106 |
} |
|
107 |
|
|
108 |
|
|
109 |
.templateleftcolclass { |
|
110 |
height: 100%; |
|
111 |
width: 0px; |
|
112 |
border: 0px; |
|
113 |
padding: 0px; |
|
114 |
margin: 0px; |
|
115 |
} |
|
116 |
|
|
117 |
|
|
118 |
.templaterightcolclass { |
|
119 |
height: 100%; |
|
120 |
width: 0px; |
|
121 |
border: 0px; |
|
122 |
padding: 0px; |
|
123 |
margin: 0px; |
|
124 |
} |
|
125 |
|
|
126 |
|
|
127 |
.templatefooterrowclass { |
|
128 |
height: 0px; |
|
129 |
/* |
|
130 |
no width allowed - uses same width as table class |
|
131 |
*/ |
|
132 |
border: 0px; |
|
133 |
padding: 0px; |
|
134 |
margin: 0px; |
|
135 |
} |
|
136 |
|
|
137 |
|
|
138 |
/** |
|
139 |
* these override styles imported from eml css |
|
140 |
*/ |
|
141 |
|
|
142 |
|
|
143 |
.sectionnames{ |
|
144 |
font-weight: bold; |
|
145 |
font-size: 16px; |
|
146 |
color: #0040A1; |
|
147 |
} |
|
148 |
.highlight { |
|
149 |
background-color: #dddddd; |
|
150 |
font-size: 12px; |
|
151 |
border: solid #ffffff 1px; |
|
152 |
} |
|
153 |
|
|
154 |
|
|
155 |
.tablehead { |
|
156 |
background-image: url(../knb2/images/panelhead_bg.gif); |
|
157 |
color: #0040A1; |
|
158 |
text-align: left; |
|
159 |
font-size: 14px; |
|
160 |
font-weight: bold; |
|
161 |
border-top: solid #ffffff 2px; |
|
162 |
border-bottom: solid #ffffff 2px; |
|
163 |
padding-left: 15px; |
|
164 |
padding-top: 0px; |
|
165 |
padding-bottom: 0px; |
|
166 |
} |
|
167 |
|
|
168 |
th.tablehead { |
|
169 |
|
|
170 |
text-align: center; |
|
171 |
border: 0px; |
|
172 |
margin: 0px; |
|
173 |
padding: 0px; |
|
174 |
height: 21px; |
|
175 |
} |
|
176 |
|
|
177 |
.tablehead_lcorner { |
|
178 |
background-image: url(../knb2/images/panelhead_bg_lcorner.gif); |
|
179 |
background-position: right top; |
|
180 |
background-repeat: no-repeat; |
|
181 |
padding: 0px; |
|
182 |
margin: 0px; |
|
183 |
width: 10px; |
|
184 |
height: 21px; |
|
185 |
} |
|
186 |
|
|
187 |
.tablehead_rcorner { |
|
188 |
background-image: url(../knb2/images/panelhead_bg_rcorner.gif); |
|
189 |
background-position: left top; |
|
190 |
background-repeat: no-repeat; |
|
191 |
padding: 0px; |
|
192 |
margin: 0px; |
|
193 |
width: 10px; |
|
194 |
height: 21px; |
|
195 |
} |
|
196 |
a { |
|
197 |
color: #669933; |
|
198 |
font-weight: bold; |
|
199 |
font-size: 12px; |
|
200 |
text-decoration: none; } |
|
201 |
|
|
202 |
a:hover { |
|
203 |
color: #ff9933; |
|
204 |
text-decoration: underline; } |
|
205 |
/** |
|
206 |
* these are used only in the metacat pages |
|
207 |
*/ |
|
208 |
|
|
209 |
p.emphasis { |
|
210 |
|
|
211 |
font-size: 18px; |
|
212 |
color: #dd7744; |
|
213 |
font-weight: bold; |
|
214 |
font-style: normal; |
|
215 |
} |
|
216 |
|
|
217 |
.searchresultsdivider { |
|
218 |
background-color: #ffffff; |
|
219 |
border-bottom: 1px solid #dddddd; |
|
220 |
|
|
221 |
} |
|
222 |
|
|
223 |
.searchresultslead { |
|
224 |
background-color: #ffffff; |
|
225 |
} |
|
226 |
/** |
|
227 |
* these are used only in the registry skins |
|
228 |
*/ |
|
229 |
p.searchbox { |
|
230 |
color: #0040A1; |
|
231 |
font-weight: bold; |
|
232 |
font-size: 12px; |
|
233 |
text-decoration: none; |
|
234 |
} |
|
235 |
|
|
236 |
.intro { |
|
237 |
width: 760px; |
|
238 |
margin-left: 15px; |
|
239 |
} |
|
240 |
|
|
241 |
br { |
|
242 |
margin: 0px; |
|
243 |
padding: 0px; |
|
244 |
} |
|
245 |
|
|
246 |
textarea { |
|
247 |
width: 80%; |
|
248 |
} |
|
249 |
|
|
250 |
.required { |
|
251 |
font-weight: bold; |
|
252 |
color: #b00000; |
|
253 |
} |
|
254 |
|
|
255 |
.label { |
|
256 |
font-weight: bold; |
|
257 |
} |
|
258 |
|
|
259 |
.emphasis { |
|
260 |
font-weight: bold; |
|
261 |
font-size: 18px; |
|
262 |
color: #000000; |
|
263 |
} |
|
264 |
|
|
265 |
.boldlink { |
|
266 |
font-weight: bold; |
|
267 |
font-size: 12px; |
|
268 |
} |
|
269 |
.colorbold { |
|
270 |
font-weight: bold; |
|
271 |
color: #669933; |
|
272 |
font-size: 12px; |
|
273 |
} |
|
274 |
|
|
275 |
.redbold { |
|
276 |
font-weight: bold; |
|
277 |
color: #b00000; |
|
278 |
font-size: 12px; |
|
279 |
} |
|
280 |
|
|
281 |
.greenbold { |
|
282 |
font-weight: bold; |
|
283 |
color: #008000; |
|
284 |
font-size: 12px; |
|
285 |
} |
|
286 |
|
|
287 |
.smalltext { |
|
288 |
font-weight: bold; |
|
289 |
font-size: 10px; |
|
290 |
vertical-align: super; |
|
291 |
} |
|
292 |
|
|
293 |
.italicized { |
|
294 |
font-style: italic; |
|
295 |
font-size: 12px; |
|
296 |
} |
|
297 |
|
|
298 |
.regtext { |
|
299 |
font-weight: normal; |
|
300 |
font-size: 12px; |
|
301 |
} |
|
302 |
.sectbody { |
|
303 |
background: #EAEAEA; |
|
304 |
font-size: 12px; |
|
305 |
font-weight: bold;} |
|
306 |
|
|
307 |
.sectheader { |
|
308 |
background: #B2D2FE; |
|
309 |
color: #0040A1; |
|
310 |
font-size: 14px; |
|
311 |
font-weight: bold;} |
|
312 |
|
|
313 |
.tables { |
|
314 |
width: 760px; |
|
315 |
margin-left: 20px; |
|
316 |
border-top: solid black 1px; |
|
317 |
border-left: solid black 1px; |
|
318 |
border-right: solid black 1px; |
|
319 |
background: #fff; |
|
320 |
} |
|
321 |
|
|
322 |
.hide { |
|
323 |
display:none; |
|
324 |
} |
|
325 |
|
|
326 |
.bordertop { |
|
327 |
border-top: solid black 1px; |
|
328 |
} |
|
329 |
|
|
330 |
.borderbottom { |
|
331 |
border-bottom: 1px solid black;} |
|
332 |
|
|
333 |
.topbottom { |
|
334 |
border-top: 1px solid black; |
|
335 |
border-bottom: 1px solid black; |
|
336 |
} |
|
337 |
|
|
338 |
.longwidth { |
|
339 |
width: 80%; |
|
340 |
} |
|
341 |
|
|
342 |
.shortwidth { |
|
343 |
width: 40%; |
|
344 |
} |
|
345 |
|
|
346 |
.rightCol { |
|
347 |
width: 24%; |
|
348 |
text-align: right; |
|
349 |
} |
|
0 | 350 |
lib/style/skins/knb/harvesterRegistrationLogin.jsp | ||
---|---|---|
1 |
<%@ page language="java" %> |
|
2 |
<% |
|
3 |
/** |
|
4 |
* '$RCSfile$' |
|
5 |
* Copyright: 2008 Regents of the University of California and the |
|
6 |
* National Center for Ecological Analysis and Synthesis |
|
7 |
* '$Author$' |
|
8 |
* '$Date$' |
|
9 |
* '$Revision$' |
|
10 |
|
|
11 |
* This program is free software; you can redistribute it and/or modify |
|
12 |
* it under the terms of the GNU General Public License as published by |
|
13 |
* the Free Software Foundation; either version 2 of the License, or |
|
14 |
* (at your option) any later version. |
|
15 |
|
|
16 |
* This program is distributed in the hope that it will be useful, |
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
* GNU General Public License for more details. |
|
20 |
* |
|
21 |
* You should have received a copy of the GNU General Public License |
|
22 |
* along with this program; if not, write to the Free Software |
|
23 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 |
*/ |
|
25 |
%> |
|
26 |
|
|
27 |
<%@ include file="../../common/common-settings.jsp"%> |
|
28 |
|
|
29 |
<html> |
|
30 |
<head> |
|
31 |
<title>Metacat Harvester Registration Login</title> |
|
32 |
</head> |
|
33 |
|
|
34 |
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red"> |
|
35 |
<br><center> |
|
36 |
<h3> |
|
37 |
<font color="#132B76" face=verdana size=2%> |
|
38 |
<b>Metacat Harvester Registration Login</b> |
|
39 |
</font> |
|
40 |
</h3> |
|
41 |
|
|
42 |
<form name="myform" |
|
43 |
method="POST" |
|
44 |
action="<%=SERVER_URL_WITH_CONTEXT%>/harvesterRegistrationLogin"> |
|
45 |
|
|
46 |
<table width=400 align=center cellspacing=1 cellpadding=1 |
|
47 |
border=0 bgcolor="#333366"> |
|
48 |
<tr> |
|
49 |
<td> |
|
50 |
<table bgcolor="#ffffff" border="0" cellpadding="1" width='100%' > |
|
51 |
<tr > <td colspan=3 align=center > </td> </tr> |
|
52 |
<tr > |
|
53 |
<td colspan=3 align=center > |
|
54 |
<font face=verdana size=1%> |
|
55 |
<b>Please Enter Username, Organization, and Password</b> |
|
56 |
</font> |
|
57 |
</td> |
|
58 |
</tr> |
|
59 |
<tr> |
|
60 |
<td width='10%'> </td> |
|
61 |
<td width="25%" bgcolor="#4682b4"> |
|
62 |
<p align="center"> |
|
63 |
<font color="white" face=verdana size=2%> |
|
64 |
<b>Username</b> |
|
65 |
</font> |
|
66 |
</td> |
|
67 |
<td><p><input type="text" name="uid" maxlength="100" size="28"></td> |
|
68 |
</tr> |
|
69 |
<tr> |
|
70 |
<td width='10%'> </td> |
|
71 |
<td width="25%" bgcolor="#4682b4"> |
|
72 |
<p align="center"> |
|
73 |
<font color="white" face=verdana size=2%> |
|
74 |
<b>Organization</b> |
|
75 |
</font> |
|
76 |
</td> |
|
77 |
<td> |
|
78 |
<input type="radio" name="o" value="NCEAS">NCEAS |
|
79 |
<input type="radio" name="o" value="LTER">LTER |
|
80 |
<input type="radio" name="o" value="NRS">NRS |
|
81 |
<br> |
|
82 |
<input type="radio" name="o" value="PISCO">PISCO |
|
83 |
<input type="radio" name="o" value="OBFS">OBFS |
|
84 |
<input type="radio" name="o" value="Unaffiliated">Unaffiliated |
|
85 |
</tr> |
|
86 |
<tr> |
|
87 |
<td width='10%'> </td> |
|
88 |
<td bgcolor="#4682b4"> |
|
89 |
<p align="center"> |
|
90 |
<font color="white" face=verdana size=2%> |
|
91 |
<b>Password</b> |
|
92 |
</font> |
|
93 |
</td> |
|
94 |
<td><p><input type="password" name="passwd" maxlength="60" size="28"> |
|
95 |
</td> |
|
96 |
</tr> |
|
97 |
<tr> <td colspan=3 align=center > </td></tr> |
|
98 |
</table> |
|
99 |
</td> |
|
100 |
</tr> |
|
101 |
</table> |
|
102 |
<br> |
|
103 |
<p> |
|
104 |
<input type="submit" value="Login"> |
|
105 |
<input type="reset" value="Reset"> |
|
106 |
</form> |
|
107 |
</body> |
|
0 | 108 |
lib/style/skins/knb/index.jsp | ||
---|---|---|
1 |
<%@ page language="java" %> |
|
2 |
<% |
|
3 |
/** |
|
4 |
* '$RCSfile$' |
|
5 |
* Copyright: 2000 Regents of the University of California and the |
|
6 |
* National Center for Ecological Analysis and Synthesis |
|
7 |
* For Details: http://www.nceas.ucsb.edu/ |
|
8 |
* |
|
9 |
* '$Author$' |
|
10 |
* '$Date$' |
|
11 |
* '$Revision$' |
|
12 |
* |
|
13 |
* This program is free software; you can redistribute it and/or modify |
|
14 |
* it under the terms of the GNU General Public License as published by |
|
15 |
* the Free Software Foundation; either version 2 of the License, or |
|
16 |
* (at your option) any later version. |
|
17 |
* |
|
18 |
* This program is distributed in the hope that it will be useful, |
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
* GNU General Public License for more details. |
|
22 |
* |
|
23 |
* You should have received a copy of the GNU General Public License |
|
24 |
* along with this program; if not, write to the Free Software |
|
25 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
26 |
*/ |
|
27 |
%> |
|
28 |
|
|
29 |
<%@ include file="../../common/common-settings.jsp"%> |
|
30 |
|
|
31 |
<% |
|
32 |
/** |
|
33 |
* Does a redirect to knb homepage at KNB_SITE_URL |
|
34 |
*/ |
|
35 |
|
|
36 |
java.util.Properties params = new java.util.Properties(); |
|
37 |
java.util.Enumeration paramlist = request.getParameterNames(); |
|
38 |
|
|
39 |
String userName = null; |
|
40 |
String organization = null; |
|
41 |
String password = null; |
|
42 |
|
|
43 |
while (paramlist.hasMoreElements()) { |
|
44 |
String name = (String) paramlist.nextElement(); |
|
45 |
String[] value = request.getParameterValues(name); |
|
46 |
params.put(name, value[0]); |
|
47 |
} |
|
48 |
|
|
49 |
String reply = null; |
|
50 |
try{ |
|
51 |
|
|
52 |
java.net.URL url = new java.net.URL(KNB_SITE_URL + "index.jsp"); |
|
53 |
edu.ucsb.nceas.utilities.HttpMessage msg = |
|
54 |
new edu.ucsb.nceas.utilities.HttpMessage(url); |
|
55 |
java.io.InputStream returnStrea = msg.sendPostData(params); |
|
56 |
java.io.InputStreamReader returnStream = |
|
57 |
new java.io.InputStreamReader(returnStrea); |
|
58 |
java.io.StringWriter sw = new java.io.StringWriter(); |
|
59 |
int len; |
|
60 |
char[] characters = new char[512]; |
|
61 |
while ((len = returnStream.read(characters, 0, 512)) != -1) { |
|
62 |
sw.write(characters, 0, len); |
|
63 |
} |
|
64 |
returnStream.close(); |
|
65 |
reply = sw.toString(); |
|
66 |
sw.close(); |
|
67 |
} catch(Exception e){ |
|
68 |
response.sendRedirect(KNB_SITE_URL); |
|
69 |
} |
|
70 |
%> |
|
71 |
<%=reply%> |
|
72 |
|
|
0 | 73 |
lib/style/skins/knb/knb_fgdc.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
|
3 |
|
|
4 |
<xsl:import href="../../common/fgdc/fgdc-root.xsl"/> |
|
5 |
|
|
6 |
<xsl:output indent="yes" method="html"/> |
|
7 |
<xsl:param name="docid"/> |
|
8 |
<xsl:param name="qformat"/> |
|
9 |
|
|
10 |
<xsl:param name="contextURL"/> |
|
11 |
<xsl:param name="cgi-prefix"/> |
|
12 |
|
|
13 |
<!-- stylesheets that include fgdc-root.xsl can enable/disable editing --> |
|
14 |
<xsl:param name="enableFGDCediting">false</xsl:param> |
|
15 |
|
|
16 |
<xsl:template match="/"> |
|
17 |
<html> |
|
18 |
<head> |
|
19 |
<link rel="stylesheet" type="text/css" href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" media="all"/> |
|
20 |
<script language="JavaScript" type="text/JavaScript" src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js"/> |
|
21 |
<script language="JavaScript" type="text/JavaScript" src="{$contextURL}/style/common/branding.js"/> |
|
22 |
<title>FGDC Identification and Metacat Data Package Information</title> |
|
23 |
</head> |
|
24 |
<body> |
|
25 |
<script language="JavaScript"> |
|
26 |
insertTemplateOpening("<xsl:value-of select="$contextURL"/>"); |
|
27 |
</script> |
|
28 |
|
|
29 |
<div class="centerContentBorder"> |
|
30 |
<div class="templatecontentareaclass"> |
|
31 |
|
|
32 |
<xsl:if test="*[local-name()='metadata']"> |
|
33 |
<xsl:call-template name="metadata"/> |
|
34 |
</xsl:if> |
|
35 |
|
|
36 |
</div> |
|
37 |
</div> |
|
38 |
|
|
39 |
<script language="JavaScript"> |
|
40 |
insertTemplateClosing("<xsl:value-of select="$contextURL"/>"); |
|
41 |
</script> |
|
42 |
</body> |
|
43 |
</html> |
|
44 |
</xsl:template> |
|
45 |
|
|
46 |
</xsl:stylesheet> |
|
0 | 47 |
lib/style/skins/knb/knb.js | ||
---|---|---|
1 |
/** |
|
2 |
* '$RCSfile$' |
|
3 |
* Purpose: Default style sheet for KNB project web pages |
|
4 |
* Using this stylesheet rather than placing styles directly in |
|
5 |
* the KNB web documents allows us to globally change the |
|
6 |
* formatting styles of the entire site in one easy place. |
|
7 |
* Copyright: 2000 Regents of the University of California and the |
|
8 |
* National Center for Ecological Analysis and Synthesis |
|
9 |
* Authors: Matt Jones |
|
10 |
* |
|
11 |
* '$Author$' |
|
12 |
* '$Date$' |
|
13 |
* '$Revision$' |
|
14 |
* |
|
15 |
* This program is free software; you can redistribute it and/or modify |
|
16 |
* it under the terms of the GNU General Public License as published by |
|
17 |
* the Free Software Foundation; either version 2 of the License, or |
|
18 |
* (at your option) any later version. |
|
19 |
* |
|
20 |
* This program is distributed in the hope that it will be useful, |
|
21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
23 |
* GNU General Public License for more details. |
|
24 |
* |
|
25 |
* You should have received a copy of the GNU General Public License |
|
26 |
* along with this program; if not, write to the Free Software |
|
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
28 |
*/ |
|
29 |
|
|
30 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
|
31 |
* * * * * * CONFIGURATION SETTINGS - EDIT THESE FOR YOUR ENVIRONMENT * * * * |
|
32 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
|
33 |
|
|
34 |
|
|
35 |
// These settings allow you to include and display common content (eg a common |
|
36 |
// header) on all your pages, in much the same way as a frameset allows you to |
|
37 |
// do, but through the use of iframes and a table instead. You can include up |
|
38 |
// to 4 external pages, each one within the header, footer, left or right areas |
|
39 |
// |
|
40 |
// looks like this (if you're using a fixed width font to display these notes): |
|
41 |
// ___________________ |
|
42 |
// | header | |
|
43 |
// |-----------------| |
|
44 |
// | | | | |
|
45 |
// | | | | |
|
46 |
// |L| content |R| |
|
47 |
// | | | | |
|
48 |
// | | | | |
|
49 |
// |-----------------| |
|
50 |
// | footer | |
|
51 |
// ------------------- |
|
52 |
// |
|
53 |
// Each area may display another page on the local site, or a page on a |
|
54 |
// different server, or may be set to display nothing (in which case an iframe |
|
55 |
// will not be drawn, although the containing table cell will still need to be |
|
56 |
// resized using the css style - see below) |
|
57 |
// |
|
58 |
// NOTES: |
|
59 |
// |
|
60 |
// 1) if you have any links in the included documents, the target attribute for |
|
61 |
// these *MUST* be set to _top, otherwise the new document will be displayed |
|
62 |
// inside the small iframe areas, instead of replacing the entire page! |
|
63 |
// - example: <a href="index.html" target="_top">HOME</a> |
|
64 |
// |
|
65 |
// 2) you will need to set the correct iframe size, in order to accomodate |
|
66 |
// each of these areas on the page. The default location for these size |
|
67 |
// settings is in the default.css file - see the "IFRAME_XXXXXX_CLASS" |
|
68 |
// variables (below) for the name of the style to edit |
|
69 |
// |
|
70 |
// 3) you will also need to set the correct table cell sizes and/or overall |
|
71 |
// table size for similar reasons. The default location for these size |
|
72 |
// settings is in the default.css file - see the "TEMPLATE_XXXXXX_CLASS" |
|
73 |
// variables (below) for the name of the style to edit |
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
//////////////////////////////////////////////////////////////////////////////// |
|
78 |
// Edit these variables to define the content that will be loaded into the |
|
79 |
// various iframes. Each may be a relative path to another page on the local |
|
80 |
// site, or a full URL to a page on a remote server, or may be set to the empty |
|
81 |
// string if no content is required at that position on the page (and in which |
|
82 |
// case an iframe will not be drawn, although an empty table cell will still |
|
83 |
// exist unless it is resized smaller) . |
|
84 |
// ( e.g. if you do not want a header to be included, set: HEADER_URL="";) |
|
85 |
//////////////////////////////////////////////////////////////////////////////// |
|
86 |
|
|
87 |
//NOTE: for KNB skin, these file locations are set to the ROOT web application path |
|
88 |
|
|
89 |
// Location of the header that will be displayed at the top of the page |
|
90 |
var HEADER_URL |
|
91 |
= "/includes/include_portalhead_page.jsp"; |
|
92 |
|
|
93 |
// Location of the search box that will be displayed above the |
|
94 |
// results on the results page (optional) |
|
95 |
var SEARCHBOX_URL |
|
96 |
= "/includes/include_searchbox_page.jsp"; |
|
97 |
|
|
98 |
// Location of the header that will be displayed at the top of the page |
|
99 |
var LEFTCOL_URL |
|
100 |
= ""; |
|
101 |
|
|
102 |
// Location of the header that will be displayed at the top of the page |
|
103 |
var RIGHTCOL_URL |
|
104 |
= ""; |
|
105 |
|
|
106 |
// Location of the header that will be displayed at the top of the page |
|
107 |
var FOOTER_URL |
|
108 |
= ""; |
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
|
114 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
|
115 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
|
116 |
/* * * * * * * * * MAY CHANGE THE FOLLOWING, BUT SHOULDN'T NEED TO* * * * * */ |
|
117 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
|
118 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
|
119 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
|
120 |
|
|
121 |
|
|
122 |
//////////////////////////////////////////////////////////////////////////////// |
|
123 |
// Edit the default.css file to set the correct iframe sizes to accomodate the |
|
124 |
// header, footer, left and right areas. |
|
125 |
// The following variables set the names of the styles that will be applied to |
|
126 |
// each of the iframes - they can be anythign you wish, provided you use the |
|
127 |
// same names for your classes in the css file |
|
128 |
// NOTE: these styles apply only to each container frame, *NOT* to the document |
|
129 |
// within it! |
|
130 |
//////////////////////////////////////////////////////////////////////////////// |
|
131 |
|
|
132 |
//header iframe class |
|
133 |
var IFRAME_HEADER_CLASS = "iframeheaderclass"; |
|
134 |
|
|
135 |
//(metacat only) search box iframe class |
|
136 |
var IFRAME_SEARCHBOX_CLASS = "iframesearchboxclass"; |
|
137 |
|
|
138 |
//left column iframe class |
|
139 |
var IFRAME_LEFTCOL_CLASS = "iframeleftcolclass"; |
|
140 |
|
|
141 |
//right column iframe class |
|
142 |
var IFRAME_RIGHTCOL_CLASS = "iframerightcolclass"; |
|
143 |
|
|
144 |
//footer iframe class |
|
145 |
var IFRAME_FOOTER_CLASS = "iframefooterclass"; |
|
146 |
|
|
147 |
|
|
148 |
//////////////////////////////////////////////////////////////////////////////// |
|
149 |
// Edit the default.css file to set the correct table sizes to accomodate the |
|
150 |
// header, footer, left and right iframes. |
|
151 |
// The following variables set the names of the styles that will be applied to |
|
152 |
// each of the table cells (or the table itself - see below) - they can be |
|
153 |
// anything you wish, provided you use the same names for your classes in the |
|
154 |
// css file |
|
155 |
// NOTE: these styles apply only to each table cell, *NOT* to the document |
|
156 |
// inside the iframe that is nested within it! (the exception is |
|
157 |
// TEMPLATE_CONTENTAREA_CLASS, since the content probably isn't within an |
|
158 |
// iframe - so style elements in this class will apply to the content istelf) |
|
159 |
//////////////////////////////////////////////////////////////////////////////// |
|
160 |
|
|
161 |
//entire table class |
|
162 |
var TEMPLATE_TABLE_CLASS = "templatetableclass"; |
|
163 |
|
|
164 |
//header table-cell class. Note you should not set css "width" on this, since it |
|
165 |
//includes a colspan |
|
166 |
var TEMPLATE_HEADERROW_CLASS = "templateheaderrowclass"; |
|
167 |
|
|
168 |
//left column table-cell class. Note that restricting css "height" on this may |
|
169 |
//affect visibility of the main content, since it's in the same table row |
|
170 |
var TEMPLATE_LEFTCOL_CLASS = "templateleftcolclass"; |
|
171 |
|
|
172 |
//main central content table-cell class. Note that css attributes set here may |
|
173 |
//apply to the content nested inside this cell |
|
174 |
var TEMPLATE_CONTENTAREA_CLASS = "templatecontentareaclass"; |
|
175 |
|
|
176 |
//rigth column table-cell class. Note that restricting css "height" on this may |
|
177 |
//affect visibility of the main content, since it's in the same table row |
|
178 |
var TEMPLATE_RIGHTCOL_CLASS = "templaterightcolclass"; |
|
179 |
|
|
180 |
//footer table-cell class. Note you should not set "width" on this, since it |
|
181 |
//includes a colspan |
|
182 |
var TEMPLATE_FOOTERROW_CLASS = "templatefooterrowclass"; |
|
183 |
|
|
184 |
|
|
0 | 185 |
lib/style/skins/knb/knb.cfg | ||
---|---|---|
1 |
# |
|
2 |
# General configuration parameters |
|
3 |
# |
|
4 |
metacatUrl = http://@httpserver@@servlet-path@ |
|
5 |
username = uid=knbadmin,o=NCEAS,dc=ecoinformatics,dc=org |
|
6 |
password = your-pw-goes-here |
|
7 |
ldapUrl=@ldapUrl@ |
|
8 |
defaultScope = knb |
|
9 |
organization = Knowledge Network for Biocomplexity |
|
10 |
orgabbrev = KNB |
|
11 |
orgurl = http://knb.ecoinformatics.org/ |
|
12 |
responseTemplate = @responseForm@ |
|
13 |
entryFormTemplate = @entryForm@ |
|
14 |
guideTemplate = @guide@ |
|
15 |
confirmDataTemplate = @confirmData@ |
|
16 |
deleteDataTemplate = @deleteData@ |
|
17 |
accesspubid = -//ecoinformatics.org//eml-access-2.0.0beta6//EN |
|
18 |
accesssysid = eml-access.dtd |
|
19 |
datasetpubid = eml://ecoinformatics.org/eml-dataset-2.0.0 |
|
20 |
datasetsysid = eml-dataset.dtd |
|
21 |
mailhost = @mailhost@ |
|
22 |
sender = KNB Data Registry <help@nceas.ucsb.edu> |
|
23 |
recipient = help@nceas.ucsb.edu |
|
24 |
adminname = the repository administrator |
|
25 |
debug = 1 |
|
26 |
lsite = 'station' |
|
27 |
usite = 'Station' |
|
28 |
showSiteList = 'false' |
|
29 |
showWgList = 'false' |
|
30 |
showOrganization = 'true' |
|
31 |
hasTaxonomic = 'true' |
|
32 |
hasMethod = 'true' |
|
33 |
hasSpatial = 'true' |
|
34 |
hasKeyword = 'true' |
|
35 |
hasTemporal = 'true' |
|
36 |
nceas_db = somedb |
|
37 |
nceas_db_user = someuser |
|
38 |
nceas_db_password = your-pw-goes-here |
|
0 | 39 |
lib/style/skins/knb/knb.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<style-set name="knb"> |
|
3 |
<!-- general login & search --> |
|
4 |
<default-style>/style/common/ascii-treeview.xsl</default-style> |
|
5 |
|
|
6 |
<doctype publicid="-//NCEAS//resultset//EN"> |
|
7 |
<target publicid="-//W3C//HTML//EN">/style/common/resultset.xsl</target> |
|
8 |
</doctype> |
|
9 |
|
|
10 |
<!-- added back login authentication for the registry workflow --> |
|
11 |
<doctype publicid="-//NCEAS//login//EN"> |
|
12 |
<target publicid="-//W3C//HTML//EN">/style/common/login.xsl</target> |
|
13 |
</doctype> |
|
14 |
|
|
15 |
<!--FGDC styles --> |
|
16 |
<doctype publicid="metadata"> |
|
17 |
<target publicid="-//W3C//HTML//EN">/style/skins/knb/knb_fgdc.xsl</target> |
|
18 |
</doctype> |
|
19 |
<!-- |
|
20 |
<doctype publicid="-//NCEAS//eml-generic//EN"> |
|
21 |
<target publicid="-//W3C//HTML//EN">/style/common/generic-morpho.xsl</target> |
|
22 |
</doctype> |
|
23 |
--> |
|
24 |
|
|
25 |
<!-- pre-beta6 modules --> |
|
26 |
<!-- NOTE these settings are unchanged from the previous version - only the xsl |
|
27 |
filename has changed from "eml-dataset-display.xsl" to "eml-dataset-2.0.0beta4.xsl" --> |
|
28 |
<doctype publicid="eml://ecoinformatics.org/eml-2.0.1"> |
|
29 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.1/eml.xsl</target> |
|
30 |
</doctype> |
|
31 |
<doctype publicid="eml://ecoinformatics.org/eml-2.0.0"> |
|
32 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.1/eml.xsl</target> |
|
33 |
</doctype> |
|
34 |
<doctype publicid="-//NCEAS//eml-dataset//EN"> |
|
35 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
36 |
</doctype> |
|
37 |
<doctype publicid="-//NCEAS//eml-dataset-2.0//EN"> |
|
38 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
39 |
</doctype> |
|
40 |
<doctype publicid="-//NCEAS//eml-resource//EN"> |
|
41 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
42 |
</doctype> |
|
43 |
<doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN"> |
|
44 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
45 |
</doctype> |
|
46 |
<!-- beta6 modules --> |
|
47 |
<doctype publicid="-//ecoinformatics.org//eml-access-2.0.0beta6//EN"> |
|
48 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-access-2.0.0beta6.xsl</target> |
|
49 |
</doctype> |
|
50 |
<doctype publicid="-//ecoinformatics.org//eml-attribute-2.0.0beta6//EN"> |
|
51 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-attribute-2.0.0beta6.xsl</target> |
|
52 |
</doctype> |
|
53 |
<doctype publicid="-//ecoinformatics.org//eml-constraint-2.0.0beta6//EN"> |
|
54 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-constraint-2.0.0beta6.xsl</target> |
|
55 |
</doctype> |
|
56 |
<doctype publicid="-//ecoinformatics.org//eml-coverage-2.0.0beta6//EN"> |
|
57 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-coverage-2.0.0beta6.xsl</target> |
|
58 |
</doctype> |
|
59 |
<doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN"> |
|
60 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-dataset-2.0.0beta6.xsl</target> |
|
61 |
</doctype> |
|
62 |
<doctype publicid="-//ecoinformatics.org//eml-entity-2.0.0beta6//EN"> |
|
63 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-entity-2.0.0beta6.xsl</target> |
|
64 |
</doctype> |
|
65 |
<doctype publicid="-//ecoinformatics.org//eml-literature-2.0.0beta6//EN"> |
|
66 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-literature-2.0.0beta6.xsl</target> |
|
67 |
</doctype> |
|
68 |
<doctype publicid="-//ecoinformatics.org//eml-physical-2.0.0beta6//EN"> |
|
69 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-physical-2.0.0beta6.xsl</target> |
|
70 |
</doctype> |
|
71 |
<doctype publicid="-//ecoinformatics.org//eml-project-2.0.0beta6//EN"> |
|
72 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-project-2.0.0beta6.xsl</target> |
|
73 |
</doctype> |
|
74 |
<doctype publicid="-//ecoinformatics.org//eml-protocol-2.0.0beta6//EN"> |
|
75 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-protocol-2.0.0beta6.xsl</target> |
|
76 |
</doctype> |
|
77 |
<doctype publicid="-//ecoinformatics.org//eml-software-2.0.0beta6//EN"> |
|
78 |
<target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-software-2.0.0beta6.xsl</target> |
|
79 |
</doctype> |
|
80 |
</style-set> |
|
0 | 81 |
Also available in: Unified diff
replacing the file with files from before I messed up this directory