source: greenstone3/trunk/web/interfaces/oran/transform/layouts/main.xsl@ 20404

Last change on this file since 20404 was 20404, checked in by oranfry, 15 years ago

only show home help prefs if a collection is selected, like other interfaces

File size: 3.8 KB
RevLine 
[19856]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="util java util">
9
[19988]10 <!-- put the URL or path of your site here site -->
11 <!-- eg 'http://www.example.com/mysite' or '/mysite' -->
[20380]12 <xsl:template name="siteURL"><xsl:value-of select="/page/pageResponse/metadataList/metadata[@name='siteURL']"/></xsl:template>
[19856]13
[19988]14
[19856]15 <!-- the output format for this layout is html -->
16 <xsl:output method="html"/>
17
18 <!-- the main layout is defined here -->
19 <xsl:template match="/">
20
21 <html>
22
23 <head>
[19988]24 <title><xsl:call-template name="pageTitle"/> :: <xsl:call-template name="siteName"/></title>
[19856]25 <link rel="stylesheet" href="interfaces/{$interface_name}/style/core.css" type="text/css"/>
26 <script type="text/javascript" src="interfaces/oran/js/jquery.js"><xsl:text> </xsl:text></script>
27 <xsl:call-template name="berryBasketHeadTags"/>
28 </head>
29
[19988]30 <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
[19856]31
[19988]32 <xsl:call-template name="displayErrorsIfAny"/>
33
[19856]34 <div id="container"><div id="container2"><div id="container3"><div id="container4">
35
36 <div id="banner">
37
38 <!-- show the title -->
[19988]39 <div id="breadcrumbs"><xsl:call-template name="breadcrumbs"/><xsl:text> </xsl:text></div>
40 <h2><xsl:call-template name="pageTitle"/></h2>
[19856]41
[20404]42 <xsl:if test="/page/pageResponse/collection">
43 <!-- show home, help, preferences links -->
44 <ul id="bannerLinks">
[19856]45
[20404]46 <!-- preferences -->
47 <li>
48 <a href="{$library_name}?a=p&amp;amp;sa=pref&amp;amp;c={$collName}">
49 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
50 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/>
51 </a>
52 </li>
[19856]53
[20404]54 <!-- help -->
55 <li>
56 <a href="{$library_name}?a=p&amp;amp;sa=help&amp;amp;c={$collName}">
57 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
58 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>
59 </a>
60 </li>
[19856]61
[20404]62 <li>
63 <a href="{$library_name}?a=p&amp;amp;sa=home">
64 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute>
65 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/>
66 </a>
67 </li>
[19856]68
[20404]69 </ul>
70 </xsl:if>
[19856]71
72 <!-- show the available 'services' (browse, search, etc.) -->
73 <xsl:if test="/page/pageResponse/collection/serviceList/service">
74 <ul id="nav">
75 <xsl:for-each select="/page/pageResponse/collection/serviceList/service">
76 <xsl:call-template name="navigationTab"/>
77 </xsl:for-each>
78 </ul>
79 </xsl:if>
80
81 </div>
82
83 <div id="content">
84 <!--
85 show the content of the page.
86 to customise this part, edit the xsl file for the page you want to edit
87 -->
88 <xsl:apply-templates select="/page"/>
[19988]89
[19856]90 </div>
91
92 <div id="footer">
93 <xsl:call-template name="poweredByGS3TextBar"/>
94 </div>
95
96 <div class="corner" id="cornerTopLeft"><xsl:text> </xsl:text></div>
97 <div class="corner" id="cornerTopRight"><xsl:text> </xsl:text></div>
98 <div class="corner" id="cornerBottomLeft"><xsl:text> </xsl:text></div>
99 <div class="corner" id="cornerBottomRight"><xsl:text> </xsl:text></div>
100
101 </div></div></div></div>
102
103 </body>
104 </html>
105 </xsl:template>
106
107</xsl:stylesheet>
108
109
Note: See TracBrowser for help on using the repository browser.