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

Last change on this file since 14582 was 13826, checked in by nzdl, 17 years ago

added extraArgs param to collection template so that can pass in some coll specific args, eg language for the chinese collection

  • Property svn:keywords set to Author Date Id Revision
File size: 10.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 <xsl:include href="style.xsl"/>
10 <xsl:include href="home-text.xsl"/>
11 <xsl:include href="page-common.xsl"/>
12
13 <xsl:output method="html"/>
14
15 <xsl:template name="pageTitle">
16 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/>
17 </xsl:template>
18
19 <!-- page specific style goes here -->
20 <xsl:template name="pageStyle"/>
21
22 <xsl:template match="pageResponse">
23 <xsl:call-template name="nzdlPageBanner"/>
24 <center>
25 <xsl:apply-templates select="collectionList"/>
26 </center>
27 <center><xsl:call-template name="dividerBar"/></center>
28 <p />
29 <center><h2><xsl:call-template name="textprojhead"/></h2></center>
30
31 <table border='0' cellpadding='5'>
32 <xsl:call-template name="project_info"/>
33 <xsl:call-template name="software_info"/>
34 <xsl:call-template name="research_info"/>
35 <xsl:call-template name="affiliate_info"/>
36 </table>
37 <center>
38 <xsl:call-template name="dividerBar"/>
39 <xsl:call-template name="greenstone_info"/>
40 <p />
41 <xsl:call-template name="nzdlpagefooter"/>
42 <br />September 2003
43 </center>
44 </xsl:template>
45
46 <xsl:template name="project_info">
47 <tr valign='top'>
48 <td>
49 <table><tr valign='middle'><td><img src="interfaces/nzdl/images/gbull.gif"/></td><td><a href="mailto:[email protected]">Feedback</a></td></tr></table>
50 <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>
51 <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>
52<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>
53 </td>
54 <td><xsl:call-template name="textprojinfo"/></td>
55 </tr>
56 </xsl:template>
57
58 <xsl:template name="software_info">
59 <tr>
60 <td></td>
61 <th align='left'><xsl:call-template name="titlesoftwareinfo"/></th>
62 </tr>
63 <tr valign='top'>
64 <td>
65 <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>
66 <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>
67 </td>
68 <td><xsl:call-template name="textsoftwareinfo"/></td>
69 </tr>
70 </xsl:template>
71
72 <xsl:template name="research_info">
73 <tr>
74 <td></td>
75 <th align='left'><xsl:call-template name="titleresearchinfo"/></th>
76 </tr>
77 <tr valign='top'>
78 <td>
79 <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>
80 <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>
81 <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>
82 <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>
83 </td>
84 <td><xsl:call-template name="textresearchinfo"/></td>
85 </tr>
86
87<!-- <tr valign='top'>
88 <td>
89 <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>
90 </td><td>
91 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.
92 </td>
93 </tr>-->
94 </xsl:template>
95
96 <xsl:template name="affiliate_info">
97 <tr>
98 <td></td>
99 <th align='left'><xsl:call-template name="titleaffiliateinfo"/></th>
100 </tr>
101 <tr valign='top'>
102 <td>
103 <img src="interfaces/nzdl/images/ghproj.jpg" alt="Human Info NGO" width='100' height='90'/>
104 </td>
105 <td><xsl:call-template name="textaffiliatehumaninfo"/></td>
106 </tr>
107 <tr valign='top'>
108 <td><img src="interfaces/nzdl/images/unesco.gif" alt="UNESCO" width='100' height='90' />
109 </td>
110 <td><xsl:call-template name='textaffiliateunesco'/></td>
111 </tr>
112 </xsl:template>
113
114 <xsl:template match="collection">
115 <xsl:param name="extraArgs"/>
116 <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>
117 <p />
118 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}&amp;ct={$ct}{$extraArgs}">
119 <img width="150" border="1">
120 <xsl:attribute name="src">
121 <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>
122 </xsl:attribute>
123 <xsl:attribute name="alt">
124 <xsl:value-of select="displayItem[@name='name']"/>
125 </xsl:attribute>
126 </img>
127 </a>
128 <p />
129 </xsl:template>
130
131
132 <xsl:template match="collectionList">
133 <center>
134 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Humanitarian and UN collections</xsl:with-param></xsl:call-template>
135 <p /><xsl:call-template name="collectfao"/>
136 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Demonstration collections</xsl:with-param></xsl:call-template>
137 <p /><xsl:call-template name="collectrest"/>
138 </center>
139 </xsl:template>
140
141 <xsl:template name="collectfao">
142 <table width="537">
143 <tr valign='top'>
144 <td align='center'>
145 <p /><xsl:apply-templates select="collection[@name='hdl']"/>
146 <p /><xsl:apply-templates select="collection[@name='fnl']"/>
147 <p /><xsl:apply-templates select="collection[@name='envl']"/>
148 <p /><xsl:apply-templates select="collection[@name='aginfo']"/>
149 <p /><xsl:apply-templates select="collection[@name='gtz']"/>
150 <p /><xsl:apply-templates select="collection[@name='cdl']"/>
151 <p /><xsl:apply-templates select="collection[@name='edudev']"/>
152 <p /><xsl:apply-templates select="collection[@name='nigeria']"/>
153 <p /><xsl:apply-templates select="collection[@name='safem']"/>
154 <p />firstaid<xsl:apply-templates select="collection[@name='firstaid']"/>
155 </td>
156 <td align='center'>
157 <p /><xsl:apply-templates select="collection[@name='mhl']"/>
158 <p /><xsl:apply-templates select="collection[@name='fnl1_1']"/>
159 <p /><xsl:apply-templates select="collection[@name='paho']"/>
160 <p /><xsl:apply-templates select="collection[@name='unesco']"/>
161 <p /><xsl:apply-templates select="collection[@name='muster']"/>
162 <p /><xsl:apply-templates select="collection[@name='unescoen']"/>
163 <p /><xsl:apply-templates select="collection[@name='dfid']"/>
164 <p /><xsl:apply-templates select="collection[@name='ewf']"/>
165 <p /><xsl:apply-templates select="collection[@name='fi1998']"/>
166 <p /><xsl:apply-templates select="collection[@name='faodocs']"/>
167 </td>
168 <td align='center'>
169 <p /><xsl:apply-templates select="collection[@name='ccgi']"/>
170 <p /><xsl:apply-templates select="collection[@name='fnl2.2']"/>
171 <p /><xsl:apply-templates select="collection[@name='who']"/>
172 <p /><xsl:apply-templates select="collection[@name='tulane']"/>
173 <p /><xsl:apply-templates select="collection[@name='unaids']"/>
174 <p /><xsl:apply-templates select="collection[@name='aedl']"/>
175 <p /><xsl:apply-templates select="collection[@name='whoedm']"/>
176 <p /><xsl:apply-templates select="collection[@name='helid']"/>
177 <p /><xsl:apply-templates select="collection[@name='ipc']"/>
178 <p /><xsl:apply-templates select="collection[@name='povsem']"/>
179 </td>
180 </tr>
181 </table>
182 </xsl:template>
183
184
185 <xsl:template name="collectrest">
186 <table width='537'>
187 <tr valign='top'>
188 <td align='center'>
189 <p /><xsl:apply-templates select="collection[@name='acrodemo']"/>
190 <p /><xsl:apply-templates select="collection[@name='niupepa']"/>
191 <p />howto DL<xsl:apply-templates select="collection[@name='howto']"/>
192 <p /><xsl:apply-templates select="collection[@name='arabic']"/>
193 <p /><xsl:apply-templates select="collection[@name='chinese']">
194 <xsl:with-param name="extraArgs">&amp;l=zh</xsl:with-param>
195 </xsl:apply-templates>
196 <p /><xsl:apply-templates select="collection[@name='folktale']"/>
197 <p /><xsl:apply-templates select="collection[@name='demooai']"/>
198 <p /><xsl:apply-templates select="collection[@name='tidbits']"/>
199 </td>
200 <td align='center'>
201 <p />meldex<xsl:apply-templates select="collection[@name='meldex']"/>
202 <p /><xsl:apply-templates select="collection[@name='wordpdf']"/>
203 <p /><xsl:apply-templates select="collection[@name='musvid']"/>
204 <p /><xsl:apply-templates select="collection[@name='gberg']"/>
205 <p /><xsl:apply-templates select="collection[@name='allshake']"/>
206 <p /><xsl:apply-templates select="collection[@name='aircraft']"/>
207 <p /><xsl:apply-templates select="collection[@name='csbib']"/>
208 <p /><xsl:apply-templates select="collection[@name='coltbib']">
209 <xsl:with-param name="extraArgs">&amp;qt=1</xsl:with-param>
210 </xsl:apply-templates>
211 </td>
212 <td align='center'>
213 <p /><xsl:apply-templates select="collection[@name='cstr']"/>
214 <p /><xsl:apply-templates select="collection[@name='gsarch']"/>
215 <p /><xsl:apply-templates select="collection[@name='ohist']"/>
216 <p /><xsl:apply-templates select="collection[@name='hcibib']"/>
217 <p /><xsl:apply-templates select="collection[@name='whist']"/>
218 <p /><xsl:apply-templates select="collection[@name='beowulf']"/>
219 <p /><xsl:apply-templates select="collection[@name='tcc']"/>
220 <p /><xsl:apply-templates select="collection[@name='jair']"/>
221 </td>
222 </tr>
223 </table>
224 </xsl:template>
225
226</xsl:stylesheet>
227
228
229
230
Note: See TracBrowser for help on using the repository browser.