Project

General

Profile

« Previous | Next » 

Revision 5367

Added by Jing Tao almost 14 years ago

Fixed bug the download link didn't work.

View differences:

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>&amp;action=read&amp;docid=</xsl:text>
305
                        <xsl:value-of select="$karDocid"/>
298 306
                      </xsl:attribute>
299 307

  
300 308
                      <xsl:text>Download</xsl:text>

Also available in: Unified diff