Changeset 3814


Ignore:
Timestamp:
2003-03-10T10:19:18+13:00 (21 years ago)
Author:
mdewsnip
Message:

Updated to use documentNode instead of document. Also uses generic "displayNodeIcon" template in style.xsl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/interfaces/default/transform/basicquery.xsl

    r3790 r3814  
    134134  <!-- Display the matching documents -->
    135135  <table>
    136   <tr valign="top">
    137   <xsl:for-each select="content/documentList/document">
    138     <tr>
    139     <xsl:apply-templates select=".">
    140       <xsl:with-param name="collName" select="$collName"/>
    141     </xsl:apply-templates>
     136    <tr valign="top">
     137      <xsl:for-each select="content/documentList/documentNode">
     138        <tr>
     139          <xsl:apply-templates select=".">
     140            <xsl:with-param name="collName" select="$collName"/>
     141          </xsl:apply-templates>
     142        </tr>
     143      </xsl:for-each>
    142144    </tr>
    143   </xsl:for-each>
    144   </tr>
    145145  </table>
    146146</xsl:template>
    147147
    148148
    149 <xsl:template match="document">
     149<xsl:template match="documentNode">
    150150  <xsl:param name="collName">coll-name</xsl:param>
    151151  <xsl:variable name="library" select="ancestor::page/config/library_name"/>
    152152
    153153  <td>
    154     <a href="{$library}?a=d&amp;c={$collName}&amp;d={@name}">
    155       <img src="interfaces/default/images/book.gif" width="18" height="11" border="0" alt="open this document and view contents"/> <!-- TO DO -->
     154    <a href="{$library}?a=d&amp;c={$collName}&amp;d={@documentID}">
     155      <xsl:apply-templates select="." mode="displayNodeIcon"/>
    156156    </a>
    157157  </td>
Note: See TracChangeset for help on using the changeset viewer.