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

Last change on this file since 30546 was 30546, checked in by Georgiy Litvinov, 8 years ago

Fixed sorting order

File size: 2.6 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
44 <gslib:serviceClusterList/>
45
46 <xsl:for-each select="serviceList/service[@type='query']">
47 <gslib:serviceLink/><br/>
48 </xsl:for-each>
49
50 <xsl:for-each select="serviceList/service[@type='authen']">
51 <gslib:authenticationLink/><br/><br/>
52 <gslib:registerLink/><br/>
53 </xsl:for-each>
54
55 </xsl:template>
56
57 <xsl:template name="groupLinks">
58 <div id="groupLinks">
59 <!-- <xsl:if test="count(groupList/group) = 0">
60 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
61 <br/>
62 </xsl:if>
63 -->
64 <xsl:for-each select="groupList/group">
65 <gslib:groupLinkWithImage/>
66 </xsl:for-each>
67 <br class="clear"/>
68 </div>
69 </xsl:template>
70
71 <xsl:template name="collectionLinks">
72 <div id="collectionLinks">
73 <xsl:if test="count(collectionList/collection) = 0">
74 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
75 <br/>
76 </xsl:if>
77 <xsl:for-each select="collectionList/collection">
78 <gslib:collectionLinkWithImage/>
79 </xsl:for-each>
80 <br class="clear"/>
81 </div>
82 </xsl:template>
83
84 <xsl:template match="/page/xsltparams">
85 <!-- suppress xsltparam block in page -->
86 </xsl:template>
87
88</xsl:stylesheet>
89
90
Note: See TracBrowser for help on using the repository browser.