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

Last change on this file since 30478 was 30478, checked in by davidb, 8 years ago

Changes in the XSL and JS code to support the new approach taken to client-side XSLT (using Saxon-CE JS library in the browser). Also the reintroduction of the DirectEdit (Seaweed) template. Not on by default but a simple matter to call the re-instated template for projects that would like to make use of it, such as the digital music stand DL collection. Some white-space changes also occured. This was not deliberate, but would have been quite fiddly to tease out from other changes in the file, so consequently left in.

File size: 1.7 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"></xsl:template>
18
19 <!-- the page content -->
20 <xsl:template match="/page/pageResponse">
21
22 <div id="quickSearch">
23 <gslib:crossCollectionQuickSearchForm/>
24 </div>
25
26 <h2><gslib:selectACollectionTextBar/></h2>
27
28 <xsl:call-template name="collectionLinks"/>
29
30 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
31
32 <gslib:serviceClusterList/>
33
34 <xsl:for-each select="serviceList/service[@type='query']">
35 <gslib:serviceLink/><br/>
36 </xsl:for-each>
37
38 <xsl:for-each select="serviceList/service[@type='authen']">
39 <gslib:authenticationLink/><br/><br/>
40 <gslib:registerLink/><br/>
41 </xsl:for-each>
42
43 </xsl:template>
44
45 <xsl:template name="collectionLinks">
46 <div id="collectionLinks">
47 <xsl:if test="count(collectionList/collection) = 0">
48 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
49 <br/>
50 </xsl:if>
51 <xsl:for-each select="collectionList/collection">
52 <gslib:collectionLinkWithImage/>
53 </xsl:for-each>
54 <br class="clear"/>
55 </div>
56 </xsl:template>
57
58 <xsl:template match="/page/xsltparams">
59 <!-- suppress xsltparam block in page -->
60 </xsl:template>
61
62</xsl:stylesheet>
63
64
Note: See TracBrowser for help on using the repository browser.