source: main/trunk/greenstone3/web/interfaces/showcase/transform/pages/home.xsl@ 34333

Last change on this file since 34333 was 34333, checked in by kjdon, 4 years ago

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

File size: 2.9 KB
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 <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>
27 <div id="collectionLinks">
28 <xsl:if test="count(collectionList/collection) = 0">
29 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
30 <br/>
31 </xsl:if>
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>
33 <xsl:for-each select="collectionList/collection[@name = 'paradise-gardens']">
34 <gslib:collectionLinkWithImage/>
35 </xsl:for-each>
36 <xsl:for-each select="collectionList/collection[@name='niupepa']">
37 <gslib:collectionLinkWithImage/>
38 </xsl:for-each>
39 <xsl:for-each select="collectionList/collection[@name = 'image-demo']">
40 <gslib:collectionLinkWithImage/>
41 </xsl:for-each>
42 <xsl:for-each select="collectionList/collection[@name = 'kjcoll']">
43 <gslib:collectionLinkWithImage/>
44 </xsl:for-each>
45 <xsl:for-each select="collectionList/collection[@name= 'editdemo']">
46 <gslib:collectionLinkWithImage/>
47 </xsl:for-each>
48 <br class="clear"/>
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>
53 <xsl:for-each select="collectionList/collection[@name = 'lucene-jdbm-demo']">
54 <gslib:collectionLinkWithImage/>
55 </xsl:for-each>
56 <xsl:for-each select="collectionList/collection[@name = 'solr-jdbm-demo']">
57 <gslib:collectionLinkWithImage/>
58 </xsl:for-each>
59 <xsl:for-each select="collectionList/collection[@name = 'gs2mgppdemo']">
60 <gslib:collectionLinkWithImage/>
61 </xsl:for-each>
62 <xsl:for-each select="collectionList/collection[@name='gs2mgdemo']">
63 <gslib:collectionLinkWithImage/>
64 </xsl:for-each>
65 <br class="clear"/>
66 </div>
67 </xsl:otherwise>
68 </xsl:choose>
69 </xsl:template>
70
71
72</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.