Revision 2788
Added by sgarg almost 19 years ago
lib/style/skins/esa/esa-resultset.xsl | ||
---|---|---|
34 | 34 |
<xsl:param name="sessid"/> |
35 | 35 |
<xsl:param name="qformat">default</xsl:param> |
36 | 36 |
<xsl:param name="enableediting">false</xsl:param> |
37 |
<xsl:param name="isModerator">false</xsl:param> |
|
37 | 38 |
<xsl:template match="/"> |
38 | 39 |
<html> |
39 | 40 |
<head> |
... | ... | |
167 | 168 |
</td> |
168 | 169 |
|
169 | 170 |
<xsl:if test="$enableediting = 'true'"> |
170 |
<td class="text_plain"> |
|
171 |
<form action="@cgi-prefix@/register-dataset.cgi" method="POST"> |
|
172 |
<input type="hidden" name="stage" value="mod_accept"/> |
|
171 |
<xsl:choose> |
|
172 |
<xsl:when test="$isModerator = 'true'"> |
|
173 |
<td class="text_plain"> |
|
174 |
<form action="@cgi-prefix@/register-dataset.cgi" method="POST"> |
|
175 |
<input type="hidden" name="stage" value="mod_accept"/> |
|
176 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
|
177 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
178 |
<input type="hidden" name="docid"> |
|
179 |
<xsl:attribute name="value"> |
|
180 |
<xsl:value-of select="./docid"/> |
|
181 |
</xsl:attribute> |
|
182 |
</input> |
|
183 |
<center> |
|
184 |
<input type="SUBMIT" value=" Accept " name="Accept"> |
|
185 |
</input> |
|
186 |
</center> |
|
187 |
</form> |
|
188 |
<form action="@cgi-prefix@/register-dataset.cgi" method="POST"> |
|
189 |
<input type="hidden" name="stage" value="mod_decline"/> |
|
173 | 190 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
174 | 191 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
192 |
<input type="hidden" name="docid"> |
|
193 |
<xsl:attribute name="value"> |
|
194 |
<xsl:value-of select="./docid"/> |
|
195 |
</xsl:attribute> |
|
196 |
</input> |
|
197 |
<center> |
|
198 |
<input type="SUBMIT" value="Decline" name="Decline"> |
|
199 |
</input> |
|
200 |
</center> |
|
201 |
</form> |
|
202 |
<form action="@cgi-prefix@/register-dataset.cgi" method="POST"> |
|
203 |
<input type="hidden" name="stage" value="mod_revise"/> |
|
204 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
|
205 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
206 |
<input type="hidden" name="docid"> |
|
207 |
<xsl:attribute name="value"> |
|
208 |
<xsl:value-of select="./docid"/> |
|
209 |
</xsl:attribute> |
|
210 |
</input> |
|
211 |
<center> |
|
212 |
<input type="SUBMIT" value=" Revise " name="Revise"> |
|
213 |
</input> |
|
214 |
</center> |
|
215 |
</form> |
|
216 |
</td> |
|
217 |
</xsl:when> |
|
218 |
<xsl:otherwise> |
|
219 |
<td class="text_plain"> |
|
220 |
<form action="@servlet-path@" method="POST"> |
|
221 |
<input type="hidden" name="action" value="read"/> |
|
222 |
<input type="hidden" name="qformat" value="{$qformat}"/> |
|
223 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
175 | 224 |
<input type="hidden" name="docid"> |
176 | 225 |
<xsl:attribute name="value"> |
177 | 226 |
<xsl:value-of select="./docid"/> |
178 | 227 |
</xsl:attribute> |
179 | 228 |
</input> |
180 | 229 |
<center> |
181 |
<input type="SUBMIT" value=" Accept " name="Accept"> |
|
182 |
</input> |
|
183 |
</center> |
|
184 |
</form> |
|
185 |
<form action="@cgi-prefix@/register-dataset.cgi" method="POST"> |
|
186 |
<input type="hidden" name="stage" value="mod_decline"/> |
|
187 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
|
188 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
230 |
<input type="SUBMIT" value=" View " name="View"> |
|
231 |
</input> |
|
232 |
</center> |
|
233 |
</form> |
|
234 |
<form action="@cgi-prefix@/register-dataset.cgi" |
|
235 |
method="POST"> |
|
236 |
<input type="hidden" name="stage" value="modify"/> |
|
237 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
|
238 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
189 | 239 |
<input type="hidden" name="docid"> |
190 | 240 |
<xsl:attribute name="value"> |
191 | 241 |
<xsl:value-of select="./docid"/> |
192 | 242 |
</xsl:attribute> |
193 | 243 |
</input> |
194 | 244 |
<center> |
195 |
<input type="SUBMIT" value="Decline" name="Decline"> |
|
196 |
</input> |
|
197 |
</center> |
|
198 |
</form> |
|
199 |
<form action="@cgi-prefix@/register-dataset.cgi" method="POST"> |
|
200 |
<input type="hidden" name="stage" value="mod_revise"/> |
|
201 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
|
202 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
|
203 |
<input type="hidden" name="docid"> |
|
204 |
<xsl:attribute name="value"> |
|
205 |
<xsl:value-of select="./docid"/> |
|
206 |
</xsl:attribute> |
|
207 |
</input> |
|
208 |
<center> |
|
209 |
<input type="SUBMIT" value=" Revise " name="Revise"> |
|
210 |
</input> |
|
211 |
</center> |
|
212 |
</form> |
|
213 |
</td> |
|
245 |
<input type="SUBMIT" value=" Edit " name="Edit"> |
|
246 |
</input> |
|
247 |
</center> |
|
248 |
</form> |
|
249 |
</td> |
|
250 |
</xsl:otherwise> |
|
251 |
</xsl:choose> |
|
214 | 252 |
</xsl:if> |
215 | 253 |
<td width="10"> </td> |
216 | 254 |
</tr> |
Also available in: Unified diff
Modified the xsl so that regular user sees View and Edit button