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

Last change on this file since 32150 was 32150, checked in by ak19, 6 years ago

I changed gli4gs3.xsl to rewrite the applet page produced by PageAction.java to replace it with the JNLP Web Start version of GLI. Dr Bainbridge got this to work by changing the Librarian Interface link on the main page to have a download attribute, which will force the linked item to be downloaded. The download attribute is set to the name to assign to the downloaded item, the jnlp file. Now removing the unnecessary static GLIappWebStart.jnlp from the gli folder (as it used some fixed strings for dynamic values) and removed the unnecessary style.xsl and icons.xsl from default\transform as they were used by the now bypassed applet and were moreover GS2 styling.

File size: 3.0 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 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 <xsl:call-template name="collectionAndGroupLinks"/>
47
48 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
49 <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>
50 <xsl:if test="$siteDesc != ''">
51 <xsl:value-of select="$siteDesc"/>
52 <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
53 </xsl:if>
54 <gslib:serviceClusterList/>
55
56 <xsl:for-each select="serviceList/service[@type='query']">
57 <gslib:serviceLink/><br/>
58 </xsl:for-each>
59
60 <xsl:for-each select="serviceList/service[@type='authen']">
61 <!--<gslib:libraryInterfaceLink/><br/><br/>-->
62 <gslib:authenticationLink/><br/><br/>
63 <gslib:registerLink/><br/>
64 </xsl:for-each>
65
66 </xsl:template>
67
68
69 <xsl:template name="collectionAndGroupLinks">
70 <xsl:for-each select="collectionList/collection|groupList/group">
71 <xsl:sort data-type="number" select="@position"/>
72 <xsl:if test="name() = 'collection'">
73 <gslib:collectionLinkWithImage/>
74 </xsl:if>
75 <xsl:if test="name() = 'group'">
76 <gslib:groupLinkWithImage/>
77 </xsl:if>
78 </xsl:for-each>
79
80 </xsl:template>
81 <xsl:template match="/page/xsltparams">
82 <!-- suppress xsltparam block in page -->
83 </xsl:template>
84
85</xsl:stylesheet>
86
87
Note: See TracBrowser for help on using the repository browser.