Revision 4348
Added by daigle over 15 years ago
resultset.xsl | ||
---|---|---|
42 | 42 |
<xsl:param name="servletURL"/> |
43 | 43 |
|
44 | 44 |
<!-- import the header, footer, and sidebars for customized styling --> |
45 |
<xsl:import href="{$contextURL}/style/skins/{$qformat}/templates/xsl/pageheader.xsl"/>
|
|
46 |
<xsl:import href="{$contextURL}/style/skins/{$qformat}/templates/xsl/pagefooter.xsl"/>
|
|
47 |
<xsl:import href="{$contextURL}/style/skins/{$qformat}/templates/xsl/page_leftsidebar.xsl"/>
|
|
48 |
<xsl:import href="{$contextURL}/style/skins/{$qformat}/templates/xsl/page_rightsidebar.xsl"/>
|
|
49 |
<xsl:import href="{$contextURL}/style/skins/{$qformat}/templates/xsl/loginbox.xsl"/>
|
|
50 |
<xsl:import href="{$contextURL}/style/skins/{$qformat}/templates/xsl/searchbox.xsl"/>
|
|
45 |
<xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/pageheader.xsl"/>
|
|
46 |
<xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/pagefooter.xsl"/>
|
|
47 |
<xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/page_leftsidebar.xsl"/>
|
|
48 |
<xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/page_rightsidebar.xsl"/>
|
|
49 |
<xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/loginbox.xsl"/>
|
|
50 |
<xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/searchbox.xsl"/>
|
|
51 | 51 |
|
52 | 52 |
<!-- send the resultset back to the browser styled in HTML --> |
53 | 53 |
<xsl:output method="html" encoding="iso-8859-1" indent="yes" standalone="yes" |
... | ... | |
62 | 62 |
<html> |
63 | 63 |
<head> |
64 | 64 |
<link rel="stylesheet" type="text/css" |
65 |
href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
|
|
65 |
href="{$contextURL}/style/skins/sbclter/sbclter.css" />
|
|
66 | 66 |
<script language="Javascript" type="text/JavaScript" |
67 |
src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
|
|
67 |
src="{$contextURL}/style/skins/sbclter/sbclter.js" />
|
|
68 | 68 |
<script language="Javascript" type="text/JavaScript" |
69 |
src="{$contextURL}/style/common/{$qformat}/branding.js" />
|
|
69 |
src="{$contextURL}/style/common/branding.js" /> |
|
70 | 70 |
<script language="JavaScript"> |
71 | 71 |
<![CDATA[ |
72 | 72 |
function submitform(action,form_ref) { |
73 | 73 |
form_ref.action.value=action; |
74 | 74 |
form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA["; |
75 |
form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
|
|
75 |
form_ref.qformat.value="sbclter";
|
|
76 | 76 |
form_ref.submit(); |
77 | 77 |
} |
78 | 78 |
]]> |
... | ... | |
81 | 81 |
<![CDATA[ |
82 | 82 |
function view_entity(form_ref) { |
83 | 83 |
form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA["; |
84 |
form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
|
|
84 |
form_ref.qformat.value="sbclter";
|
|
85 | 85 |
form_ref.submit(); |
86 | 86 |
} |
87 | 87 |
]]> |
... | ... | |
273 | 273 |
<xsl:variable name="URLsubstr" select="substring-after($URL, 'ecogrid://')"/> |
274 | 274 |
<xsl:variable name="docID" select="substring-after($URLsubstr, '/')"/> |
275 | 275 |
<xsl:variable name="URL1"> |
276 |
<xsl:text>{$servletURL}?action=read&qformat=</xsl:text><xsl:value-of select="$qformat"/><xsl:text>&docid=</xsl:text><xsl:value-of select="$docID"/>
|
|
276 |
<xsl:text>{$servletURL}?action=read&qformat=sbclter</xsl:text><xsl:text>&docid=</xsl:text><xsl:value-of select="$docID"/>
|
|
277 | 277 |
|
278 | 278 |
<!-- <xsl:text>http://sbcdata.lternet.edu/catalog/metacat?action=read&qformat=</xsl:text> |
279 | 279 |
<xsl:value-of select="$qformat"/> |
... | ... | |
289 | 289 |
<!-- |
290 | 290 |
else, assume the url content is the just name of a metacat table --> |
291 | 291 |
<xsl:variable name="URL1"> |
292 |
<xsl:text>{$servletURL}?action=read&qformat=</xsl:text> |
|
293 |
<xsl:value-of select="$qformat"/> |
|
292 |
<xsl:text>{$servletURL}?action=read&qformat=sbclter</xsl:text> |
|
294 | 293 |
<xsl:text>&docid=</xsl:text> |
295 | 294 |
<xsl:value-of select="$URL"/> |
296 | 295 |
</xsl:variable> |
... | ... | |
320 | 319 |
|
321 | 320 |
<form action="{$servletURL}" method="POST"> |
322 | 321 |
<input type="hidden" name="action" value="read"/> |
323 |
<input type="hidden" name="qformat" value="{$qformat}"/>
|
|
322 |
<input type="hidden" name="qformat" value="sbclter"/>
|
|
324 | 323 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
325 | 324 |
<input type="hidden" name="docid"> |
326 | 325 |
<xsl:attribute name="value"> |
... | ... | |
335 | 334 |
<form action="{$cgi-url}/register-dataset.cgi" |
336 | 335 |
method="POST"> |
337 | 336 |
<input type="hidden" name="stage" value="modify"/> |
338 |
<input type="hidden" name="cfg" value="{$qformat}"/>
|
|
337 |
<input type="hidden" name="cfg" value="sbclter"/>
|
|
339 | 338 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
340 | 339 |
<input type="hidden" name="docid"> |
341 | 340 |
<xsl:attribute name="value"> |
... | ... | |
348 | 347 |
<form action="{$cgi-url}/register-dataset.cgi" |
349 | 348 |
method="POST"> |
350 | 349 |
<input type="hidden" name="stage" value="delete"/> |
351 |
<input type="hidden" name="cfg" value="{$qformat}"/>
|
|
350 |
<input type="hidden" name="cfg" value="sbclter"/>
|
|
352 | 351 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
353 | 352 |
<input type="hidden" name="docid"> |
354 | 353 |
<xsl:attribute name="value"> |
Also available in: Unified diff
Remove ant tokens