source: other-projects/tipple-android/i-greenstone-server-files/greenstone/webapps/greenstone3/interfaces/nzdl/transform/home.xsl@ 26899

Last change on this file since 26899 was 26899, checked in by davidb, 11 years ago

Tipple reborn after Chris's Summer of Code 2013

  • Property svn:mime-type set to application/xml
File size: 11.5 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>
28 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
29 <div id="page-wrapper">
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="nzdlPageBanner">
69 <div><img src="interfaces/nzdl/images/nzdl2gr.gif" width="457" height="181" ><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/></xsl:attribute></img></div>
70 </xsl:template>
71
72 <xsl:template name="project_info">
73 <tr valign='top'>
74 <td>
75 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="mailto:[email protected]">Feedback</a></td></tr></table>
76 <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>
77 <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>
78<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>
79 </td>
80 <td><xsl:call-template name="textprojinfo"/></td>
81 </tr>
82 </xsl:template>
83
84 <xsl:template name="software_info">
85 <tr>
86 <td></td>
87 <th align='left'><xsl:call-template name="titlesoftwareinfo"/></th>
88 </tr>
89 <tr valign='top'>
90 <td>
91 <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>
92 <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>
93 </td>
94 <td><xsl:call-template name="textsoftwareinfo"/></td>
95 </tr>
96 </xsl:template>
97
98 <xsl:template name="research_info">
99 <tr>
100 <td></td>
101 <th align='left'><xsl:call-template name="titleresearchinfo"/></th>
102 </tr>
103 <tr valign='top'>
104 <td>
105 <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>
106 <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>
107 <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>
108 <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>
109 </td>
110 <td><xsl:call-template name="textresearchinfo"/></td>
111 </tr>
112
113<!-- <tr valign='top'>
114 <td>
115 <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>
116 </td><td>
117 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.
118 </td>
119 </tr>-->
120 </xsl:template>
121
122 <xsl:template name="affiliate_info">
123 <tr>
124 <td></td>
125 <th align='left'><xsl:call-template name="titleaffiliateinfo"/></th>
126 </tr>
127 <tr valign='top'>
128 <td>
129 <img src="interfaces/nzdl/images/ghproj.jpg" alt="Human Info NGO" width='100' height='90'/>
130 </td>
131 <td><xsl:call-template name="textaffiliatehumaninfo"/></td>
132 </tr>
133 <tr valign='top'>
134 <td><img src="interfaces/nzdl/images/unesco.gif" alt="UNESCO" width='100' height='90' />
135 </td>
136 <td><xsl:call-template name='textaffiliateunesco'/></td>
137 </tr>
138 </xsl:template>
139
140 <xsl:template match="collection">
141 <xsl:param name="extraArgs"/>
142 <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>
143 <p />
144 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}&amp;ct={$ct}{$extraArgs}">
145 <img width="150" border="1">
146 <xsl:attribute name="src">
147 <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>
148 </xsl:attribute>
149 <xsl:attribute name="alt">
150 <xsl:value-of select="displayItem[@name='name']"/>
151 </xsl:attribute>
152 </img>
153 </a>
154 <p />
155 </xsl:template>
156
157
158 <xsl:template match="collectionList">
159 <center>
160 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Humanitarian and UN collections</xsl:with-param></xsl:call-template>
161 <p /><xsl:call-template name="collectfao"/>
162 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Demonstration collections</xsl:with-param></xsl:call-template>
163 <p /><xsl:call-template name="collectrest"/>
164 </center>
165 </xsl:template>
166
167 <xsl:template name="collectfao">
168 <table width="537">
169 <tr valign='top'>
170 <td align='center'>
171 <p /><xsl:apply-templates select="collection[@name='hdl']"/>
172 <p /><xsl:apply-templates select="collection[@name='fnl']"/>
173 <p /><xsl:apply-templates select="collection[@name='envl']"/>
174 <p /><xsl:apply-templates select="collection[@name='aginfo']"/>
175 <p /><xsl:apply-templates select="collection[@name='gtz']"/>
176 <p /><xsl:apply-templates select="collection[@name='cdl']"/>
177 <p /><xsl:apply-templates select="collection[@name='edudev']"/>
178 <p /><xsl:apply-templates select="collection[@name='nigeria']"/>
179 <p /><xsl:apply-templates select="collection[@name='safem']"/>
180 <p />firstaid<xsl:apply-templates select="collection[@name='firstaid']"/>
181 </td>
182 <td align='center'>
183 <p /><xsl:apply-templates select="collection[@name='mhl']"/>
184 <p /><xsl:apply-templates select="collection[@name='fnl1_1']"/>
185 <p /><xsl:apply-templates select="collection[@name='paho']"/>
186 <p /><xsl:apply-templates select="collection[@name='unesco']"/>
187 <p /><xsl:apply-templates select="collection[@name='muster']"/>
188 <p /><xsl:apply-templates select="collection[@name='unescoen']"/>
189 <p /><xsl:apply-templates select="collection[@name='dfid']"/>
190 <p /><xsl:apply-templates select="collection[@name='ewf']"/>
191 <p /><xsl:apply-templates select="collection[@name='fi1998']"/>
192 <p /><xsl:apply-templates select="collection[@name='faodocs']"/>
193 </td>
194 <td align='center'>
195 <p /><xsl:apply-templates select="collection[@name='ccgi']"/>
196 <p /><xsl:apply-templates select="collection[@name='fnl2.2']"/>
197 <p /><xsl:apply-templates select="collection[@name='who']"/>
198 <p /><xsl:apply-templates select="collection[@name='tulane']"/>
199 <p /><xsl:apply-templates select="collection[@name='unaids']"/>
200 <p /><xsl:apply-templates select="collection[@name='aedl']"/>
201 <p /><xsl:apply-templates select="collection[@name='whoedm']"/>
202 <p /><xsl:apply-templates select="collection[@name='helid']"/>
203 <p /><xsl:apply-templates select="collection[@name='ipc']"/>
204 <p /><xsl:apply-templates select="collection[@name='povsem']"/>
205 </td>
206 </tr>
207 </table>
208 </xsl:template>
209
210
211 <xsl:template name="collectrest">
212 <table width='537'>
213 <tr valign='top'>
214 <td align='center'>
215 <p /><xsl:apply-templates select="collection[@name='acrodemo']"/>
216 <p /><xsl:apply-templates select="collection[@name='niupepa']"/>
217 <p />howto DL<xsl:apply-templates select="collection[@name='howto']"/>
218 <p /><xsl:apply-templates select="collection[@name='arabic']"/>
219 <p /><xsl:apply-templates select="collection[@name='chinese']">
220 <xsl:with-param name="extraArgs">&amp;l=zh</xsl:with-param>
221 </xsl:apply-templates>
222 <p /><xsl:apply-templates select="collection[@name='folktale']"/>
223 <p /><xsl:apply-templates select="collection[@name='demooai']"/>
224 <p /><xsl:apply-templates select="collection[@name='tidbits']"/>
225 </td>
226 <td align='center'>
227 <p />meldex<xsl:apply-templates select="collection[@name='meldex']"/>
228 <p /><xsl:apply-templates select="collection[@name='wordpdf']"/>
229 <p /><xsl:apply-templates select="collection[@name='musvid']"/>
230 <p /><xsl:apply-templates select="collection[@name='gberg']"/>
231 <p /><xsl:apply-templates select="collection[@name='allshake']"/>
232 <p /><xsl:apply-templates select="collection[@name='aircraft']"/>
233 <p /><xsl:apply-templates select="collection[@name='csbib']"/>
234 <p /><xsl:apply-templates select="collection[@name='coltbib']">
235 <xsl:with-param name="extraArgs">&amp;qt=1</xsl:with-param>
236 </xsl:apply-templates>
237 </td>
238 <td align='center'>
239 <p /><xsl:apply-templates select="collection[@name='cstr']"/>
240 <p /><xsl:apply-templates select="collection[@name='gsarch']"/>
241 <p /><xsl:apply-templates select="collection[@name='ohist']"/>
242 <p /><xsl:apply-templates select="collection[@name='hcibib']"/>
243 <p /><xsl:apply-templates select="collection[@name='whist']"/>
244 <p /><xsl:apply-templates select="collection[@name='beowulf']"/>
245 <p /><xsl:apply-templates select="collection[@name='tcc']"/>
246 <p /><xsl:apply-templates select="collection[@name='jair']"/>
247 </td>
248 </tr>
249 </table>
250 </xsl:template>
251
252</xsl:stylesheet>
253
254
255
256
Note: See TracBrowser for help on using the repository browser.