source: trunk/gsdl3/web/interfaces/nzdl/transform/home.xsl@ 8569

Last change on this file since 8569 was 8569, checked in by nzdl, 19 years ago

updated to match the collections on nzdl.org

  • Property svn:keywords set to Author Date Id Revision
File size: 10.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 <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: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>
116 <p />
117 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}&amp;ct={$ct}">
118 <img width="150" border="1">
119 <xsl:attribute name="src">
120 <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>
121 </xsl:attribute>
122 <xsl:attribute name="alt">
123 <xsl:value-of select="displayItem[@name='name']"/>
124 </xsl:attribute>
125 </img>
126 </a>
127 <p />
128 </xsl:template>
129
130
131 <xsl:template match="collectionList">
132 <center>
133 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Humanitarian and UN collections</xsl:with-param></xsl:call-template>
134 <p /><xsl:call-template name="collectfao"/>
135 <xsl:call-template name="dividerBar"><xsl:with-param name="text">Demonstration collections</xsl:with-param></xsl:call-template>
136 <p /><xsl:call-template name="collectrest"/>
137 </center>
138 </xsl:template>
139
140 <xsl:template name="collectfao">
141 <table width="537">
142 <tr valign='top'>
143 <td align='center'>
144 <p /><xsl:apply-templates select="collection[@name='hdl']"/>
145 <p /><xsl:apply-templates select="collection[@name='fnl']"/>
146 <p /><xsl:apply-templates select="collection[@name='envl']"/>
147 <p /><xsl:apply-templates select="collection[@name='aginfo']"/>
148 <p /><xsl:apply-templates select="collection[@name='gtz']"/>
149 <p /><xsl:apply-templates select="collection[@name='cdl']"/>
150 <p /><xsl:apply-templates select="collection[@name='edudev']"/>
151 <p /><xsl:apply-templates select="collection[@name='nigeria']"/>
152 <p /><xsl:apply-templates select="collection[@name='safem']"/>
153 <p />firstaid<xsl:apply-templates select="collection[@name='firstaid']"/>
154 </td>
155 <td align='center'>
156 <p /><xsl:apply-templates select="collection[@name='mhl']"/>
157 <p /><xsl:apply-templates select="collection[@name='fnl1_1']"/>
158 <p /><xsl:apply-templates select="collection[@name='paho']"/>
159 <p /><xsl:apply-templates select="collection[@name='unesco']"/>
160 <p /><xsl:apply-templates select="collection[@name='muster']"/>
161 <p /><xsl:apply-templates select="collection[@name='unescoen']"/>
162 <p /><xsl:apply-templates select="collection[@name='dfid']"/>
163 <p /><xsl:apply-templates select="collection[@name='ewf']"/>
164 <p /><xsl:apply-templates select="collection[@name='fi1998']"/>
165 <p /><xsl:apply-templates select="collection[@name='faodocs']"/>
166 </td>
167 <td align='center'>
168 <p /><xsl:apply-templates select="collection[@name='ccgi']"/>
169 <p /><xsl:apply-templates select="collection[@name='fnl2.2']"/>
170 <p /><xsl:apply-templates select="collection[@name='who']"/>
171 <p /><xsl:apply-templates select="collection[@name='tulane']"/>
172 <p /><xsl:apply-templates select="collection[@name='unaids']"/>
173 <p /><xsl:apply-templates select="collection[@name='aedl']"/>
174 <p /><xsl:apply-templates select="collection[@name='whoedm']"/>
175 <p /><xsl:apply-templates select="collection[@name='helid']"/>
176 <p /><xsl:apply-templates select="collection[@name='ipc']"/>
177 <p /><xsl:apply-templates select="collection[@name='povsem']"/>
178 </td>
179 </tr>
180 </table>
181 </xsl:template>
182
183
184 <xsl:template name="collectrest">
185 <table width='537'>
186 <tr valign='top'>
187 <td align='center'>
188 <p /><xsl:apply-templates select="collection[@name='acrodemo']"/>
189 <p /><xsl:apply-templates select="collection[@name='niupepa']"/>
190 <p />howto DL<xsl:apply-templates select="collection[@name='howto']"/>
191 <p /><xsl:apply-templates select="collection[@name='arabic']"/>
192 <p /><xsl:apply-templates select="collection[@name='chinese']"/>
193 <p /><xsl:apply-templates select="collection[@name='folktale']"/>
194 <p /><xsl:apply-templates select="collection[@name='demooai']"/>
195 <p /><xsl:apply-templates select="collection[@name='tidbits']"/>
196 </td>
197 <td align='center'>
198 <p />meldex<xsl:apply-templates select="collection[@name='meldex']"/>
199 <p /><xsl:apply-templates select="collection[@name='wordpdf']"/>
200 <p /><xsl:apply-templates select="collection[@name='musvid']"/>
201 <p /><xsl:apply-templates select="collection[@name='gberg']"/>
202 <p /><xsl:apply-templates select="collection[@name='allshake']"/>
203 <p /><xsl:apply-templates select="collection[@name='aircraft']"/>
204 <p /><xsl:apply-templates select="collection[@name='csbib']"/>
205 <p /><xsl:apply-templates select="collection[@name='coltbib']"/>
206 </td>
207 <td align='center'>
208 <p /><xsl:apply-templates select="collection[@name='cstr']"/>
209 <p /><xsl:apply-templates select="collection[@name='gsarch']"/>
210 <p /><xsl:apply-templates select="collection[@name='ohist']"/>
211 <p /><xsl:apply-templates select="collection[@name='hcibib']"/>
212 <p /><xsl:apply-templates select="collection[@name='whist']"/>
213 <p /><xsl:apply-templates select="collection[@name='beowulf']"/>
214 <p /><xsl:apply-templates select="collection[@name='tcc']"/>
215 <p /><xsl:apply-templates select="collection[@name='jair']"/>
216 </td>
217 </tr>
218 </table>
219 </xsl:template>
220
221</xsl:stylesheet>
222
223
224
225
Note: See TracBrowser for help on using the repository browser.