Changeset 34333


Ignore:
Timestamp:
09/10/20 14:25:55 (7 months ago)
Author:
kjdon
Message:

changed this to make it use a collection group for the indeing tools

File:
1 edited

Legend:

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

    r31661 r34333  
    1010    <!-- the custom list of collections -->
    1111    <xsl:template name="collectionAndGroupLinks">
     12      <xsl:choose>
     13        <xsl:when test="$groupPath != ''">
     14          <!-- we are in a group, just use the default template-->
     15            <xsl:for-each select="collectionList/collection|groupList/group">
     16            <xsl:sort data-type="number" select="@position"/>
     17            <xsl:if test="name() = 'collection'">
     18              <gslib:collectionLinkWithImage/>
     19            </xsl:if>
     20            <xsl:if test="name() = 'group'">
     21              <gslib:groupLinkWithImage/>
     22                </xsl:if>
     23        </xsl:for-each>
     24
     25        </xsl:when>
     26        <xsl:otherwise>
    1227        <div id="collectionLinks">
    1328            <xsl:if test="count(collectionList/collection) = 0">
     
    1530                <br/>
    1631            </xsl:if>
    17             <p>These collections demonstrate different aspects of Greenstone3. Click on a collection to see its description.</p>
     32            <p>These collections demonstrate different aspects of Greenstone3. Hover over the icon to see a short description, or click on it to visit the collection and see its full description.</p>
    1833            <xsl:for-each select="collectionList/collection[@name = 'paradise-gardens']">
    1934            <gslib:collectionLinkWithImage/>
     
    3247            </xsl:for-each>     
    3348            <br class="clear"/>
    34             <p>The next collections all use a different indexing tool, but otherwise have the same content. Do some searches to see the what the different tools offer.</p>
     49            <p>The following icon represents a group of collections. They all use a different indexing tool, but otherwise have the same content. Click on the icon to visit the group. </p>
     50            <xsl:for-each select="groupList/group[@name = 'idemo']">
     51              <gslib:groupLinkWithImage/>
     52            </xsl:for-each>
    3553            <xsl:for-each select="collectionList/collection[@name = 'lucene-jdbm-demo']">
    3654              <gslib:collectionLinkWithImage/>
     
    4765            <br class="clear"/>
    4866        </div>
     67        </xsl:otherwise>
     68      </xsl:choose>
    4969    </xsl:template>
    5070
Note: See TracChangeset for help on using the changeset viewer.