Revision 5501
Added by Jing Tao over 14 years ago
lib/style/skins/kepler/resultset.xsl | ||
---|---|---|
256 | 256 |
if there are not then don't show the query results --> |
257 | 257 |
|
258 | 258 |
<xsl:if test="count(resultset/document) > 0"> |
259 |
<table cellspacing="0" cellpadding="0" style="width: 100%;">
|
|
259 |
<table cellspacing="0" cellpadding="0" width="100%">
|
|
260 | 260 |
<tr> |
261 | 261 |
<th class="tablehead" style="width: 1px;"></th> |
262 |
<th class="tablehead" style="width: 1px;">Kar</th> |
|
262 | 263 |
<th class="tablehead" style="width: 1px;">Component</th> |
263 | 264 |
<th class="tablehead" style="width: 15em;">Author</th> |
264 | 265 |
<th class="tablehead">Version</th> |
... | ... | |
274 | 275 |
<xsl:value-of select="position()"/>. |
275 | 276 |
</td> |
276 | 277 |
|
277 |
<td class="text_plain" style="white-space: nowrap;"> |
|
278 |
<xsl:if test="./param[@name='karEntry/karEntryXML/entity/@name']!=''"> |
|
279 |
<b style="font-size: larger;"> |
|
280 |
<xsl:value-of select="./param[@name='karEntry/karEntryXML/entity/@name']"/> |
|
281 |
</b> |
|
282 |
</xsl:if> |
|
278 |
<td class="text_plain" style="white-space: nowrap;"> |
|
279 |
<xsl:choose> |
|
280 |
<xsl:when test="./param[@name='karFileName']!=''"> |
|
281 |
<b style="font-size: larger;"> |
|
282 |
<xsl:value-of select="substring-before(./param[@name='karFileName'], '.')"/> |
|
283 |
</b> |
|
284 |
</xsl:when> |
|
285 |
<xsl:otherwise> |
|
286 |
<xsl:value-of select="'Null'"/> |
|
287 |
</xsl:otherwise> |
|
288 |
</xsl:choose> |
|
283 | 289 |
</td> |
290 |
|
|
291 |
<td class="text_plain"> |
|
292 |
<xsl:for-each select="./param[@name='karEntry/karEntryXML/entity/@name']"> |
|
293 |
|
|
294 |
<xsl:value-of select="./"/> |
|
295 |
<xsl:if test="position() != last()"> |
|
296 |
<xsl:value-of select="', '"/> |
|
297 |
</xsl:if> |
|
298 |
</xsl:for-each> |
|
299 |
</td> |
|
284 | 300 |
|
285 | 301 |
<td class="text_plain"> |
286 |
<xsl:value-of select="./param[@name=concat('karEntry/karEntryXML/entity/property[@name=', $sq, 'author', $sq, ']/configure')]"/> |
|
302 |
<xsl:for-each select="./param[@name=concat('karEntry/karEntryXML/entity/property[@name=', $sq, 'author', $sq, ']/configure')]"> |
|
303 |
<xsl:value-of select="./"/> |
|
304 |
<xsl:if test="position() != last()"> |
|
305 |
<xsl:value-of select="', '"/> |
|
306 |
</xsl:if> |
|
307 |
</xsl:for-each> |
|
287 | 308 |
</td> |
288 | 309 |
|
289 | 310 |
<td class="text_plain"> |
290 |
<xsl:value-of select="./param[@name=concat('karEntry/karEntryXML/entity/property[@name=', $sq, 'KeplerDocumentation', $sq, ']/property[@name=', $sq, 'version', $sq, ']/configure')]"/> |
|
311 |
<xsl:for-each select="./param[@name=concat('karEntry/karEntryXML/entity/property[@name=', $sq, 'KeplerDocumentation', $sq, ']/property[@name=', $sq, 'version', $sq, ']/configure')]"> |
|
312 |
<xsl:value-of select="./"/> |
|
313 |
<xsl:if test="position() != last()"> |
|
314 |
<xsl:value-of select="', '"/> |
|
315 |
</xsl:if> |
|
316 |
</xsl:for-each> |
|
291 | 317 |
</td> |
292 | 318 |
|
293 | 319 |
<td class="text_plain"> |
... | ... | |
312 | 338 |
|
313 | 339 |
<tr> |
314 | 340 |
<td class="text_plain"></td> |
315 |
<td class="text_plain" colspan="6">
|
|
341 |
<td class="text_plain" colspan="5">
|
|
316 | 342 |
<xsl:variable name="docClip" select="substring(./param[@name=concat('karEntry/karEntryXML/entity/property[@name=', $sq, 'KeplerDocumentation', $sq, ']/property[@name=', $sq, 'userLevelDocumentation', $sq, ']/configure')], 0, 200)"/> |
317 | 343 |
<xsl:value-of select="$docClip"/> |
318 | 344 |
<xsl:text> </xsl:text> |
lib/style/skins/kepler/header.jsp | ||
---|---|---|
38 | 38 |
</head> |
39 | 39 |
|
40 | 40 |
<body> |
41 |
<table width="760" border="0" cellspacing="0" cellpadding="0">
|
|
41 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
42 | 42 |
<tr> |
43 | 43 |
<td rowspan="3" width="15%" valign="top"> |
44 | 44 |
<div align="left"><img src="<%=STYLE_SKINS_URL%>/kepler/kepler-logo.png"></div> |
45 | 45 |
</td> |
46 |
<td valign="middle" colspan="4" class="title">Kepler Analytical Component Repository</td>
|
|
46 |
<td valign="middle" colspan="2" class="title">Kepler Analytical Component Repository</td>
|
|
47 | 47 |
</tr> |
48 | 48 |
<tr> |
49 |
<td class="spacerrow" valign="top" colspan="4"> </td>
|
|
49 |
<td class="spacerrow" valign="top" colspan="3"> </td>
|
|
50 | 50 |
</tr> |
51 |
<tr>
|
|
52 |
<td valign="top" width="20%">
|
|
51 |
<tr> |
|
52 |
<td valign="top" width="30%">
|
|
53 | 53 |
<p><a href="http://www.kepler-project.org/" target="_top">Kepler Home</a></p> |
54 | 54 |
</td> |
55 |
<td valign="top" width="20%">
|
|
55 |
<td valign="top" width="30%">
|
|
56 | 56 |
<p><a href="<%=STYLE_SKINS_URL%>/kepler/index.jsp" target="_top">Repository Home</a></p> |
57 | 57 |
</td> |
58 |
<td valign="top" width="20%"> |
|
59 |
<p class="searchbox"> |
|
60 |
Search for Data<br /> |
|
61 |
<form method="POST" action="<%=SERVLET_URL%>" target="_top"> |
|
62 |
<input size="14" name="anyfield" type="text" value=""> |
|
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="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='author']/configure" type="hidden"> |
|
69 |
<input name="returnfield" value="entity/property[@name='karId']/@value" type="hidden"> |
|
70 |
<input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='version']/configure" type="hidden"> |
|
71 |
<input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='description']/configure" type="hidden"> |
|
72 |
<input name="returnfield" value="entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure" type="hidden"> |
|
73 |
<input name="returndoctype" value="entity" type="hidden"> |
|
74 |
<input name="pagestart" value="0" type="hidden"> |
|
75 |
<input name="pagesize" value="10" type="hidden"> |
|
76 |
<!-- <input value="Start Search" type="submit"> --> |
|
77 |
</form> |
|
78 |
</p> |
|
79 |
</td> |
|
58 |
<td valign="top" width="30%"> </td> |
|
80 | 59 |
</tr> |
81 | 60 |
</table> |
82 | 61 |
</body> |
lib/style/skins/kepler/karxml.xsl | ||
---|---|---|
6 | 6 |
* National Center for Ecological Analysis and Synthesis |
7 | 7 |
* For Details: http://www.nceas.ucsb.edu/ |
8 | 8 |
* |
9 |
* '$Author: leinfelder $'
|
|
10 |
* '$Date: 2008-06-17 13:16:32 -0700 (Tue, 17 Jun 2008) $'
|
|
11 |
* '$Revision: 4006 $'
|
|
9 |
* '$Author: tao $'
|
|
10 |
* '$Date: 2010-08-13 11:10:50 -0700 (Fri, 13 Aug 2010) $'
|
|
11 |
* '$Revision: 5498 $'
|
|
12 | 12 |
* |
13 | 13 |
* This program is free software; you can redistribute it and/or modify |
14 | 14 |
* it under the terms of the GNU General Public License as published by |
... | ... | |
51 | 51 |
<link rel="stylesheet" type="text/css" |
52 | 52 |
href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" /> |
53 | 53 |
|
54 |
<script language="Javascript" type="text/JavaScript" |
|
55 |
src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js"> |
|
56 |
<xsl:text disable-output-escaping="yes"> |
|
57 |
</xsl:text> |
|
58 |
</script> |
|
59 |
<script language="Javascript" type="text/JavaScript" |
|
60 |
src="{$contextURL}/style/common/branding.js"> |
|
61 |
<xsl:text disable-output-escaping="yes"> |
|
62 |
</xsl:text> |
|
63 |
</script> |
|
54 | 64 |
<style type="text/css"> |
55 | 65 |
<xsl:text disable-output-escaping="yes"> |
56 | 66 |
body, a, p, td, tr, h3, h2, h1 |
... | ... | |
90 | 100 |
</head> |
91 | 101 |
|
92 | 102 |
<body> |
103 |
<script language="JavaScript"> |
|
104 |
<![CDATA[ |
|
105 |
insertTemplateOpening("]]><xsl:value-of select="$contextURL" /><![CDATA["); |
|
106 |
]]> |
|
107 |
</script> |
|
93 | 108 |
<table cellspacing="8" cellpadding="0" style="border: none; width: 100%;" class="main"> |
94 | 109 |
<colgroup></colgroup> |
95 | 110 |
<colgroup style="width: 75%;"></colgroup> |
96 | 111 |
<colgroup style="width: 25%;"></colgroup> |
97 | 112 |
|
98 | 113 |
<tr class="top-level"> |
99 |
<td colspan="2">
|
|
114 |
<td colspan="3">
|
|
100 | 115 |
<h1> |
101 | 116 |
<span style="padding-right: 2em;"> |
102 |
<xsl:value-of select="//karEntry/karEntryXML/entity/@name"/>
|
|
117 |
<xsl:value-of select="substring-before(//karFileName, '.')"/>
|
|
103 | 118 |
</span> |
104 | 119 |
|
105 | 120 |
<span style="font-size: smaller;"> |
106 |
<xsl:text> (</xsl:text> |
|
107 |
<xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='class']/@value"/> |
|
108 |
<xsl:text>)</xsl:text> |
|
109 |
</span> |
|
110 |
</h1> |
|
111 |
</td> |
|
112 |
|
|
113 |
<td> |
|
114 |
<table cellspacing="0" cellpadding="0"> |
|
115 |
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='author']) > 0"> |
|
116 |
<tr> |
|
117 |
<td style="font-style: italic;"> |
|
118 |
Author: |
|
119 |
</td> |
|
120 |
|
|
121 |
<td> |
|
122 |
<xsl:for-each select="//karEntry/karEntryXML/entity/property[@name='author']"> |
|
123 |
<xsl:if test="position() > 1"> |
|
124 |
<xsl:text>, </xsl:text> |
|
125 |
</xsl:if> |
|
126 |
|
|
127 |
<xsl:value-of select="configure"/> |
|
128 |
</xsl:for-each> |
|
129 |
</td> |
|
130 |
</tr> |
|
131 |
</xsl:if> |
|
132 |
|
|
133 |
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']) > 0"> |
|
134 |
<tr> |
|
135 |
<td style="font-style: italic;"> |
|
136 |
Version: |
|
137 |
</td> |
|
138 |
|
|
139 |
<td> |
|
140 |
<xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']/configure"/> |
|
141 |
</td> |
|
142 |
</tr> |
|
143 |
</xsl:if> |
|
144 |
</table> |
|
145 |
</td> |
|
146 |
</tr> |
|
147 |
|
|
148 |
<tr class="top-level" style="vertical-align: top;"> |
|
149 |
<td> |
|
150 |
<img alt="Actor Image"> |
|
151 |
<xsl:attribute name="src"> |
|
152 |
<xsl:text>metacat?qformat=</xsl:text> |
|
153 |
<xsl:value-of select="$qformat"/> |
|
154 |
<xsl:text>&sessionid=</xsl:text> |
|
155 |
<xsl:value-of select="$sessid"/> |
|
156 |
<xsl:text>&action=read&docid=</xsl:text> |
|
157 |
<!--xsl:value-of select="./docid"/--><xsl:text>PLASMA</xsl:text> |
|
158 |
</xsl:attribute> |
|
159 |
</img> |
|
160 |
|
|
161 |
<div style="text-align: center;"> |
|
162 |
<xsl:variable name="karDocid"> |
|
121 |
<xsl:variable name="karDocid"> |
|
163 | 122 |
<xsl:call-template name="extractDocidFromLsid"> |
164 | 123 |
<xsl:with-param name="lsidString" select="//mainAttributes/lsid" /> |
165 | 124 |
</xsl:call-template> |
... | ... | |
167 | 126 |
|
168 | 127 |
<a> |
169 | 128 |
<!--<xsl:attribute name="href"><xsl:value-of select="$httpServer"/>/authority/data?lsid=<xsl:value-of select="/entity/property[@name='karId']/@value"/></xsl:attribute>--> |
170 |
<xsl:attribute name="href">
|
|
129 |
<xsl:attribute name="href">
|
|
171 | 130 |
<xsl:text>metacat?</xsl:text> |
172 | 131 |
<xsl:text>&action=read&docid=</xsl:text> |
173 | 132 |
<xsl:value-of select="$karDocid"/> |
174 | 133 |
</xsl:attribute> |
175 | 134 |
<xsl:text>Download</xsl:text> |
176 | 135 |
</a> |
177 |
</div> |
|
136 |
<!--<xsl:text> (</xsl:text> |
|
137 |
<xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='class']/@value"/> |
|
138 |
<xsl:text>)</xsl:text>--> |
|
139 |
</span> |
|
140 |
</h1> |
|
141 |
|
|
142 |
|
|
178 | 143 |
</td> |
179 | 144 |
|
180 |
<td colspan="2"> |
|
181 |
<!-- <xsl:value-of select="/entity/property[@name='KeplerDocumentation']/property[@name='description']/configure"/> --> |
|
182 |
|
|
183 |
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure) > 0"> |
|
184 |
<p><xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure"/></p> |
|
185 |
</xsl:if> |
|
186 |
</td> |
|
145 |
<!--<td> |
|
146 |
|
|
147 |
</td>--> |
|
187 | 148 |
</tr> |
188 |
|
|
189 |
<tr class="top-level"> |
|
190 |
<td colspan="3"> |
|
191 |
<table cellspacing="0" cellpadding="0"> |
|
192 |
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']) > 0"> |
|
193 |
<tr> |
|
194 |
<td colspan="2"> |
|
195 |
<h2>Parameters</h2> |
|
149 |
|
|
150 |
<xsl:for-each select="//karEntry"> |
|
151 |
<xsl:choose> |
|
152 |
<xsl:when test="./karEntryXML/entity/@name!=''"> |
|
153 |
<!-- this is workflow kar entry--> |
|
154 |
<tr class="top-level"> |
|
155 |
<td> |
|
156 |
<h3> |
|
157 |
<xsl:value-of select="./karEntryXML/entity/@name"/> |
|
158 |
</h3> |
|
196 | 159 |
</td> |
197 |
</tr> |
|
160 |
|
|
161 |
<td colspan="2"> |
|
162 |
|
|
163 |
<table cellspacing="0" cellpadding="0"> |
|
164 |
|
|
165 |
<tr> |
|
166 |
<td colspan="2"> |
|
167 |
<h4>Documentation</h4> |
|
168 |
</td> |
|
169 |
</tr> |
|
170 |
<tr> |
|
171 |
<td style="font-style: italic;"> |
|
172 |
Author: |
|
173 |
</td> |
|
174 |
<td> |
|
175 |
<xsl:choose> |
|
176 |
<xsl:when test="count(karEntryXML/entity/property[@name='author']) > 0"> |
|
177 |
<xsl:for-each select="karEntryXML/entity/property[@name='author']"> |
|
178 |
<xsl:if test="position() > 1"> |
|
179 |
<xsl:text>, </xsl:text> |
|
180 |
</xsl:if> |
|
181 |
<xsl:value-of select="configure"/> |
|
182 |
</xsl:for-each> |
|
183 |
</xsl:when> |
|
184 |
<xsl:otherwise> |
|
185 |
Unkown |
|
186 |
</xsl:otherwise> |
|
187 |
</xsl:choose> |
|
188 |
</td> |
|
189 |
</tr> |
|
198 | 190 |
|
199 |
<xsl:for-each select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']"> |
|
200 |
<tr> |
|
201 |
<td style="font-style: italic;"> |
|
202 |
<xsl:value-of select="substring(@name, 6)"/> |
|
203 |
</td> |
|
204 |
|
|
205 |
<td> |
|
206 |
<xsl:value-of select="configure"/> |
|
207 |
</td> |
|
208 |
</tr> |
|
209 |
</xsl:for-each> |
|
210 |
</xsl:if> |
|
211 |
|
|
212 |
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']) > 0"> |
|
213 |
<tr> |
|
214 |
<td colspan="2"> |
|
215 |
<h2>Ports</h2> |
|
191 |
<tr> |
|
192 |
<td style="font-style: italic;"> |
|
193 |
Version: |
|
194 |
</td> |
|
195 |
<td> |
|
196 |
<xsl:choose> |
|
197 |
<xsl:when test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']) > 0"> |
|
198 |
<xsl:for-each select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']"> |
|
199 |
<xsl:if test="position() > 1"> |
|
200 |
<xsl:text>, </xsl:text> |
|
201 |
</xsl:if> |
|
202 |
<xsl:value-of select="configure"/> |
|
203 |
</xsl:for-each> |
|
204 |
</xsl:when> |
|
205 |
<xsl:otherwise> |
|
206 |
Unkown |
|
207 |
</xsl:otherwise> |
|
208 |
</xsl:choose> |
|
209 |
</td> |
|
210 |
</tr> |
|
211 |
|
|
212 |
|
|
213 |
<!-- <xsl:value-of select="/entity/property[@name='KeplerDocumentation']/property[@name='description']/configure"/> --> |
|
214 |
|
|
215 |
|
|
216 |
<xsl:if test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure) > 0"> |
|
217 |
<tr class="top-level"> |
|
218 |
<td colspan="2"> |
|
219 |
<p><xsl:value-of select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure"/></p> |
|
220 |
</td> |
|
221 |
</tr> |
|
222 |
</xsl:if> |
|
223 |
<tr> |
|
224 |
<td colspan="2"> |
|
225 |
<h4>Parameters</h4> |
|
226 |
</td> |
|
227 |
</tr> |
|
228 |
<xsl:choose> |
|
229 |
<xsl:when test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']) > 0"> |
|
230 |
<xsl:for-each select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']"> |
|
231 |
<tr> |
|
232 |
<td style="font-style: italic;"> |
|
233 |
<xsl:value-of select="substring(@name, 6)"/> |
|
234 |
</td> |
|
235 |
<td> |
|
236 |
<xsl:value-of select="configure"/> |
|
237 |
</td> |
|
238 |
</tr> |
|
239 |
</xsl:for-each> |
|
240 |
</xsl:when> |
|
241 |
<xsl:otherwise> |
|
242 |
<tr> |
|
243 |
<td> |
|
244 |
No description |
|
245 |
</td> |
|
246 |
</tr> |
|
247 |
|
|
248 |
</xsl:otherwise> |
|
249 |
</xsl:choose> |
|
250 |
<!--<tr> |
|
251 |
<td colspan="2"> |
|
252 |
<h4>Ports</h4> |
|
253 |
</td> |
|
254 |
</tr> |
|
255 |
<xsl:choose> |
|
256 |
<xsl:when test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']) > 0"> |
|
257 |
<xsl:for-each select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']"> |
|
258 |
<tr> |
|
259 |
<td style="font-style: italic;"> |
|
260 |
<xsl:value-of select="substring(@name, 6)"/> |
|
261 |
</td> |
|
262 |
<td> |
|
263 |
<xsl:value-of select="configure"/> |
|
264 |
</td> |
|
265 |
</tr> |
|
266 |
</xsl:for-each> |
|
267 |
</xsl:when> |
|
268 |
<xsl:otherwise> |
|
269 |
<tr> |
|
270 |
<td style="font-style: italic;"> |
|
271 |
No description |
|
272 |
</td> |
|
273 |
</tr> |
|
274 |
</xsl:otherwise> |
|
275 |
</xsl:choose> --> |
|
276 |
</table> |
|
277 |
</td> |
|
278 |
</tr> |
|
279 |
|
|
280 |
|
|
281 |
</xsl:when> |
|
282 |
<xsl:otherwise> |
|
283 |
<!-- this is for workflow run, reporting and et al--> |
|
284 |
<tr class="top-level"> |
|
285 |
<td> |
|
286 |
<h3> |
|
287 |
<xsl:value-of select="karEntryAttributes/Name"/> |
|
288 |
</h3> |
|
216 | 289 |
</td> |
290 |
<td colspan="2"> |
|
291 |
<table cellspacing="0" cellpadding="0"> |
|
292 |
<tr> |
|
293 |
<td> |
|
294 |
<h4>Type</h4> |
|
295 |
</td> |
|
296 |
</tr> |
|
297 |
<tr> |
|
298 |
<td> |
|
299 |
<xsl:value-of select="karEntryAttributes/type"/> |
|
300 |
</td> |
|
301 |
</tr> |
|
302 |
</table> |
|
303 |
</td> |
|
217 | 304 |
</tr> |
218 |
|
|
219 |
<xsl:for-each select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']"> |
|
220 |
<tr> |
|
221 |
<td style="font-style: italic;"> |
|
222 |
<xsl:value-of select="substring(@name, 6)"/> |
|
223 |
</td> |
|
224 |
|
|
225 |
<td> |
|
226 |
<xsl:value-of select="configure"/> |
|
227 |
</td> |
|
228 |
</tr> |
|
229 |
</xsl:for-each> |
|
230 |
</xsl:if> |
|
231 |
</table> |
|
232 |
</td> |
|
233 |
</tr> |
|
305 |
</xsl:otherwise> |
|
306 |
</xsl:choose> |
|
307 |
</xsl:for-each> |
|
234 | 308 |
</table> |
235 | 309 |
</body> |
236 | 310 |
</html> |
lib/style/skins/kepler/searchform.jsp | ||
---|---|---|
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
32 |
<table width="30%" border="0" cellspacing="0" cellpadding="0">
|
|
32 |
<table width="50%" border="0" cellspacing="0" cellpadding="0">
|
|
33 | 33 |
<tr> |
34 | 34 |
<td colspan="2"> |
35 | 35 |
<p style="font-size: 12px;font-family:arial;"> |
... | ... | |
40 | 40 |
</tr> |
41 | 41 |
</table> |
42 | 42 |
<br/> |
43 |
<table width="30%" border="0" cellspacing="0" cellpadding="0">
|
|
43 |
<table width="50%" border="0" cellspacing="0" cellpadding="0">
|
|
44 | 44 |
<tr> |
45 | 45 |
<td> |
46 | 46 |
<form method="get" action="<%=SERVLET_URL%>" target="_top"> |
... | ... | |
52 | 52 |
<input name="operator" value="UNION" type="hidden"> |
53 | 53 |
<input name="pagesize" value="10" type="hidden"> |
54 | 54 |
<input name="pagestart" value="0" type="hidden"> |
55 |
<input name="returnfield" value="karFileName" type="hidden"> |
|
55 | 56 |
<input name="returnfield" value="karEntry/karEntryXML/entity/@name" type="hidden"> |
56 | 57 |
<input name="returnfield" value="mainAttributes/lsid" type="hidden"> |
57 | 58 |
<input name="returnfield" value="karEntry/karEntryXML/entity/property[@name='author']/configure" type="hidden"> |
... | ... | |
74 | 75 |
<input name="pagesize" value="10" type="hidden"> |
75 | 76 |
<input name="pagestart" value="0" type="hidden"> |
76 | 77 |
<input name="returnfield" value="karEntry/karEntryXML/entity/@name" type="hidden"> |
78 |
<input name="returnfield" value="karFileName" type="hidden"> |
|
77 | 79 |
<input name="returnfield" value="mainAttributes/lsid" type="hidden"> |
78 | 80 |
<input name="returnfield" value="karEntry/karEntryXML/entity/property[@name='author']/configure" type="hidden"> |
79 | 81 |
<input name="returnfield" value="karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']/configure" type="hidden"> |
lib/style/skins/kepler/kepler.css | ||
---|---|---|
46 | 46 |
*/ |
47 | 47 |
.iframeheaderclass { |
48 | 48 |
height: 120px; |
49 |
width: 98%;
|
|
49 |
width: 100%;
|
|
50 | 50 |
border: 0px; |
51 | 51 |
margin: 0px; |
52 |
margin-left: 10px;
|
|
52 |
/*margin-left: 10px;*/
|
|
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
.iframesearchboxclass { |
56 | 56 |
height: 150px; |
57 |
width: 2050px;
|
|
57 |
width: 100%;
|
|
58 | 58 |
margin: 0px; |
59 |
margin-left: 10px;
|
|
59 |
/*margin-left: 10px;*/
|
|
60 | 60 |
} |
61 | 61 |
.iframeleftcolclass { /* not used */ } |
62 | 62 |
.iframerightcolclass { |
lib/style/skins/kepler/kepler.js | ||
---|---|---|
84 | 84 |
// ( e.g. if you do not want a header to be included, set: HEADER_URL="";) |
85 | 85 |
//////////////////////////////////////////////////////////////////////////////// |
86 | 86 |
|
87 |
|
|
88 | 87 |
// Location of the header that will be displayed at the top of the page |
89 |
var HEADER_URL = "style/skins/kepler/header.jsp"; |
|
88 |
var HEADER_URL |
|
89 |
= "style/skins/kepler/header.jsp"; |
|
90 | 90 |
|
91 |
var LEFTCOL_URL = ""; |
|
91 |
// Location of the search box that will be displayed above the |
|
92 |
// results on the results page (optional) |
|
93 |
var SEARCHBOX_URL |
|
94 |
= "style/skins/kepler/searchform.jsp"; |
|
92 | 95 |
|
93 |
var RIGHTCOL_URL = ""; |
|
96 |
// Location of the advanced search box |
|
97 |
var ADVANCED_SEARCHBOX_URL |
|
98 |
= ""; |
|
94 | 99 |
|
95 |
var FOOTER_URL = ""; |
|
100 |
var LOGINBOX_URL |
|
101 |
= ""; |
|
96 | 102 |
|
97 |
// Location of the search box that will be displayed above the |
|
98 |
// results on the results page (optional) |
|
99 |
var SEARCHBOX_URL = "style/skins/kepler/searchform.jsp"; |
|
103 |
var MAP_URL |
|
104 |
= ""; |
|
100 | 105 |
|
106 |
// Location of the header that will be displayed at the top of the page |
|
107 |
var LEFTCOL_URL |
|
108 |
= ""; |
|
101 | 109 |
|
110 |
// Location of the header that will be displayed at the top of the page |
|
111 |
var RIGHTCOL_URL |
|
112 |
= ""; |
|
113 |
|
|
114 |
// Location of the header that will be displayed at the top of the page |
|
115 |
var FOOTER_URL |
|
116 |
= ""; |
|
117 |
|
|
102 | 118 |
|
103 | 119 |
|
104 | 120 |
|
... | ... | |
127 | 143 |
//(metacat only) search box iframe class |
128 | 144 |
var IFRAME_SEARCHBOX_CLASS = "iframesearchboxclass"; |
129 | 145 |
|
146 |
//(metacat only) advanced search box iframe class |
|
147 |
var IFRAME_ADVANCED_SEARCHBOX_CLASS = "iframeadvancedsearchboxclass"; |
|
148 |
|
|
149 |
// Interactive Map |
|
150 |
var IFRAME_MAP_CLASS = "iframemapclass"; |
|
151 |
|
|
152 |
//(metacat only) login box iframe class |
|
153 |
var IFRAME_LOGINBOX_CLASS = "iframeloginboxclass"; |
|
154 |
|
|
130 | 155 |
//left column iframe class |
131 | 156 |
var IFRAME_LEFTCOL_CLASS = "iframeleftcolclass"; |
132 | 157 |
|
... | ... | |
173 | 198 |
//includes a colspan |
174 | 199 |
var TEMPLATE_FOOTERROW_CLASS = "templatefooterrowclass"; |
175 | 200 |
|
176 |
// |
|
177 |
// Skin specific functions |
|
178 |
function submitform(formObj) { |
|
179 | 201 |
|
180 |
if (trim(formObj.elements["loginAction"].value)!="Login") return true; |
|
181 |
//trim username & passwd: |
|
182 |
var username = trim(formObj.elements["uid"].value); |
|
183 |
var organization = trim(formObj.elements["organization"].value); |
|
184 |
var password = trim(formObj.elements["password"].value); |
|
185 |
|
|
186 |
if (username=="") { |
|
187 |
alert("You must type a username. \n"+popupMsg); |
|
188 |
formObj.elements["uid"].focus(); |
|
189 |
return false; |
|
190 |
} |
|
191 |
|
|
192 |
if (organization=="") { |
|
193 |
alert("You must select an organization. \n"+popupMsg); |
|
194 |
formObj.elements["organization"].focus(); |
|
195 |
return false; |
|
196 |
} |
|
197 |
|
|
198 |
if (password=="") { |
|
199 |
alert("You must type a password. \n"+popupMsg); |
|
200 |
formObj.elements["password"].focus(); |
|
201 |
return false; |
|
202 |
} |
|
203 |
|
|
204 |
formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org"; |
|
205 |
return true; |
|
206 |
} |
|
207 |
|
|
208 |
function trim(stringToTrim) { |
|
209 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,''); |
|
210 |
} |
Also available in: Unified diff
Merge 1.9.3 branch to the trunk.