root/main/trunk/greenstone3/web/interfaces/showcase/transform/pages/home.xsl @ 31661

Revision 31661, 2.2 KB (checked in by kjdon, 3 years ago)

explicitly ordered the collections on the home page

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4    xmlns:java="http://xml.apache.org/xslt/java"
5    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6    xmlns:gslib="http://www.greenstone.org/skinning"
7    extension-element-prefixes="java util"
8    exclude-result-prefixes="java util">
9
10    <!-- the custom list of collections -->
11    <xsl:template name="collectionAndGroupLinks">
12        <div id="collectionLinks">
13            <xsl:if test="count(collectionList/collection) = 0">
14                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
15                <br/>
16            </xsl:if>
17            <p>These collections demonstrate different aspects of Greenstone3. Click on a collection to see its description.</p>
18            <xsl:for-each select="collectionList/collection[@name = 'paradise-gardens']">
19            <gslib:collectionLinkWithImage/>
20            </xsl:for-each>     
21            <xsl:for-each select="collectionList/collection[@name='niupepa']">
22            <gslib:collectionLinkWithImage/>
23            </xsl:for-each>     
24            <xsl:for-each select="collectionList/collection[@name = 'image-demo']">
25            <gslib:collectionLinkWithImage/>
26            </xsl:for-each>     
27            <xsl:for-each select="collectionList/collection[@name = 'kjcoll']">
28            <gslib:collectionLinkWithImage/>
29            </xsl:for-each>     
30            <xsl:for-each select="collectionList/collection[@name= 'editdemo']">
31            <gslib:collectionLinkWithImage/>
32            </xsl:for-each>     
33            <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>
35            <xsl:for-each select="collectionList/collection[@name = 'lucene-jdbm-demo']">
36              <gslib:collectionLinkWithImage/>
37            </xsl:for-each>
38            <xsl:for-each select="collectionList/collection[@name = 'solr-jdbm-demo']">
39              <gslib:collectionLinkWithImage/>
40            </xsl:for-each>
41            <xsl:for-each select="collectionList/collection[@name = 'gs2mgppdemo']">
42              <gslib:collectionLinkWithImage/>
43            </xsl:for-each>
44            <xsl:for-each select="collectionList/collection[@name='gs2mgdemo']">
45              <gslib:collectionLinkWithImage/>
46            </xsl:for-each>
47            <br class="clear"/>
48        </div>
49    </xsl:template>
50
51
52</xsl:stylesheet>
Note: See TracBrowser for help on using the browser.