source: main/trunk/greenstone3/web/interfaces/default/transform/about.xsl@ 23779

Last change on this file since 23779 was 23779, checked in by davidb, 13 years ago

Two new interfaces - 'default' now tries to use the client's XSLT capabilities of the web browser, falling back to the 'traditional' interface if this fails.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:java="http://xml.apache.org/xslt/java"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 extension-element-prefixes="java"
8 exclude-result-prefixes="java">
9
10
11 <xsl:template match="page">
12
13 <!-- the page layout template is here -->
14 <html>
15 <head>
16 <title>
17 <gslib:aboutCollectionPageTitle/>
18 </title>
19 <link rel="stylesheet" href="interfaces/default/style/core.css" type="text/css"/>
20 </head>
21
22 <body><gslib:textDirectionAttribute/>
23
24 <div id="page-wrapper">
25 <gslib:displayErrorsIfAny/>
26
27 <div id="banner">
28 <p>
29 <gslib:collectionHomeLinkWithLogoIfAvailable/>
30 </p>
31 <ul id="bannerlist">
32 <li><gslib:homeButtonTop/></li>
33 <li><gslib:helpButtonTop/></li>
34 <li><gslib:preferencesButtonTop/></li>
35 </ul>
36 </div>
37
38 <!--If some services are available for the current collection display the navigation bar-->
39 <xsl:choose>
40 <xsl:when test="$this-element/serviceList/service">
41 <div id="navbar">
42 <ul id="navbarlist">
43 <gslib:servicesNavigationBar/>
44 </ul>
45 </div>
46 </xsl:when>
47 <!--Otherwise simply display a blank divider bar-->
48 <xsl:otherwise>
49 <div class="divbar"><gslib:noTextBar/></div>
50 </xsl:otherwise>
51 </xsl:choose>
52
53 <div id="content" class="moz-output-escape">
54 <!--Display the description text of the current collection,
55 and if some services are available then create a list
56 of links for each service within a <ul id="servicelist"> element.-->
57 <gslib:collectionDescriptionTextAndServicesLinks/>
58 </div>
59
60 <div id="footer">
61 <div class="divbar"><gslib:poweredByGS3TextBar/></div>
62 </div>
63 </div>
64 <span id="language" style="display: none;"><xsl:value-of select="/page/@lang" /></span>
65 <span id="interface" style="display: none;"><xsl:value-of select="$interface_name" /></span>
66
67 <script type="text/javascript"><xsl:text>var placeholder = false;</xsl:text></script>
68 <script type="text/javascript" src="jquery.js"><xsl:comment>jQuery</xsl:comment></script>
69 <script type="text/javascript" src="test.js"><xsl:comment>Client side transforms</xsl:comment></script>
70
71 </body>
72 </html>
73 </xsl:template>
74
75
76</xsl:stylesheet>
77
Note: See TracBrowser for help on using the repository browser.