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

Last change on this file since 37706 was 37706, checked in by davidb, 12 months ago

webswing GLI now available by default on home page, thanks to Kath's work requiring users to log in to use Webswing GLI

  • Property svn:mime-type set to text/plain
File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 xsl gslib">
9
10 <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
11
12
13 <!-- use the 'main' layout -->
14 <xsl:include href="layouts/main.xsl"/>
15
16 <!-- set page title -->
17 <xsl:template name="pageTitle"><xsl:choose><xsl:when test="$groupPath != ''"><gslib:groupName path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteName/></xsl:otherwise></xsl:choose></xsl:template>
18
19 <!-- set page breadcrumbs -->
20 <xsl:template name="breadcrumbs">
21 <xsl:if test="$groupPath != ''">
22 <gslib:siteLink/>
23 <xsl:for-each select="/page/pageResponse/pathList/group">
24 <xsl:sort data-type="number" select="@position"/>
25 <gslib:rightArrow/>
26 <xsl:if test="position() != last()">
27 <!-- don't want the current group in the breadcrumbs -->
28 <a>
29 <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute>
30 <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute>
31 <gslib:groupName path="{@path}"/>
32 </a>
33 </xsl:if>
34 </xsl:for-each>
35 </xsl:if>
36 </xsl:template>
37
38 <!-- the page content -->
39 <xsl:template match="/page/pageResponse">
40
41 <div id="quickSearch">
42 <gslib:crossCollectionQuickSearchForm/>
43 </div>
44
45 <h2><gslib:selectACollectionTextBar/></h2>
46 <span id="collectionAndGroupLinks">
47 <xsl:call-template name="collectionAndGroupLinks"/>
48 </span>
49
50 <xsl:call-template name="homePageDescription"/>
51
52 <gslib:serviceClusterList/>
53
54 <xsl:for-each select="serviceList/service[@type='query']">
55 <gslib:serviceLink/><br/>
56 </xsl:for-each>
57
58 <xsl:for-each select="serviceList/service[@type='authen']">
59 <!--<gslib:libraryInterfaceLink/><br/><br/>-->
60 <gslib:authenticationLink/><br/><br/>
61 <gslib:depositorTitleMainLink/><br/><br/>
62 <gslib:registerLink/><br/><br/>
63 </xsl:for-each>
64
65 <gslib:webswingGLILink/><br/><br/>
66
67 <!--
68 <gslib:tabletopDLLink/><br/><br/>
69 -->
70
71 <gslib:webswingGLILink/><br/><br/>
72
73 <gslib:oaipmhServerLink/><br/><br/>
74
75 <gslib:aboutGreenstoneLink/><br/>
76 </xsl:template>
77
78
79 <xsl:template name="collectionAndGroupLinks">
80 <xsl:for-each select="collectionList/collection|groupList/group">
81 <xsl:sort data-type="number" select="@position"/>
82 <xsl:if test="name() = 'collection'">
83 <gslib:collectionLinkWithImage/>
84 </xsl:if>
85 <xsl:if test="name() = 'group'">
86 <gslib:groupLinkWithImage/>
87 </xsl:if>
88 </xsl:for-each>
89
90 </xsl:template>
91 <xsl:template match="/page/xsltparams">
92 <!-- suppress xsltparam block in page -->
93 </xsl:template>
94
95
96 <xsl:template name="homePageDescription">
97 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
98 <xsl:variable name="siteDesc"><xsl:choose><xsl:when test="$groupPath != ''"><gslib:groupDescription path="{$groupPath}"/></xsl:when><xsl:otherwise><gslib:siteDescription/></xsl:otherwise></xsl:choose></xsl:variable>
99 <xsl:if test="$siteDesc != ''">
100 <xsl:value-of select="$siteDesc"/>
101 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
102 </xsl:if>
103 </xsl:template>
104
105</xsl:stylesheet>
106
107
Note: See TracBrowser for help on using the repository browser.