source: main/trunk/greenstone3/web/interfaces/default/transform/pages/home.xsl@ 30826

Last change on this file since 30826 was 30826, checked in by kjdon, 8 years ago

display the site description if there is one

File size: 2.8 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 <!-- use the 'main' layout -->
11 <xsl:include href="layouts/main.xsl"/>
12
13 <!-- set page title -->
14 <xsl:template name="pageTitle"><gslib:siteName/></xsl:template>
15
16 <!-- set page breadcrumbs -->
17 <xsl:template name="breadcrumbs">
18 <xsl:if test="/page/pageRequest/paramList/param[@name='group']">
19 <gslib:siteLink/>
20 </xsl:if>
21 </xsl:template>
22
23 <!-- the page content -->
24 <xsl:template match="/page/pageResponse">
25
26 <div id="quickSearch">
27 <gslib:crossCollectionQuickSearchForm/>
28 </div>
29
30 <h2><gslib:selectACollectionTextBar/></h2>
31
32 <xsl:for-each select="collectionList/collection|groupList/group">
33 <xsl:sort data-type="number" select="@position"/>
34 <xsl:if test="name() = 'collection'">
35 <gslib:collectionLinkWithImage/>
36 </xsl:if>
37 <xsl:if test="name() = 'group'">
38 <gslib:groupLinkWithImage/>
39 </xsl:if>
40 </xsl:for-each>
41
42 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
43 <xsl:variable name="siteDesc"><gslib:siteDescription/></xsl:variable>
44 <xsl:if test="$siteDesc != ''">
45 <xsl:value-of select="$siteDesc"/>
46 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
47 </xsl:if>
48 <gslib:serviceClusterList/>
49
50 <xsl:for-each select="serviceList/service[@type='query']">
51 <gslib:serviceLink/><br/>
52 </xsl:for-each>
53
54 <xsl:for-each select="serviceList/service[@type='authen']">
55 <gslib:authenticationLink/><br/><br/>
56 <gslib:registerLink/><br/>
57 </xsl:for-each>
58
59 </xsl:template>
60
61 <xsl:template name="groupLinks">
62 <div id="groupLinks">
63 <!-- <xsl:if test="count(groupList/group) = 0">
64 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
65 <br/>
66 </xsl:if>
67 -->
68 <xsl:for-each select="groupList/group">
69 <gslib:groupLinkWithImage/>
70 </xsl:for-each>
71 <br class="clear"/>
72 </div>
73 </xsl:template>
74
75 <xsl:template name="collectionLinks">
76 <div id="collectionLinks">
77 <xsl:if test="count(collectionList/collection) = 0">
78 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
79 <br/>
80 </xsl:if>
81 <xsl:for-each select="collectionList/collection">
82 <gslib:collectionLinkWithImage/>
83 </xsl:for-each>
84 <br class="clear"/>
85 </div>
86 </xsl:template>
87
88 <xsl:template match="/page/xsltparams">
89 <!-- suppress xsltparam block in page -->
90 </xsl:template>
91
92</xsl:stylesheet>
93
94
Note: See TracBrowser for help on using the repository browser.