Changeset 29278


Ignore:
Timestamp:
2014-09-15T11:13:33+12:00 (9 years ago)
Author:
kjdon
Message:

added in code to display berries and berry basket for search results page

File:
1 edited

Legend:

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

    r29275 r29278  
    4343        <xsl:call-template name="displayMatchDocs"/>
    4444        <xsl:call-template name="displayTermInfo"/>
     45        <xsl:call-template name="displayBaskets"/>
    4546        <xsl:call-template name="displayResults"/>
    4647        <xsl:call-template name="resultsPagePost"/>
     
    5051    <xsl:variable name="opt-doc-link-args">p.s=<gsvar:this-service/>
    5152    </xsl:variable>
     53
     54    <xsl:template name="displayBaskets">
     55      <!-- add in document basket here??? see classifier.xsl -->
     56      <xsl:if test="$berryBasketOn">
     57        <div id="rightSidebar">
     58          <xsl:if test="$berryBasketOn">
     59        <!-- show the berry basket if it's turned on -->
     60        <gslib:berryBasket/>
     61        <xsl:text> </xsl:text>
     62          </xsl:if>
     63        </div>
     64      </xsl:if>
     65    </xsl:template>
    5266
    5367    <xsl:template name="displayResults">
     
    115129                    <tr id="div{@nodeID}" class="document">
    116130                        <xsl:apply-templates select="."/>
     131                        <!-- The berry (optional) -->
     132                        <td>
     133                          <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>
     134                        </td>
     135
    117136                        <xsl:call-template name="documentNodePost"/>
    118137                    </tr>
Note: See TracChangeset for help on using the changeset viewer.