Revision 2950
Added by berkley over 18 years ago
lib/style/skins/kepler/resultset.xsl | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!-- |
|
3 |
* '$RCSfile$' |
|
4 |
* Authors: Matt Jones, CHad Berkley |
|
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 |
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to |
|
28 |
* convert an XML file showing the resultset of a query |
|
29 |
* into an HTML format suitable for rendering with modern web browsers. |
|
30 |
--> |
|
31 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
|
32 |
|
|
33 |
<xsl:output method="html"/> |
|
34 |
<xsl:param name="sessid"/> |
|
35 |
<xsl:param name="qformat">default</xsl:param> |
|
36 |
<xsl:param name="enableediting">false</xsl:param> |
|
37 |
<xsl:template match="/"> |
|
38 |
<html> |
|
39 |
<head> |
|
40 |
<link rel="stylesheet" type="text/css" |
|
41 |
href="@style-skins-path@/{$qformat}/{$qformat}.css" /> |
|
42 |
<script language="Javascript" type="text/JavaScript" |
|
43 |
src="@style-skins-path@/{$qformat}/{$qformat}.js" /> |
|
44 |
<script language="Javascript" type="text/JavaScript" |
|
45 |
src="@style-common-path@/branding.js" /> |
|
46 |
<script language="JavaScript"> |
|
47 |
<![CDATA[ |
|
48 |
function submitform(action,form_ref) { |
|
49 |
form_ref.action.value=action; |
|
50 |
form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA["; |
|
51 |
form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA["; |
|
52 |
form_ref.submit(); |
|
53 |
} |
|
54 |
|
|
55 |
]]> |
|
56 |
</script> |
|
57 |
</head> |
|
58 |
|
|
59 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
|
60 |
<script language="JavaScript"> |
|
61 |
insertTemplateOpening(); |
|
62 |
insertSearchBox(); |
|
63 |
</script> |
|
64 |
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="0"> |
|
65 |
<tr> |
|
66 |
<td align="left"><br></br><p class="emphasis"><xsl:number value="count(resultset/document)" /> components found</p></td> |
|
67 |
</tr></table> |
|
68 |
<!-- This tests to see if there are returned documents, |
|
69 |
if there are not then don't show the query results --> |
|
70 |
|
|
71 |
<xsl:if test="count(resultset/document) > 0"> |
|
72 |
|
|
73 |
<table width="95%" align="center" border="0" cellpadding="0" cellspacing="0"> |
|
74 |
<tr> |
|
75 |
<th class="tablehead_lcorner" align="right" valign="top"><img src="@style-skins-path@/default/images/transparent1x1.gif" width="1" height="1" /></th> |
|
76 |
<th class="tablehead" style="text-align: left">Component Name</th> |
|
77 |
<!--<th width="15%" class="tablehead" style="text-align: left">Class</th> |
|
78 |
<th width="15%" class="tablehead" style="text-align: left">Organization</th> |
|
79 |
<th width="15%" class="tablehead" style="text-align: left">Keywords</th> |
|
80 |
<xsl:if test="$enableediting = 'true'"> |
|
81 |
<th width="10%" class="tablehead" style="text-align: middle">Actions</th> |
|
82 |
</xsl:if> |
|
83 |
<th class="tablehead_rcorner" align="right" valign="top"><img src="@style-skins-path@/default/images/transparent1x1.gif" width="1" height="1" /></th> |
|
84 |
--> |
|
85 |
</tr> |
|
86 |
|
|
87 |
<xsl:for-each select="resultset/document"> |
|
88 |
<xsl:sort select="./param[@name='/entity/@name']"/> |
|
89 |
<tr valign="top" class="subpanel"> |
|
90 |
<xsl:attribute name="class"> |
|
91 |
<xsl:choose> |
|
92 |
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when> |
|
93 |
<xsl:when test="position() mod 2 = 0">roweven</xsl:when> |
|
94 |
</xsl:choose> |
|
95 |
</xsl:attribute> |
|
96 |
|
|
97 |
<td width="10"> </td> |
|
98 |
<td class="text_plain"> |
|
99 |
<form action="@servlet-path@" method="POST"> |
|
100 |
<xsl:attribute name="name"> |
|
101 |
<xsl:value-of select="translate(./docid, '()-.', '____')" /> |
|
102 |
</xsl:attribute> |
|
103 |
|
|
104 |
<input type="hidden" name="qformat" /> |
|
105 |
<input type="hidden" name="sessionid" /> |
|
106 |
<xsl:if test="$enableediting = 'true'"> |
|
107 |
<input type="hidden" name="enableediting" value="{$enableediting}"/> |
|
108 |
</xsl:if> |
|
109 |
<input type="hidden" name="action" value="read"/> |
|
110 |
<input type="hidden" name="docid"> |
|
111 |
<xsl:attribute name="value"> |
|
112 |
<xsl:value-of select="./docid"/> |
|
113 |
</xsl:attribute> |
|
114 |
</input> |
|
115 |
<xsl:for-each select="./relation"> |
|
116 |
<input type="hidden" name="docid"> |
|
117 |
<xsl:attribute name="value" > |
|
118 |
<xsl:value-of select="./relationdoc" /> |
|
119 |
</xsl:attribute> |
|
120 |
</input> |
|
121 |
</xsl:for-each> |
|
122 |
|
|
123 |
<a> |
|
124 |
<xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="translate(./docid, '()-.', '____')"/>)</xsl:attribute> |
|
125 |
<xsl:text>» </xsl:text> |
|
126 |
<xsl:choose> |
|
127 |
<xsl:when test="./param[@name='entity/@name']!=''"> |
|
128 |
<xsl:value-of select="./param[@name='entity/@name']"/> |
|
129 |
</xsl:when> |
|
130 |
</xsl:choose> |
|
131 |
</a><br /> |
|
132 |
<br/> |
|
133 |
<p><pre>ID: <xsl:value-of select="./docid"/></pre></p> |
|
134 |
|
|
135 |
</form> |
|
136 |
</td> |
|
137 |
|
|
138 |
<!--<td class="text_plain"> |
|
139 |
<xsl:for-each select="./param[@name='entity/property[@name=semanticType]']" > |
|
140 |
<xsl:value-of select="./param" /> |
|
141 |
<br/> |
|
142 |
</xsl:for-each> |
|
143 |
</td>--> |
|
144 |
|
|
145 |
<xsl:if test="$enableediting = 'true'"> |
|
146 |
<td class="text_plain"> |
|
147 |
<form action="@servlet-path@" method="POST"> |
|
148 |
<input type="hidden" name="action" value="read"/> |
|
149 |
<input type="hidden" name="qformat" value="{$qformat}"/> |
|
150 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
151 |
<input type="hidden" name="docid"> |
|
152 |
<xsl:attribute name="value"> |
|
153 |
<xsl:value-of select="./docid"/> |
|
154 |
</xsl:attribute> |
|
155 |
</input> |
|
156 |
<center> |
|
157 |
<input type="SUBMIT" value=" View " name="View"> |
|
158 |
</input> |
|
159 |
</center> |
|
160 |
</form> |
|
161 |
<form action="@cgi-prefix@/register-dataset.cgi" |
|
162 |
method="POST"> |
|
163 |
<input type="hidden" name="stage" value="modify"/> |
|
164 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
|
165 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
166 |
<input type="hidden" name="docid"> |
|
167 |
<xsl:attribute name="value"> |
|
168 |
<xsl:value-of select="./docid"/> |
|
169 |
</xsl:attribute> |
|
170 |
</input> |
|
171 |
<center> |
|
172 |
<input type="SUBMIT" value=" Edit " name="Edit"> |
|
173 |
</input> |
|
174 |
</center> |
|
175 |
</form> |
|
176 |
<form action="@cgi-prefix@/register-dataset.cgi" |
|
177 |
method="POST"> |
|
178 |
<input type="hidden" name="stage" value="delete"/> |
|
179 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
|
180 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
181 |
<input type="hidden" name="docid"> |
|
182 |
<xsl:attribute name="value"> |
|
183 |
<xsl:value-of select="./docid"/> |
|
184 |
</xsl:attribute> |
|
185 |
</input> |
|
186 |
<center> |
|
187 |
<input type="SUBMIT" value="Delete" name="Delete"> |
|
188 |
</input> |
|
189 |
</center> |
|
190 |
</form> |
|
191 |
</td> |
|
192 |
</xsl:if> |
|
193 |
<td width="10"> </td> |
|
194 |
</tr> |
|
195 |
<tr class="searchresultsdivider"><td colspan="6"> |
|
196 |
<img src="@style-skins-path@/default/images/transparent1x1.gif" width="1" height="1" /></td></tr> |
|
197 |
|
|
198 |
</xsl:for-each> |
|
199 |
</table> |
|
200 |
|
|
201 |
</xsl:if> |
|
202 |
<script language="JavaScript"> |
|
203 |
insertTemplateClosing(); |
|
204 |
</script> |
|
205 |
</body> |
|
206 |
</html> |
|
207 |
</xsl:template> |
|
208 |
|
|
209 |
</xsl:stylesheet> |
|
0 | 210 |
lib/style/skins/kepler/kepler.cfg | ||
---|---|---|
1 |
# |
|
2 |
# General configuration parameters |
|
3 |
# |
|
4 |
metacatUrl = http://@server@@servlet-path@ |
|
5 |
username = uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org |
|
6 |
password = kepler |
|
7 |
ldapUrl = @ldapUrl@ |
|
8 |
defaultScope = keplerRepository |
|
9 |
organization = Kepler |
|
10 |
orgabbrev = Kepler |
|
11 |
orgurl = http://www.kepler-project.org/ |
|
12 |
responseTemplate = @responseForm@ |
|
13 |
entryFormTemplate = @entryForm@ |
|
14 |
guideTemplate = @guide@ |
|
15 |
confirmDataTemplate = @confirmData@ |
|
16 |
deleteDataTemplate = @deleteData@ |
|
17 |
spatialRequired = false |
|
18 |
temporalRequired = false |
|
19 |
accesspubid = -//ecoinformatics.org//eml-access-2.0.0beta6//EN |
|
20 |
accesssysid = eml-access.dtd |
|
21 |
datasetpubid = eml://ecoinformatics.org/eml-dataset-2.0.0 |
|
22 |
datasetsysid = eml-dataset.dtd |
|
23 |
mailhost = mercury.nceas.ucsb.edu |
|
24 |
sender = kepler@kepler-project.org |
|
25 |
recipient = kepler-users@ecoinformatics.org |
|
26 |
adminname = Chad Berkley |
|
27 |
debug = 0 |
|
28 |
|
|
0 | 29 |
lib/style/skins/kepler/kepler.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<style-set name="knp"> |
|
3 |
<!-- general login & search --> |
|
4 |
<default-style>@systemidserver@@style-common-path@/ascii-treeview.xsl</default-style> |
|
5 |
|
|
6 |
<doctype publicid="-//NCEAS//resultset//EN"> |
|
7 |
<target publicid="-//W3C//HTML//EN">@systemidserver@/keplerRepository/style/skins/kepler/resultset.xsl</target> |
|
8 |
</doctype> |
|
9 |
|
|
10 |
<doctype publicid="-//NCEAS//login//EN"> |
|
11 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/login.xsl</target> |
|
12 |
</doctype> |
|
13 |
<doctype publicid="-//NCEAS//unauth_login//EN"> |
|
14 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/login.xsl</target> |
|
15 |
</doctype> |
|
16 |
|
|
17 |
<!-- |
|
18 |
ARE THESE STILL NEEDED???????????? |
|
19 |
|
|
20 |
<doctype publicid="-//NCEAS//eml-generic//EN"> |
|
21 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/generic-morpho.xsl</target> |
|
22 |
</doctype> |
|
23 |
--> |
|
24 |
|
|
25 |
|
|
26 |
<!-- pre-beta6 modules --> |
|
27 |
<!-- NOTE these settings are unchanged from the previous version - only the xsl |
|
28 |
filename has changed from "eml-dataset-display.xsl" to "eml-dataset-2.0.0beta4.xsl" --> |
|
29 |
<doctype publicid="eml://ecoinformatics.org/eml-2.0.1"> |
|
30 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.1/eml.xsl</target> |
|
31 |
</doctype> |
|
32 |
<doctype publicid="eml://ecoinformatics.org/eml-2.0.0"> |
|
33 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0/eml.xsl</target> |
|
34 |
</doctype> |
|
35 |
<doctype publicid="-//NCEAS//eml-dataset//EN"> |
|
36 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
37 |
</doctype> |
|
38 |
<doctype publicid="-//NCEAS//eml-dataset-2.0//EN"> |
|
39 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
40 |
</doctype> |
|
41 |
<doctype publicid="-//NCEAS//eml-resource//EN"> |
|
42 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
43 |
</doctype> |
|
44 |
<doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN"> |
|
45 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target> |
|
46 |
</doctype> |
|
47 |
<!-- beta6 modules --> |
|
48 |
<doctype publicid="-//ecoinformatics.org//eml-access-2.0.0beta6//EN"> |
|
49 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-access-2.0.0beta6.xsl</target> |
|
50 |
</doctype> |
|
51 |
<doctype publicid="-//ecoinformatics.org//eml-attribute-2.0.0beta6//EN"> |
|
52 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-attribute-2.0.0beta6.xsl</target> |
|
53 |
</doctype> |
|
54 |
<doctype publicid="-//ecoinformatics.org//eml-constraint-2.0.0beta6//EN"> |
|
55 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-constraint-2.0.0beta6.xsl</target> |
|
56 |
</doctype> |
|
57 |
<doctype publicid="-//ecoinformatics.org//eml-coverage-2.0.0beta6//EN"> |
|
58 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-coverage-2.0.0beta6.xsl</target> |
|
59 |
</doctype> |
|
60 |
<doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN"> |
|
61 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-dataset-2.0.0beta6.xsl</target> |
|
62 |
</doctype> |
|
63 |
<doctype publicid="-//ecoinformatics.org//eml-entity-2.0.0beta6//EN"> |
|
64 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-entity-2.0.0beta6.xsl</target> |
|
65 |
</doctype> |
|
66 |
<doctype publicid="-//ecoinformatics.org//eml-literature-2.0.0beta6//EN"> |
|
67 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-literature-2.0.0beta6.xsl</target> |
|
68 |
</doctype> |
|
69 |
<doctype publicid="-//ecoinformatics.org//eml-physical-2.0.0beta6//EN"> |
|
70 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-physical-2.0.0beta6.xsl</target> |
|
71 |
</doctype> |
|
72 |
<doctype publicid="-//ecoinformatics.org//eml-project-2.0.0beta6//EN"> |
|
73 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-project-2.0.0beta6.xsl</target> |
|
74 |
</doctype> |
|
75 |
<doctype publicid="-//ecoinformatics.org//eml-protocol-2.0.0beta6//EN"> |
|
76 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-protocol-2.0.0beta6.xsl</target> |
|
77 |
</doctype> |
|
78 |
<doctype publicid="-//ecoinformatics.org//eml-software-2.0.0beta6//EN"> |
|
79 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-software-2.0.0beta6.xsl</target> |
|
80 |
</doctype> |
|
81 |
|
|
82 |
<!-- NBII/FGDC styles --> |
|
83 |
<doctype publicid="metadata"> |
|
84 |
<target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/fgdc/nbii-metacat.xsl</target> |
|
85 |
</doctype> |
|
86 |
</style-set> |
|
0 | 87 |
lib/style/skins/kepler/kepler.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(/knp/style/common/eml_xsl.css); |
|
37 |
b { |
|
38 |
font-weight: bold; |
|
39 |
} |
|
40 |
|
|
41 |
/** |
|
42 |
* set the correct iframe sizes to accomodate the |
|
43 |
* header, footer, left and right areas. |
|
44 |
* NOTE: these styles apply only to each |
|
45 |
* container frame, *NOT* to the document within it! |
|
46 |
*/ |
|
47 |
.iframeheaderclass { |
|
48 |
height: 155px; |
|
49 |
width: 98%; |
|
50 |
border: 0px; |
|
51 |
margin: 0px; |
|
52 |
margin-left: 10px; |
|
53 |
} |
|
54 |
|
|
55 |
.iframesearchboxclass { /* not used */ } |
|
56 |
.iframeleftcolclass { /* not used */ } |
|
57 |
.iframerightcolclass { |
|
58 |
position: fixed; |
|
59 |
right: 0px; |
|
60 |
top: 0px; |
|
61 |
width: 35px; |
|
62 |
height: 50em; |
|
63 |
border: 0px solid #525d76; |
|
64 |
background: transparent; |
|
65 |
} |
|
66 |
|
|
67 |
.iframefooterclass { /* not used */ } |
|
68 |
#mapTable { |
|
69 |
} |
|
70 |
|
|
71 |
/** |
|
72 |
* create a left margin for the document |
|
73 |
*/ |
|
74 |
|
|
75 |
body { margin-left: 70px; } |
|
76 |
|
|
77 |
/** |
|
78 |
* set the size and alignment etc of the top-level layout table |
|
79 |
*/ |
|
80 |
.templatetableclass { |
|
81 |
width: 100%; |
|
82 |
border: 0px; |
|
83 |
padding: 0px; |
|
84 |
margin: 0px; |
|
85 |
} |
|
86 |
|
|
87 |
|
|
88 |
/** |
|
89 |
* set the style of the main content area and its contents |
|
90 |
*/ |
|
91 |
.templatecontentareaclass { |
|
92 |
border: 0px; |
|
93 |
padding: 0px; |
|
94 |
margin: 0px; |
|
95 |
} |
|
96 |
|
|
97 |
|
|
98 |
/** |
|
99 |
* set the correct <td> sizes to accomodate the |
|
100 |
* header, footer, left and right iframes. |
|
101 |
* NOTE: these styles apply only to each |
|
102 |
* container frame, *NOT* to the document in |
|
103 |
* the iframe within it! |
|
104 |
*/ |
|
105 |
.templateheaderrowclass { |
|
106 |
height: 155px; |
|
107 |
/* |
|
108 |
no width allowed - uses same width as table class |
|
109 |
*/ |
|
110 |
border: 0px; |
|
111 |
padding: 0px; |
|
112 |
margin: 0px; |
|
113 |
} |
|
114 |
|
|
115 |
|
|
116 |
.templateleftcolclass { |
|
117 |
height: 100%; |
|
118 |
width: 0px; |
|
119 |
border: 0px; |
|
120 |
padding: 0px; |
|
121 |
margin: 0px; |
|
122 |
} |
|
123 |
|
|
124 |
|
|
125 |
.templaterightcolclass { |
|
126 |
height: 100%; |
|
127 |
width: 0px; |
|
128 |
border: 0px; |
|
129 |
padding: 0px; |
|
130 |
margin: 0px; |
|
131 |
} |
|
132 |
|
|
133 |
|
|
134 |
.templatefooterrowclass { |
|
135 |
height: 0px; |
|
136 |
/* |
|
137 |
no width allowed - uses same width as table class |
|
138 |
*/ |
|
139 |
border: 0px; |
|
140 |
padding: 0px; |
|
141 |
margin: 0px; |
|
142 |
} |
|
143 |
|
|
144 |
|
|
145 |
/** |
|
146 |
* these override styles imported from eml css |
|
147 |
*/ |
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
.sectionnames{ |
|
152 |
font-weight: bold; |
|
153 |
font-size: 16px; |
|
154 |
color: #096B79; |
|
155 |
} |
|
156 |
|
|
157 |
.linkedHeaderStyle{ |
|
158 |
|
|
159 |
background-color: #A3DADA; |
|
160 |
padding-left: 16%; |
|
161 |
} |
|
162 |
|
|
163 |
.title { |
|
164 |
font-family: Georgia, Times New Roman, Times, serif; |
|
165 |
color: black; |
|
166 |
background: white; |
|
167 |
font-size: 24px; |
|
168 |
font-weight: bold; |
|
169 |
} |
|
170 |
|
|
171 |
.secondCol{ |
|
172 |
background-color: #ffffff; |
|
173 |
font-size: 12px; |
|
174 |
padding-left: 5px; |
|
175 |
} |
|
176 |
|
|
177 |
.highlight { |
|
178 |
color: #096B79; |
|
179 |
background-color: #FFFFFF; |
|
180 |
font-style: italic; |
|
181 |
font-size: 1em; |
|
182 |
padding-left: 10px; |
|
183 |
} |
|
184 |
|
|
185 |
.citation { |
|
186 |
color: black; |
|
187 |
background-color: #FFFFFF; |
|
188 |
font-size: 1.2em; |
|
189 |
padding-left: 10px; |
|
190 |
} |
|
191 |
|
|
192 |
.tablehead { |
|
193 |
color: #096B79; |
|
194 |
background: #FFFFFF; |
|
195 |
text-align: left; |
|
196 |
font-size: 14px; |
|
197 |
font-weight: bold; |
|
198 |
border-top: solid #ffffff 15px; |
|
199 |
border-bottom: solid #dddddd 1px; |
|
200 |
padding-left: 10px; |
|
201 |
padding-top: 0px; |
|
202 |
padding-bottom: 0px; |
|
203 |
} |
|
204 |
|
|
205 |
th.tablehead { |
|
206 |
|
|
207 |
text-align: center; |
|
208 |
border-bottom: solid #006666 1px; |
|
209 |
margin: 0px; |
|
210 |
padding: 0px; |
|
211 |
height: 21px; |
|
212 |
} |
|
213 |
|
|
214 |
.tablehead_lcorner { |
|
215 |
background-position: right top; |
|
216 |
background-repeat: no-repeat; |
|
217 |
padding: 0px; |
|
218 |
margin: 0px; |
|
219 |
width: 10px; |
|
220 |
height: 21px; |
|
221 |
} |
|
222 |
|
|
223 |
.tablehead_rcorner { |
|
224 |
background-position: left top; |
|
225 |
background-repeat: no-repeat; |
|
226 |
padding: 0px; |
|
227 |
margin: 0px; |
|
228 |
width: 10px; |
|
229 |
height: 21px; |
|
230 |
} |
|
231 |
|
|
232 |
.lsid { |
|
233 |
text-decoration: underline; |
|
234 |
} |
|
235 |
|
|
236 |
a { |
|
237 |
color: #096B79; |
|
238 |
font-weight: bold; |
|
239 |
font-size: 12px; |
|
240 |
text-decoration: underline; } |
|
241 |
|
|
242 |
a:hover { |
|
243 |
color: #ECCE00; |
|
244 |
text-decoration: underline; } |
|
245 |
|
|
246 |
/** |
|
247 |
* these are used only in the metacat pages |
|
248 |
*/ |
|
249 |
|
|
250 |
p.emphasis { |
|
251 |
|
|
252 |
font-size: 18px; |
|
253 |
color: #dd7744; |
|
254 |
font-weight: bold; |
|
255 |
font-style: normal; |
|
256 |
} |
|
257 |
|
|
258 |
.searchresultsdivider { |
|
259 |
background-color: #dddddd; |
|
260 |
} |
|
261 |
|
|
262 |
/** |
|
263 |
* these are used only in the registry skins |
|
264 |
*/ |
|
265 |
|
|
266 |
|
|
267 |
|
|
268 |
|
|
269 |
p.searchbox { |
|
270 |
color: #096B79; |
|
271 |
font-weight: bold; |
|
272 |
font-size: 12px; |
|
273 |
text-decoration: none; |
|
274 |
} |
|
275 |
|
|
276 |
br { |
|
277 |
margin: 0px; |
|
278 |
padding: 0px; |
|
279 |
} |
|
280 |
|
|
281 |
|
|
282 |
.headertopmargin { |
|
283 |
margin-top: 10; |
|
284 |
} |
|
285 |
|
|
286 |
.intro { |
|
287 |
width: 760px; |
|
288 |
margin-left: 15px; |
|
289 |
} |
|
290 |
|
|
291 |
textarea { |
|
292 |
width: 80%; |
|
293 |
} |
|
294 |
|
|
295 |
.required { |
|
296 |
font-weight: bold; |
|
297 |
color: #b00000; |
|
298 |
} |
|
299 |
|
|
300 |
.label { |
|
301 |
font-weight: bold; |
|
302 |
} |
|
303 |
|
|
304 |
|
|
305 |
.emphasis { |
|
306 |
font-weight: bold; |
|
307 |
font-size: 18px; |
|
308 |
color: #000000; |
|
309 |
} |
|
310 |
|
|
311 |
.colorbold { |
|
312 |
font-weight: bold; |
|
313 |
color: #096B79; |
|
314 |
font-size: 12px; |
|
315 |
} |
|
316 |
|
|
317 |
.boldlink { |
|
318 |
font-weight: bold; |
|
319 |
font-size: 12px; |
|
320 |
} |
|
321 |
|
|
322 |
|
|
323 |
.redbold { |
|
324 |
font-weight: bold; |
|
325 |
color: #b00000; |
|
326 |
font-size: 12px; |
|
327 |
} |
|
328 |
|
|
329 |
.greenbold { |
|
330 |
font-weight: bold; |
|
331 |
color: #096B79; |
|
332 |
font-size: 12px; |
|
333 |
} |
|
334 |
|
|
335 |
.smalltext { |
|
336 |
font-weight: bold; |
|
337 |
font-size: 10px; |
|
338 |
vertical-align: super; |
|
339 |
} |
|
340 |
|
|
341 |
.largetext { |
|
342 |
font-weight: bold; |
|
343 |
font-size: 16px; |
|
344 |
} |
|
345 |
|
|
346 |
.italicized { |
|
347 |
font-style: italic; |
|
348 |
font-size: 12px; |
|
349 |
} |
|
350 |
|
|
351 |
.regtext { |
|
352 |
font-weight: normal; |
|
353 |
font-size: 12px; |
|
354 |
} |
|
355 |
.sectbody { |
|
356 |
background: #DEF1F1; |
|
357 |
font-size: 12px; |
|
358 |
font-weight: bold;} |
|
359 |
|
|
360 |
.sectheader { |
|
361 |
background: #A3DADA; |
|
362 |
font-size: 12px; |
|
363 |
font-weight: bold;} |
|
364 |
|
|
365 |
.tables { |
|
366 |
width: 760px; |
|
367 |
margin-left: 20px; |
|
368 |
border-top: solid black 1px; |
|
369 |
border-left: solid black 1px; |
|
370 |
border-right: solid black 1px; |
|
371 |
} |
|
372 |
|
|
373 |
.hide { |
|
374 |
display:none; |
|
375 |
} |
|
376 |
|
|
377 |
.showLink { |
|
378 |
cursor: pointer; |
|
379 |
cursor: hand; |
|
380 |
display:empty; |
|
381 |
} |
|
382 |
|
|
383 |
.bordertop { |
|
384 |
border-top: solid black 1px; |
|
385 |
} |
|
386 |
|
|
387 |
.borderbottom { |
|
388 |
border-bottom: 1px solid black;} |
|
389 |
|
|
390 |
.topbottom { |
|
391 |
border-top: 1px solid black; |
|
392 |
border-bottom: 1px solid black; |
|
393 |
} |
|
394 |
|
|
395 |
.longwidth { |
|
396 |
width: 80%; |
|
397 |
} |
|
398 |
|
|
399 |
.shortwidth { |
|
400 |
width: 40%; |
|
401 |
} |
|
402 |
|
|
403 |
.rightCol { |
|
404 |
width: 24%; |
|
405 |
text-align: right; |
|
406 |
} |
|
407 |
|
|
0 | 408 |
lib/style/skins/kepler/index.html | ||
---|---|---|
1 |
<!-- |
|
2 |
* '$RCSfile$' |
|
3 |
* Authors: Matt Jones |
|
4 |
* Copyright: 2000 Regents of the University of California and the |
|
5 |
* National Center for Ecological Analysis and Synthesis |
|
6 |
* For Details: http://www.nceas.ucsb.edu/ |
|
7 |
* |
|
8 |
* '$Author$' |
|
9 |
* '$Date$' |
|
10 |
* '$Revision$' |
|
11 |
* |
|
12 |
* This is an HTML document for displaying metadata catalog tools |
|
13 |
* |
|
14 |
* This program is free software; you can redistribute it and/or modify |
|
15 |
* it under the terms of the GNU General Public License as published by |
|
16 |
* the Free Software Foundation; either version 2 of the License, or |
|
17 |
* (at your option) any later version. |
|
18 |
* |
|
19 |
* This program is distributed in the hope that it will be useful, |
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22 |
* GNU General Public License for more details. |
|
23 |
* |
|
24 |
* You should have received a copy of the GNU General Public License |
|
25 |
* along with this program; if not, write to the Free Software |
|
26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
27 |
--> |
|
28 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
29 |
<html> |
|
30 |
<head> |
|
31 |
<title>Kepler Analytical Repository</title> |
|
32 |
<link rel="stylesheet" href="@html-path@/style/default.css" type="text/css"> |
|
33 |
<link rel="stylesheet" type="text/css" |
|
34 |
href="@systemidserver@@style-skins-path@/kepler/kepler.css"></link> |
|
35 |
<script language="JavaScript" type="text/JavaScript" |
|
36 |
src="@systemidserver@@style-skins-path@/kepler/kepler.js"></script> |
|
37 |
<script language="JavaScript" type="text/JavaScript" |
|
38 |
src="@systemidserver@@style-common-path@/branding.js"></script> |
|
39 |
</head> |
|
40 |
<body> |
|
41 |
<script language="JavaScript"> |
|
42 |
insertTemplateOpening(); |
|
43 |
insertSearchBox(); |
|
44 |
</script> |
|
45 |
<table width="760" border="0" cellspacing="0" cellpadding="0"> |
|
46 |
<tr><td colspan="5"> |
|
47 |
<p> |
|
48 |
Welcome to the Kepler Analytical Repository. This repository hosts Kepler |
|
49 |
analytical components (actors) on the Ecogrid. You can search for actors, |
|
50 |
then download and import them into Kepler. Eventually, you will be able |
|
51 |
to search this repository directly from Kepler. |
|
52 |
</p> |
|
53 |
<p> </p> |
|
54 |
<p><b>Repository Tools</b></p> |
|
55 |
<p> |
|
56 |
<menu> |
|
57 |
<li><span class="searchbox">Search for Data</span><br /> |
|
58 |
<menu> |
|
59 |
<form method="POST" action="@servlet-path@" target="_top"> |
|
60 |
<input value="INTERSECT" name="operator" type="hidden"> |
|
61 |
<input size="14" name="anyfield" type="text" value=""> |
|
62 |
<input name="action" value="query" type="hidden"> |
|
63 |
<input name="qformat" value="kepler" type="hidden"> |
|
64 |
<input name="enableediting" value="false" type="hidden"> |
|
65 |
<input name="operator" value="UNION" type="hidden"> |
|
66 |
<input name="returnfield" value="entity/@name" type="hidden"> |
|
67 |
<input name="returndoctype" value="entity" type="hidden"> |
|
68 |
<input value="Search" type="submit"> |
|
69 |
</form> |
|
70 |
The repository search system is used to locate analytical components of interest |
|
71 |
by searching through existing registered components. |
|
72 |
Use a '%' symbol as a wildcard in searches |
|
73 |
(e.g., '%Constant%' would locate any phrase with the word |
|
74 |
'Constant' embedded within it). |
|
75 |
</menu> |
|
76 |
<p> </p> |
|
77 |
<li><a href="@servlet-path@?action=query&operator=INTERSECT&anyfield=%25&qformat=kepler&enableediting=false&returndoctype=entity&returnfield=entity/@name">Browse existing Kepler analytical components</a><br /> |
|
78 |
<menu> |
|
79 |
Browse all existing data sets by title. This operation can slow as the |
|
80 |
number of entries in the repository grows. |
|
81 |
</menu> |
|
82 |
</li> |
|
83 |
<p> </p> |
|
84 |
<li>Login |
|
85 |
<br /> |
|
86 |
<menu> |
|
87 |
<form name="loginform" method="post" action="@servlet-path@" |
|
88 |
target="_top" onsubmit="return submitform(this);" id="loginform"> |
|
89 |
<input type="hidden" name="action" value="login"> <input type= |
|
90 |
"hidden" name="username" value=""> <input type="hidden" name= |
|
91 |
"qformat" value="kepler"> <input type="hidden" name= |
|
92 |
"enableediting" value="false"> |
|
93 |
|
|
94 |
<table> |
|
95 |
<tr valign="middle"> |
|
96 |
<td align="left" valign="middle" class="text_plain"> |
|
97 |
username:</td> |
|
98 |
|
|
99 |
<td width="173" align="left" class="text_plain" style= |
|
100 |
"padding-top: 2px; padding-bottom: 2px;"><input name="uid" |
|
101 |
type="text" style="width: 140px;" value="kepler"></td> |
|
102 |
</tr> |
|
103 |
|
|
104 |
<tr valign="middle"> |
|
105 |
<td height="28" align="left" valign="middle" class= |
|
106 |
"text_plain">organization:</td> |
|
107 |
|
|
108 |
<td align="left" class="text_plain" style= |
|
109 |
"padding-top: 2px; padding-bottom: 2px;"><select name= |
|
110 |
"organization" style="width:140px;"> |
|
111 |
<option value="unaffiliated">unaffiliated</option> |
|
112 |
</select></td> |
|
113 |
</tr> |
|
114 |
|
|
115 |
<tr valign="middle"> |
|
116 |
<td width="85" align="left" valign="middle" class= |
|
117 |
"text_plain">password:</td> |
|
118 |
|
|
119 |
<td colspan="2" align="left" class="text_plain" style= |
|
120 |
"padding-top: 2px; padding-bottom: 2px;"> |
|
121 |
<table width="100%" border="0" cellpadding="0" |
|
122 |
cellspacing="0"> |
|
123 |
<tr> |
|
124 |
<td width="150" align="left"><input name="password" |
|
125 |
type="password" maxlength="50" style="width:140px;" |
|
126 |
value="kepler"></td> |
|
127 |
|
|
128 |
<td align="center" class="buttonBG_login"> |
|
129 |
<input type="submit" name="loginAction" value="Login" |
|
130 |
class="button_login"></td> |
|
131 |
|
|
132 |
<td align="left"> </td> |
|
133 |
</tr> |
|
134 |
</table> |
|
135 |
</td> |
|
136 |
</tr> |
|
137 |
</table> |
|
138 |
</form> |
|
139 |
</menu> |
|
140 |
</li> |
|
141 |
</menu> |
|
142 |
</p> |
|
143 |
</td></tr> |
|
144 |
</table> |
|
145 |
<p> </p> |
|
146 |
<script language="JavaScript"> |
|
147 |
insertTemplateClosing(); |
|
148 |
</script> |
|
149 |
</body> |
|
150 |
</html> |
|
0 | 151 |
lib/style/skins/kepler/header.html | ||
---|---|---|
1 |
<!-- |
|
2 |
'$RCSfile$' |
|
3 |
Copyright: 2003 Regents of the University of California and the |
|
4 |
National Center for Ecological Analysis and Synthesis |
|
5 |
'$Author$' |
|
6 |
'$Date$' |
|
7 |
'$Revision$' |
|
8 |
|
|
9 |
This program is free software; you can redistribute it and/or modify |
|
10 |
it under the terms of the GNU General Public License as published by |
|
11 |
the Free Software Foundation; either version 2 of the License, or |
|
12 |
(at your option) any later version. |
|
13 |
|
|
14 |
This program is distributed in the hope that it will be useful, |
|
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
GNU General Public License for more details. |
|
18 |
|
|
19 |
You should have received a copy of the GNU General Public License |
|
20 |
along with this program; if not, write to the Free Software |
|
21 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
--> |
|
23 |
<!--____________________________max_width____________________________________--> |
|
24 |
|
|
25 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
26 |
<html> |
|
27 |
<head> |
|
28 |
<title>Kepler Analytical Repository</title> |
|
29 |
<link rel="stylesheet" type="text/css" |
|
30 |
href="@systemidserver@@style-skins-path@/kepler/kepler.css"></link> |
|
31 |
</head> |
|
32 |
|
|
33 |
<body> |
|
34 |
<table width="760" border="0" cellspacing="0" cellpadding="0"> |
|
35 |
<tr> |
|
36 |
<td valign="middle" colspan="4" class="title">Kepler Analytical Component Repository</td> |
|
37 |
<td rowspan="3" width="20%" valign="top"> |
|
38 |
<div align="right"><img src="@systemidserver@@style-skins-path@/kepler/kepler-logo.png"></div> |
|
39 |
</td> |
|
40 |
</tr> |
|
41 |
<tr> |
|
42 |
<td class="spacerrow" valign="top" colspan="4"> </td> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<td valign="top" width="20%"> |
|
46 |
<p><a href="http://www.kepler-project.org/" target="_top">Kepler Home</a></p> |
|
47 |
</td> |
|
48 |
<td valign="top" width="20%"> |
|
49 |
<p><a href="@systemidserver@@style-skins-path@/kepler/index.html" target="_top">Repository Home</a></p> |
|
50 |
</td> |
|
51 |
<!-- |
|
52 |
<td valign="top" width="20%"> |
|
53 |
<p><a href="@cgi-prefix@/register-dataset.cgi?cfg=kepler" target="_top">Register New Dataset</a></p> |
|
54 |
</td> |
|
55 |
--> |
|
56 |
<td valign="top" width="20%"> |
|
57 |
<p class="searchbox"> |
|
58 |
Search for Data<br /> |
|
59 |
<form method="POST" action="@servlet-path@" target="_top"> |
|
60 |
<input value="INTERSECT" name="operator" type="hidden"> |
|
61 |
<input size="14" name="anyfield" type="text" value=""> |
|
62 |
<!--<input name="organizationName" value="Kruger National Park" type="hidden">--> |
|
63 |
<input name="action" value="query" type="hidden"> |
|
64 |
<input name="qformat" value="kepler" type="hidden"> |
|
65 |
<input name="enableediting" value="false" type="hidden"> |
|
66 |
<input name="operator" value="UNION" type="hidden"> |
|
67 |
<input name="returnfield" value="entity/@name" type="hidden"> |
|
68 |
<input name="returndoctype" value="entity" type="hidden"> |
|
69 |
<!-- <input value="Start Search" type="submit"> --> |
|
70 |
</form> |
|
71 |
</p> |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
</table> |
|
75 |
</body> |
|
76 |
</html> |
|
0 | 77 |
lib/style/skins/kepler/searchform.html | ||
---|---|---|
1 |
<form method="POST" action="@servlet-path@" target="_top"> |
|
2 |
Search for: |
|
3 |
<input value="INTERSECT" name="operator" type="hidden"> |
|
4 |
<input size="14" name="anyfield" type="text" value=""> |
|
5 |
<input name="action" value="query" type="hidden"> |
|
6 |
<input name="qformat" value="knp" type="hidden"> |
|
7 |
<input name="enableediting" value="false" type="hidden"> |
|
8 |
<input name="operator" value="UNION" type="hidden"> |
|
9 |
<input name="returnfield" value="entity/@name" type="hidden"> |
|
10 |
<input name="returndoctype" value="entity" type="hidden"> |
|
11 |
<input value="Start Search" type="submit"> |
|
12 |
</form> |
|
0 | 13 |
lib/style/skins/kepler/kepler.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 |
|
|
88 |
// Location of the header that will be displayed at the top of the page |
|
89 |
var HEADER_URL |
|
90 |
= "@systemidserver@/@context@@style-skins-relpath@/kepler/header.html"; |
|
91 |
|
|
92 |
// Location of the search box that will be displayed above the |
|
93 |
// results on the results page (optional) |
|
94 |
var SEARCHBOX_URL |
|
95 |
= ""; |
|
96 |
//= "@systemidserver@/@context@@style-skins-relpath@/kepler/searchform.html"; |
|
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 |
// |
|
185 |
// Skin specific functions |
|
186 |
function submitform(formObj) { |
|
187 |
|
|
188 |
if (trim(formObj.elements["loginAction"].value)!="Login") return true; |
|
189 |
//trim username & passwd: |
|
190 |
var username = trim(formObj.elements["uid"].value); |
|
191 |
var organization = trim(formObj.elements["organization"].value); |
|
192 |
var password = trim(formObj.elements["password"].value); |
|
193 |
|
|
194 |
if (username=="") { |
|
195 |
alert("You must type a username. \n"+popupMsg); |
|
196 |
formObj.elements["uid"].focus(); |
|
197 |
return false; |
|
198 |
} |
|
199 |
|
|
200 |
if (organization=="") { |
|
201 |
alert("You must select an organization. \n"+popupMsg); |
|
202 |
formObj.elements["organization"].focus(); |
|
203 |
return false; |
|
204 |
} |
|
205 |
|
|
206 |
if (password=="") { |
|
207 |
alert("You must type a password. \n"+popupMsg); |
|
208 |
formObj.elements["password"].focus(); |
|
209 |
return false; |
|
210 |
} |
|
211 |
|
|
212 |
formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org"; |
|
213 |
return true; |
|
214 |
} |
|
215 |
|
|
216 |
function trim(stringToTrim) { |
|
217 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,''); |
|
218 |
} |
|
0 | 219 |
Also available in: Unified diff
new skin to handle browsing the kepler archive.