Changeset 31734


Ignore:
Timestamp:
2017-06-13T21:08:42+12:00 (7 years ago)
Author:
ak19
Message:

Updating halftone's home.xsl page's references to displayItems, since these are nowadays nested in a displayItemList.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/halftone/transform/pages/home.xsl

    r29118 r31734  
    1111    <xsl:template match="/page/pageResponse">
    1212                    <!-- SLIDER -->
    13                             <xsl:if test="collectionList/collection/displayItem[@name='smallicon']">
     13                            <xsl:if test="collectionList/collection/displayItemList/displayItem[@name='smallicon']">
    1414            <div class="slider-wrapper theme-halftone">
    1515                <div id="slider" class="nivoSlider">
     
    3737<xsl:template name="collSlider">
    3838<xsl:for-each select="./collectionList/collection">
    39 <xsl:variable name="homeImage" select="displayItem[@name='smallicon']"/>
     39<xsl:variable name="homeImage" select="displayItemList/displayItem[@name='smallicon']"/>
    4040
    4141<xsl:choose>
    4242<xsl:when test="$homeImage">
    4343<xsl:variable name="collectionFolder" select="@name"/>
    44 <xsl:variable name="collectionName" select="displayItem[@name='name']"/>
     44<xsl:variable name="collectionName" select="displayItemList/displayItem[@name='name']"/>
    4545
    4646<a href="{$library_name}/collection/{$collectionFolder}/page/about">
     
    5757<xsl:for-each select="./collectionList/collection">
    5858<xsl:variable name="collectionFolder" select="@name"/>
    59 <xsl:variable name="collectionName" select="displayItem[@name='name']"/>
    60 <xsl:variable name="homeImage" select="displayItem[@name='smallicon']"/>
     59<xsl:variable name="collectionName" select="displayItemList/displayItem[@name='name']"/>
     60<xsl:variable name="homeImage" select="displayItemList/displayItem[@name='smallicon']"/>
    6161
    6262<li>
Note: See TracChangeset for help on using the changeset viewer.