2 |
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
3 |
3 |
<xsl:param name="publicRead"/>
|
4 |
4 |
<xsl:param name="message"/>
|
5 |
|
<xsl:param name="readonly">true</xsl:param>
|
|
5 |
<xsl:param name="sessionid"></xsl:param>
|
6 |
6 |
|
7 |
7 |
<xsl:template name="metadata">
|
8 |
8 |
<body>
|
... | ... | |
262 |
262 |
<td class="tablehead" colspan="2">
|
263 |
263 |
File name (Doc Id)
|
264 |
264 |
</td>
|
265 |
|
<xsl:if test="$readonly = 'false'">
|
|
265 |
<xsl:if test="not($sessionid = '')">
|
266 |
266 |
<td align="left" colspan="2" class="tablehead">
|
267 |
267 |
Actions...
|
268 |
268 |
</td>
|
... | ... | |
281 |
281 |
<xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)
|
282 |
282 |
|
283 |
283 |
<!-- update -->
|
284 |
|
<xsl:if test="$readonly = 'false'">
|
|
284 |
<xsl:if test="not($sessionid = '')">
|
285 |
285 |
<br/>
|
286 |
286 |
<br/>
|
287 |
|
<form method="post" action="./style/common/ClientViewHelper.jspx"
|
|
287 |
<form method="post" action="{$contextURL}/style/common/ClientViewHelper.jspx"
|
288 |
288 |
enctype="multipart/form-data">
|
289 |
289 |
<input name="action" value="Update Metadata" type="hidden"/>
|
290 |
290 |
<input name="docid" type="hidden" value="{.}"/>
|
... | ... | |
298 |
298 |
</td>
|
299 |
299 |
<!-- download -->
|
300 |
300 |
<td class="secondCol" valign="bottom">
|
301 |
|
<form method="get" action="./style/common/ClientViewHelper.jspx">
|
|
301 |
<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx">
|
302 |
302 |
<input name="action" value="Download" type="submit"/>
|
303 |
303 |
<input name="docid" type="hidden" value="{.}"/>
|
304 |
304 |
<input name="qformat" type="hidden" value="{$qformat}"/>
|
... | ... | |
306 |
306 |
</form>
|
307 |
307 |
</td>
|
308 |
308 |
|
309 |
|
<xsl:if test="$readonly = 'false'">
|
|
309 |
<xsl:if test="not($sessionid = '')">
|
310 |
310 |
<!-- delete -->
|
311 |
311 |
<td class="secondCol" valign="bottom">
|
312 |
|
<form method="get" action="./style/common/ClientViewHelper.jspx"
|
|
312 |
<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx"
|
313 |
313 |
enctype="text/html">
|
314 |
314 |
<input name="action" value="Delete" type="submit"/>
|
315 |
315 |
<input name="docid" type="hidden" value="{.}"/>
|
... | ... | |
319 |
319 |
</td>
|
320 |
320 |
<!-- set access -->
|
321 |
321 |
<td class="secondCol" valign="bottom">
|
322 |
|
<form method="get" action="./style/common/ClientViewHelper.jspx">
|
|
322 |
<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx">
|
323 |
323 |
<input name="action" value="Set Access" type="submit"/>
|
324 |
324 |
<xsl:choose>
|
325 |
325 |
<xsl:when test="$publicRead = 'true'">
|
... | ... | |
350 |
350 |
<td class="secondCol" align="left" valign="top">
|
351 |
351 |
<xsl:value-of select="./ancestor::digform/digtinfo/formcont"/> (<xsl:value-of select="."/>)
|
352 |
352 |
<!-- update -->
|
353 |
|
<xsl:if test="$readonly = 'false'">
|
|
353 |
<xsl:if test="not($sessionid = '')">
|
354 |
354 |
<br/>
|
355 |
355 |
<br/>
|
356 |
|
<form method="post" action="./style/common/ClientViewHelper.jspx"
|
|
356 |
<form method="post" action="{$contextURL}/style/common/ClientViewHelper.jspx"
|
357 |
357 |
enctype="multipart/form-data">
|
358 |
358 |
<input name="action" value="Update Data" type="hidden"/>
|
359 |
359 |
<input name="docid" type="hidden" value="{.}"/>
|
... | ... | |
366 |
366 |
</td>
|
367 |
367 |
<!-- download -->
|
368 |
368 |
<td class="secondCol" valign="bottom">
|
369 |
|
<form method="get" action="./style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
|
|
369 |
<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
|
370 |
370 |
<input name="action" value="Download" type="submit"/>
|
371 |
371 |
<input name="docid" type="hidden" value="{.}"/>
|
372 |
372 |
<input name="qformat" type="hidden" value="{$qformat}"/>
|
373 |
373 |
<input name="metadataDocId" type="hidden" value="{$docid}"/>
|
374 |
374 |
</form>
|
375 |
375 |
</td>
|
376 |
|
<xsl:if test="$readonly = 'false'">
|
|
376 |
<xsl:if test="not($sessionid = '')">
|
377 |
377 |
<!-- delete -->
|
378 |
378 |
<td class="secondCol" valign="bottom">
|
379 |
|
<form method="get" action="./style/common/ClientViewHelper.jspx"
|
|
379 |
<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx"
|
380 |
380 |
enctype="text/html">
|
381 |
381 |
<input name="action" value="Delete" type="submit"/>
|
382 |
382 |
<input name="docid" type="hidden" value="{.}"/>
|
use $sessionid to determine if the edit boxes are shown