Revision 3765
Added by ben leinfelder over 16 years ago
lib/style/common/resultset-table.xsl | ||
---|---|---|
30 | 30 |
--> |
31 | 31 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
32 | 32 |
version="1.0"> |
33 |
<xsl:param name="cgi-url" select='string("")'/> |
|
34 | 33 |
<xsl:template name="resultstable"> |
35 | 34 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
36 | 35 |
|
... | ... | |
46 | 45 |
<table class="resultstable" width="95%" align="center" border="0" cellpadding="0" cellspacing="0"> |
47 | 46 |
<tr> |
48 | 47 |
<th class="tablehead_lcorner" align="right" valign="top"> |
49 |
<img src="./style/skins/default/images/transparent1x1.gif" width="1" height="1" />
|
|
48 |
<img src="{$contextURL}/style/skins/default/images/transparent1x1.gif" width="1" height="1" />
|
|
50 | 49 |
</th> |
51 | 50 |
<th class="tablehead" style="text-align: left"> |
52 | 51 |
Title |
... | ... | |
66 | 65 |
</th> |
67 | 66 |
</xsl:if> |
68 | 67 |
<th class="tablehead_rcorner" align="right" valign="top"> |
69 |
<img src="./style/skins/default/images/transparent1x1.gif" width="1" height="1" />
|
|
68 |
<img src="{$contextURL}/style/skins/default/images/transparent1x1.gif" width="1" height="1" />
|
|
70 | 69 |
</th> |
71 | 70 |
</tr> |
72 | 71 |
|
... | ... | |
88 | 87 |
|
89 | 88 |
<td width="10"> </td> |
90 | 89 |
<td class="text_plain"> |
91 |
<form action="./metacat" method="POST">
|
|
90 |
<form action="{$contextURL}/metacat" method="POST">
|
|
92 | 91 |
<xsl:attribute name="name"><xsl:value-of |
93 | 92 |
select="translate(./docid, '()-.', '____')" /></xsl:attribute> |
94 | 93 |
|
... | ... | |
182 | 181 |
|
183 | 182 |
<xsl:if test="$enableediting = 'true'"> |
184 | 183 |
<td class="text_plain"> |
185 |
<form action="./metacat" method="POST">
|
|
184 |
<form action="{$contextURL}/metacat" method="POST">
|
|
186 | 185 |
<input type="hidden" name="action" value="read" /> |
187 | 186 |
<input type="hidden" name="qformat" value="{$qformat}" /> |
188 | 187 |
<input type="hidden" name="sessionid" value="{$sessid}" /> |
... | ... | |
196 | 195 |
</input> |
197 | 196 |
</center> |
198 | 197 |
</form> |
199 |
<form action="{$cgi-url}/register-dataset.cgi" method="POST">
|
|
198 |
<form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
|
|
200 | 199 |
<input type="hidden" name="stage" value="modify" /> |
201 | 200 |
<input type="hidden" name="cfg" value="{$qformat}" /> |
202 | 201 |
<input type="hidden" name="sessionid" value="{$sessid}" /> |
... | ... | |
210 | 209 |
</input> |
211 | 210 |
</center> |
212 | 211 |
</form> |
213 |
<form action="{$cgi-url}/register-dataset.cgi" method="POST">
|
|
212 |
<form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
|
|
214 | 213 |
<input type="hidden" name="stage" value="delete" /> |
215 | 214 |
<input type="hidden" name="cfg" value="{$qformat}" /> |
216 | 215 |
<input type="hidden" name="sessionid" value="{$sessid}" /> |
lib/style/common/resultset.xsl | ||
---|---|---|
35 | 35 |
<xsl:param name="sessid"/> |
36 | 36 |
<xsl:param name="qformat">default</xsl:param> |
37 | 37 |
<xsl:param name="enableediting">false</xsl:param> |
38 |
<xsl:param name="contextURL"/> |
|
38 |
<xsl:param name="contextURL"/> |
|
39 |
<xsl:param name="cgi-prefix"/> |
|
40 |
|
|
39 | 41 |
<xsl:template match="/"> |
40 | 42 |
<html> |
41 | 43 |
<head> |
lib/style/common/login.xsl | ||
---|---|---|
33 | 33 |
|
34 | 34 |
<xsl:output method="html"/> |
35 | 35 |
<xsl:param name="qformat">default</xsl:param> |
36 |
<xsl:param name="cgi-url" select='string("")'/> |
|
36 |
<xsl:param name="contextURL"/> |
|
37 |
<xsl:param name="cgi-prefix"/> |
|
37 | 38 |
|
38 | 39 |
<xsl:template match="/"> |
39 | 40 |
<html> |
40 | 41 |
<head> |
41 | 42 |
<link rel="stylesheet" type="text/css" |
42 |
href="./style/skins/{$qformat}/{$qformat}.css" />
|
|
43 |
href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
|
|
43 | 44 |
<script language="Javascript" type="text/JavaScript" |
44 |
src="./style/skins/{$qformat}/{$qformat}.js" />
|
|
45 |
src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
|
|
45 | 46 |
<script language="Javascript" type="text/JavaScript" |
46 |
src="./style/common/branding.js" />
|
|
47 |
src="{$contextURL}/style/common/branding.js" />
|
|
47 | 48 |
</head> |
48 | 49 |
|
49 | 50 |
<script language="JavaScript"> |
50 |
insertTemplateOpening(); |
|
51 |
insertSearchBox(); |
|
51 |
<![CDATA[ |
|
52 |
insertTemplateOpening("]]><xsl:value-of select="$contextURL" /><![CDATA["); |
|
53 |
insertSearchBox("]]><xsl:value-of select="$contextURL" /><![CDATA["); |
|
54 |
]]> |
|
52 | 55 |
</script> |
53 | 56 |
|
54 | 57 |
<xsl:if test="count(login) > 0"> |
... | ... | |
62 | 65 |
<body> |
63 | 66 |
<xsl:attribute |
64 | 67 |
name="onload">javascript:timerId=setTimeout(search( |
65 |
'{$cgi-url}/register-dataset.cgi?cfg=<xsl:value-of select="$qformat" />'),
|
|
68 |
'{$cgi-prefix}/register-dataset.cgi?cfg=<xsl:value-of select="$qformat" />'),
|
|
66 | 69 |
2000) |
67 | 70 |
</xsl:attribute> |
68 | 71 |
<p class="text_plain">Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the data registry.</p> |
... | ... | |
74 | 77 |
<p class="text_plain"><xsl:value-of select="unauth_login/message" /></p> |
75 | 78 |
</body> |
76 | 79 |
</xsl:if> |
77 |
<p class="text_plain">Return to the <a href="./style/skins/{$qformat}" target="_top">homepage</a>.
|
|
80 |
<p class="text_plain">Return to the <a href="{$contextURL}/style/skins/{$qformat}" target="_top">homepage</a>.
|
|
78 | 81 |
</p> |
79 | 82 |
<script language="JavaScript"> |
80 |
insertTemplateClosing(); |
|
83 |
<![CDATA[ |
|
84 |
insertTemplateClosing("]]><xsl:value-of select="$contextURL" /><![CDATA["); |
|
85 |
]]> |
|
81 | 86 |
</script> |
82 | 87 |
</html> |
83 | 88 |
</xsl:template> |
Also available in: Unified diff
use {$contextURL} and {$cgi-prefix} param for absolute paths (instead of relative paths)