Revision 5367
Added by Jing Tao over 14 years ago
lib/style/skins/kepler/resultset.xsl | ||
---|---|---|
32 | 32 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
33 | 33 |
xmlns="http://www.w3.org/1999/xhtml" |
34 | 34 |
version="1.0"> |
35 |
|
|
35 |
<xsl:import href="../../common/util.xsl"/> |
|
36 | 36 |
<xsl:output method="xml" encoding="utf-8" |
37 | 37 |
doctype-public="-//W3C//DTD XHTML 1.1//EN" |
38 | 38 |
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" |
... | ... | |
292 | 292 |
|
293 | 293 |
<td class="text_plain"> |
294 | 294 |
<a class="dl"> |
295 |
<xsl:variable name="karDocid"> |
|
296 |
<xsl:call-template name="extractDocidFromLsid"> |
|
297 |
<xsl:with-param name="lsidString" select="./param[@name='mainAttributes/lsid']" /> |
|
298 |
</xsl:call-template> |
|
299 |
</xsl:variable> |
|
295 | 300 |
<xsl:attribute name="href"> |
296 |
<xsl:value-of select="$httpServer"/><xsl:text>/authority/data?lsid=</xsl:text> |
|
297 |
<xsl:value-of select="./param[@name='mainAttributes/lsid']"/> |
|
301 |
<!--<xsl:value-of select="$httpServer"/><xsl:text>/authority/data?lsid=</xsl:text> |
|
302 |
<xsl:value-of select="./param[@name='mainAttributes/lsid']"/>--> |
|
303 |
<xsl:text>metacat?</xsl:text> |
|
304 |
<xsl:text>&action=read&docid=</xsl:text> |
|
305 |
<xsl:value-of select="$karDocid"/> |
|
298 | 306 |
</xsl:attribute> |
299 | 307 |
|
300 | 308 |
<xsl:text>Download</xsl:text> |
lib/style/skins/kepler/karxml.xsl | ||
---|---|---|
32 | 32 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
33 | 33 |
xmlns="http://www.w3.org/1999/xhtml" |
34 | 34 |
version="1.0"> |
35 |
|
|
35 |
<xsl:import href="../../common/util.xsl"/> |
|
36 | 36 |
<xsl:output method="xml" encoding="utf-8" |
37 | 37 |
doctype-public="-//W3C//DTD XHTML 1.1//EN" |
38 | 38 |
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" |
... | ... | |
159 | 159 |
</img> |
160 | 160 |
|
161 | 161 |
<div style="text-align: center;"> |
162 |
<xsl:variable name="karDocid"> |
|
163 |
<xsl:call-template name="extractDocidFromLsid"> |
|
164 |
<xsl:with-param name="lsidString" select="//mainAttributes/lsid" /> |
|
165 |
</xsl:call-template> |
|
166 |
</xsl:variable> |
|
167 |
|
|
162 | 168 |
<a> |
163 |
<xsl:attribute name="href"><xsl:value-of select="$httpServer"/>/authority/data?lsid=<xsl:value-of select="/entity/property[@name='karId']/@value"/></xsl:attribute> |
|
169 |
<!--<xsl:attribute name="href"><xsl:value-of select="$httpServer"/>/authority/data?lsid=<xsl:value-of select="/entity/property[@name='karId']/@value"/></xsl:attribute>--> |
|
170 |
<xsl:attribute name="href"> |
|
171 |
<xsl:text>metacat?</xsl:text> |
|
172 |
<xsl:text>&action=read&docid=</xsl:text> |
|
173 |
<xsl:value-of select="$karDocid"/> |
|
174 |
</xsl:attribute> |
|
164 | 175 |
<xsl:text>Download</xsl:text> |
165 | 176 |
</a> |
166 | 177 |
</div> |
Also available in: Unified diff
Fixed bug the download link didn't work.