source: greenstone3/trunk/web/interfaces/nzdl/transform/home.xsl@ 17021

Last change on this file since 17021 was 17021, checked in by max, 16 years ago

Move the HTML skeleton from style.xsl to the current XSL file.

  • Property svn:keywords set to Author Date Id Revision
File size: 11.3 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 extension-element-prefixes="java util"
7 exclude-result-prefixes="java util">
8
9 <!-- style includes global params interface_name, library_name -->
10 <xsl:include href="style.xsl"/>
11 <xsl:include href="home-text.xsl"/>
12 <xsl:include href="page-common.xsl"/>
13
14 <xsl:output method="html"/>
15
16 <!-- the main page layout template is here -->
17 <xsl:template match="page">
18 <html>
19 <head>
20 <title>
21 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
22 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
23 </title>
24 <xsl:call-template name="globalStyle"/>
25 <xsl:call-template name="pageStyle"/>
26 </head>
27 <body class="bgimage">
28 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
29 <div id="page">
30 <xsl:apply-templates select="pageResponse"/>
31 <xsl:call-template name="greenstoneFooter"/>
32 </div>
33 </body>
34 </html>
35 </xsl:template>
36
37 <xsl:template name="pageTitle">
38 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/>
39 </xsl:template>
40
41 <!-- page specific style goes here -->
42 <xsl:template name="pageStyle"/>
43
44 <xsl:template match="pageResponse">
45 <xsl:call-template name="nzdlPageBanner"/>
46 <center>
47 <xsl:apply-templates select="collectionList"/>
48 </center>
49 <center><xsl:call-template name="dividerBar"/></center>
50 <p />
51 <center><h2><xsl:call-template name="textprojhead"/></h2></center>
52
53 <table border='0' cellpadding='5'>
54 <xsl:call-template name="project_info"/>
55 <xsl:call-template name="software_info"/>
56 <xsl:call-template name="research_info"/>
57 <xsl:call-template name="affiliate_info"/>
58 </table>
59 <center>
60 <xsl:call-template name="dividerBar"/>
61 <xsl:call-template name="greenstone_info"/>
62 <p />
63 <xsl:call-template name="nzdlpagefooter"/>
64 <br />September 2003
65 </center>
66 </xsl:template>
67
68 <xsl:template name="project_info">
69 <tr valign='top'>
70 <td>
71 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="mailto:[email protected]">Feedback</a></td></tr></table>
72 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://www.nzdl.org/html/people.html">People</a></td></tr></table>
73 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://greenstone.cs.uct.ac.za/gsdl/cgi-bin/library">African Digital Library Centre</a></td></tr></table>
74<table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://sadl.uleth.ca">Southern Alberta Digital Library Centre</a></td></tr></table>
75 </td>
76 <td><xsl:call-template name="textprojinfo"/></td>
77 </tr>
78 </xsl:template>
79
80 <xsl:template name="software_info">
81 <tr>
82 <td></td>
83 <th align='left'><xsl:call-template name="titlesoftwareinfo"/></th>
84 </tr>
85 <tr valign='top'>
86 <td>
87 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="{$library_name}?a=p&amp;sa=gsdl">About<br />Greenstone 2</a></td></tr></table>
88 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://www.greenstone.org/english/docs.html">Greenstone 2<br />Documentation</a></td></tr></table>
89 </td>
90 <td><xsl:call-template name="textsoftwareinfo"/></td>
91 </tr>
92 </xsl:template>
93
94 <xsl:template name="research_info">
95 <tr>
96 <td></td>
97 <th align='left'><xsl:call-template name="titleresearchinfo"/></th>
98 </tr>
99 <tr valign='top'>
100 <td>
101 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://www.nzdl.org/html/research.html">Research</a></td></tr></table>
102 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://www.nzdl.org/html/projects.html">Projects</a></td></tr></table>
103 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://www.nzdl.org/html/software.html">Software<br />Downloads</a></td></tr></table>
104 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://www.cs.waikato.ac.nz/~nzdl/publications/">Publications</a></td></tr></table>
105 </td>
106 <td><xsl:call-template name="textresearchinfo"/></td>
107 </tr>
108
109<!-- <tr valign='top'>
110 <td>
111 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="http://nzdl2.cs.waikato.ac.nz/cgi-bin/zdemo/library">Z39.50<br />demo</a></td></tr></table>
112 </td><td>
113 We have an experimental facility for searching Z39.50 collections using Greenstone. Ultimately we plan a full bibliographic search facility, with the ability to combine tests on different fields, and to be able to search multiple collections, including cross-searching Greenstone and Z39.50 collections.
114 </td>
115 </tr>-->
116 </xsl:template>
117
118 <xsl:template name="affiliate_info">
119 <tr>
120 <td></td>
121 <th align='left'><xsl:call-template name="titleaffiliateinfo"/></th>
122 </tr>
123 <tr valign='top'>
124 <td>
125 <img src="interfaces/nzdl/images/ghproj.jpg" alt="Human Info NGO" width='100' height='90'/>
126 </td>
127 <td><xsl:call-template name="textaffiliatehumaninfo"/></td>
128 </tr>
129 <tr valign='top'>
130 <td><img src="interfaces/nzdl/images/unesco.gif" alt="UNESCO" width='100' height='90' />
131 </td>
132 <td><xsl:call-template name='textaffiliateunesco'/></td>
133 </tr>
134 </xsl:template>
135
136 <xsl:template match="collection">
137 <xsl:param name="extraArgs"/>
138 <xsl:variable name="ct"><xsl:choose><xsl:when test="metadataList/metadata[@name='buildType']='mgpp'">1</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable>
139 <p />
140 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}&amp;ct={$ct}{$extraArgs}">
141 <img width="150" border="1">
142 <xsl:attribute name="src">
143 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:choose><xsl:when test="displayItem[@name='smallicon']"><xsl:value-of select="displayItem[@name='smallicon']"/></xsl:when><xsl:otherwise><xsl:value-of select="displayItem[@name='icon']"/></xsl:otherwise></xsl:choose>
144 </xsl:attribute>
145 <xsl:attribute name="alt">
146 <xsl:value-of select="displayItem[@name='name']"/>
147 </xsl:attribute>
148 </img>
149 </a>
150 <p />
151 </xsl:template>
152
153
154 <xsl:template match="collectionList">
155 <center>
156 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Humanitarian and UN collections</xsl:with-param></xsl:call-template>
157 <p /><xsl:call-template name="collectfao"/>
158 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Demonstration collections</xsl:with-param></xsl:call-template>
159 <p /><xsl:call-template name="collectrest"/>
160 </center>
161 </xsl:template>
162
163 <xsl:template name="collectfao">
164 <table width="537">
165 <tr valign='top'>
166 <td align='center'>
167 <p /><xsl:apply-templates select="collection[@name='hdl']"/>
168 <p /><xsl:apply-templates select="collection[@name='fnl']"/>
169 <p /><xsl:apply-templates select="collection[@name='envl']"/>
170 <p /><xsl:apply-templates select="collection[@name='aginfo']"/>
171 <p /><xsl:apply-templates select="collection[@name='gtz']"/>
172 <p /><xsl:apply-templates select="collection[@name='cdl']"/>
173 <p /><xsl:apply-templates select="collection[@name='edudev']"/>
174 <p /><xsl:apply-templates select="collection[@name='nigeria']"/>
175 <p /><xsl:apply-templates select="collection[@name='safem']"/>
176 <p />firstaid<xsl:apply-templates select="collection[@name='firstaid']"/>
177 </td>
178 <td align='center'>
179 <p /><xsl:apply-templates select="collection[@name='mhl']"/>
180 <p /><xsl:apply-templates select="collection[@name='fnl1_1']"/>
181 <p /><xsl:apply-templates select="collection[@name='paho']"/>
182 <p /><xsl:apply-templates select="collection[@name='unesco']"/>
183 <p /><xsl:apply-templates select="collection[@name='muster']"/>
184 <p /><xsl:apply-templates select="collection[@name='unescoen']"/>
185 <p /><xsl:apply-templates select="collection[@name='dfid']"/>
186 <p /><xsl:apply-templates select="collection[@name='ewf']"/>
187 <p /><xsl:apply-templates select="collection[@name='fi1998']"/>
188 <p /><xsl:apply-templates select="collection[@name='faodocs']"/>
189 </td>
190 <td align='center'>
191 <p /><xsl:apply-templates select="collection[@name='ccgi']"/>
192 <p /><xsl:apply-templates select="collection[@name='fnl2.2']"/>
193 <p /><xsl:apply-templates select="collection[@name='who']"/>
194 <p /><xsl:apply-templates select="collection[@name='tulane']"/>
195 <p /><xsl:apply-templates select="collection[@name='unaids']"/>
196 <p /><xsl:apply-templates select="collection[@name='aedl']"/>
197 <p /><xsl:apply-templates select="collection[@name='whoedm']"/>
198 <p /><xsl:apply-templates select="collection[@name='helid']"/>
199 <p /><xsl:apply-templates select="collection[@name='ipc']"/>
200 <p /><xsl:apply-templates select="collection[@name='povsem']"/>
201 </td>
202 </tr>
203 </table>
204 </xsl:template>
205
206
207 <xsl:template name="collectrest">
208 <table width='537'>
209 <tr valign='top'>
210 <td align='center'>
211 <p /><xsl:apply-templates select="collection[@name='acrodemo']"/>
212 <p /><xsl:apply-templates select="collection[@name='niupepa']"/>
213 <p />howto DL<xsl:apply-templates select="collection[@name='howto']"/>
214 <p /><xsl:apply-templates select="collection[@name='arabic']"/>
215 <p /><xsl:apply-templates select="collection[@name='chinese']">
216 <xsl:with-param name="extraArgs">&amp;l=zh</xsl:with-param>
217 </xsl:apply-templates>
218 <p /><xsl:apply-templates select="collection[@name='folktale']"/>
219 <p /><xsl:apply-templates select="collection[@name='demooai']"/>
220 <p /><xsl:apply-templates select="collection[@name='tidbits']"/>
221 </td>
222 <td align='center'>
223 <p />meldex<xsl:apply-templates select="collection[@name='meldex']"/>
224 <p /><xsl:apply-templates select="collection[@name='wordpdf']"/>
225 <p /><xsl:apply-templates select="collection[@name='musvid']"/>
226 <p /><xsl:apply-templates select="collection[@name='gberg']"/>
227 <p /><xsl:apply-templates select="collection[@name='allshake']"/>
228 <p /><xsl:apply-templates select="collection[@name='aircraft']"/>
229 <p /><xsl:apply-templates select="collection[@name='csbib']"/>
230 <p /><xsl:apply-templates select="collection[@name='coltbib']">
231 <xsl:with-param name="extraArgs">&amp;qt=1</xsl:with-param>
232 </xsl:apply-templates>
233 </td>
234 <td align='center'>
235 <p /><xsl:apply-templates select="collection[@name='cstr']"/>
236 <p /><xsl:apply-templates select="collection[@name='gsarch']"/>
237 <p /><xsl:apply-templates select="collection[@name='ohist']"/>
238 <p /><xsl:apply-templates select="collection[@name='hcibib']"/>
239 <p /><xsl:apply-templates select="collection[@name='whist']"/>
240 <p /><xsl:apply-templates select="collection[@name='beowulf']"/>
241 <p /><xsl:apply-templates select="collection[@name='tcc']"/>
242 <p /><xsl:apply-templates select="collection[@name='jair']"/>
243 </td>
244 </tr>
245 </table>
246 </xsl:template>
247
248</xsl:stylesheet>
249
250
251
252
Note: See TracBrowser for help on using the repository browser.