Changeset 36035 for main


Ignore:
Timestamp:
2022-02-01T14:09:43+13:00 (2 years ago)
Author:
cstephen
Message:

Position berry/favourite icon in front of node contents in query result list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/query.xsl

    r34579 r36035  
    7979    <xsl:for-each select="pageResponse/documentNodeList/documentNode">
    8080      <tr id="div{@nodeID}" class="document">
    81         <xsl:apply-templates select="."/>
    82         <!-- The berry/favourite (optional) -->
     81      <!-- The berry/favourite (optional) -->
    8382        <td valign="top">
    8483          <xsl:if test="/page/pageResponse/interfaceOptions/option[@name = 'berryBasket']/@value = 'true'">
    85         <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>
     84                <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>
    8685          </xsl:if>
    8786          <xsl:if test="/page/pageResponse/interfaceOptions/option[@name = 'favouriteBasket']/@value = 'true'">
    88         <xsl:call-template name="documentFavouriteForClassifierOrSearchPage"/>
     87              <xsl:call-template name="documentFavouriteForClassifierOrSearchPage"/>
    8988          </xsl:if>
    9089        </td>
     90
     91      <!-- The node contents -->
     92      <xsl:apply-templates select="."/>
     93
    9194        <xsl:call-template name="highlightSnippet">
    9295          <xsl:with-param name="nodeHASH">
    93         <xsl:value-of select="@nodeID"/>
     96              <xsl:value-of select="@nodeID"/>
    9497          </xsl:with-param>
    9598          <xsl:with-param name="collection" select="@collection"/>
Note: See TracChangeset for help on using the changeset viewer.