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:

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>&amp;action=read&amp;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