Revision 4347
Added by daigle over 15 years ago
resultset.xsl | ||
---|---|---|
33 | 33 |
--> |
34 | 34 |
|
35 | 35 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
36 |
|
|
36 |
<xsl:param name="cgi-url" select='string("")'/> |
|
37 |
<xsl:param name="sessid"/> |
|
38 |
<xsl:param name="enableediting">false</xsl:param> |
|
39 |
<xsl:param name="contextURL"/> |
|
40 |
<!-- This parameter gets overidden by the chosen default qformat --> |
|
41 |
<xsl:param name="qformat">default</xsl:param> |
|
42 |
<xsl:param name="servletURL"/> |
|
43 |
|
|
37 | 44 |
<!-- import the header, footer, and sidebars for customized styling --> |
38 |
<xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/pageheader.xsl"/>
|
|
39 |
<xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/pagefooter.xsl"/>
|
|
40 |
<xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/page_leftsidebar.xsl"/>
|
|
41 |
<xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/page_rightsidebar.xsl"/>
|
|
42 |
<xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/loginbox.xsl"/>
|
|
43 |
<xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/searchbox.xsl"/>
|
|
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"/>
|
|
44 | 51 |
|
45 | 52 |
<!-- send the resultset back to the browser styled in HTML --> |
46 | 53 |
<xsl:output method="html" encoding="iso-8859-1" indent="yes" standalone="yes" |
47 | 54 |
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" |
48 | 55 |
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" /> |
49 |
|
|
50 |
<xsl:param name="sessid"/> |
|
51 |
<xsl:param name="enableediting">false</xsl:param> |
|
52 |
<!-- This parameter gets overidden by the chosen default qformat --> |
|
53 |
<xsl:param name="qformat">default</xsl:param> |
|
54 | 56 |
|
55 | 57 |
<!-- this param set to require a user to accept a datause agreement |
56 | 58 |
<xsl:param name="visit_datauseagreement">true</xsl:param> --> |
... | ... | |
60 | 62 |
<html> |
61 | 63 |
<head> |
62 | 64 |
<link rel="stylesheet" type="text/css" |
63 |
href="@style-skins-path@/{$qformat}/{$qformat}.css" />
|
|
65 |
href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
|
|
64 | 66 |
<script language="Javascript" type="text/JavaScript" |
65 |
src="@style-skins-path@/{$qformat}/{$qformat}.js" />
|
|
67 |
src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
|
|
66 | 68 |
<script language="Javascript" type="text/JavaScript" |
67 |
src="@style-common-path@/branding.js" />
|
|
69 |
src="{$contextURL}/style/common/{$qformat}/branding.js" />
|
|
68 | 70 |
<script language="JavaScript"> |
69 | 71 |
<![CDATA[ |
70 | 72 |
function submitform(action,form_ref) { |
... | ... | |
177 | 179 |
<!-- |
178 | 180 |
Build a submit form to view the data package details, using hidden fields to POST the query values. |
179 | 181 |
--> |
180 |
<form action="@servlet-path@" method="POST">
|
|
182 |
<form action="{$servletURL}" method="POST">
|
|
181 | 183 |
<xsl:attribute name="name"> |
182 | 184 |
<xsl:value-of select="translate(./docid, '()-.', '')" /> |
183 | 185 |
</xsl:attribute> |
... | ... | |
271 | 273 |
<xsl:variable name="URLsubstr" select="substring-after($URL, 'ecogrid://')"/> |
272 | 274 |
<xsl:variable name="docID" select="substring-after($URLsubstr, '/')"/> |
273 | 275 |
<xsl:variable name="URL1"> |
274 |
<xsl:text>@systemidserver@@servlet-path@?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=</xsl:text><xsl:value-of select="$qformat"/><xsl:text>&docid=</xsl:text><xsl:value-of select="$docID"/>
|
|
275 | 277 |
|
276 | 278 |
<!-- <xsl:text>http://sbcdata.lternet.edu/catalog/metacat?action=read&qformat=</xsl:text> |
277 | 279 |
<xsl:value-of select="$qformat"/> |
... | ... | |
287 | 289 |
<!-- |
288 | 290 |
else, assume the url content is the just name of a metacat table --> |
289 | 291 |
<xsl:variable name="URL1"> |
290 |
<xsl:text>@systemidserver@@servlet-path@?action=read&qformat=</xsl:text>
|
|
292 |
<xsl:text>{$servletURL}?action=read&qformat=</xsl:text>
|
|
291 | 293 |
<xsl:value-of select="$qformat"/> |
292 | 294 |
<xsl:text>&docid=</xsl:text> |
293 | 295 |
<xsl:value-of select="$URL"/> |
... | ... | |
316 | 318 |
</xsl:choose> |
317 | 319 |
</xsl:attribute> |
318 | 320 |
|
319 |
<form action="@servlet-path@" method="POST">
|
|
321 |
<form action="{$servletURL}" method="POST">
|
|
320 | 322 |
<input type="hidden" name="action" value="read"/> |
321 | 323 |
<input type="hidden" name="qformat" value="{$qformat}"/> |
322 | 324 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
... | ... | |
330 | 332 |
</input> |
331 | 333 |
</center> |
332 | 334 |
</form> |
333 |
<form action="@cgi-prefix@/register-dataset.cgi"
|
|
335 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
334 | 336 |
method="POST"> |
335 | 337 |
<input type="hidden" name="stage" value="modify"/> |
336 | 338 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
... | ... | |
343 | 345 |
<input type="SUBMIT" value=" Edit " name="Edit"> |
344 | 346 |
</input> |
345 | 347 |
</form> |
346 |
<form action="@cgi-prefix@/register-dataset.cgi"
|
|
348 |
<form action="{$cgi-url}/register-dataset.cgi"
|
|
347 | 349 |
method="POST"> |
348 | 350 |
<input type="hidden" name="stage" value="delete"/> |
349 | 351 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
... | ... | |
387 | 389 |
<xsl:param name="entity_name"/> |
388 | 390 |
<xsl:param name="URL1"/> |
389 | 391 |
<!-- create form to pass url and entity's name to cgi with data agreement page. form name must be unique/dynamic --> |
390 |
<form action="@cgi-prefix@/data-use-agreement.cgi" method="POST">
|
|
392 |
<form action="{$cgi-url}/data-use-agreement.cgi" method="POST">
|
|
391 | 393 |
<!-- <form action="http://sbcdata.lternet.edu/cgi-bin/data-use-agreement.cgi" method="POST"> --> |
392 | 394 |
<xsl:attribute name="name"> |
393 | 395 |
<xsl:value-of select="translate($entity_name,',:()-. ' ,'')" /> |
Also available in: Unified diff
Replace Ant tokens