source: main/tags/2.41/gsdl/macros/home.dm@ 25339

Last change on this file since 25339 was 3775, checked in by sjboddie, 21 years ago

Added "title" attributes to img tags so that modern browsers display
tooltips as intended (previously we relied on the "alt" attribute which
doesn't display tooltips for netscape6/mozilla etc.).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.0 KB
Line 
1package home
2
3# set the title of the home page to be "greenstone digital library"
4# in the currently chosen language
5
6_pagetitle_ {_textimagegreenstone_}
7
8#######################################################################
9# java images/scripts
10#######################################################################
11
12# the _javalinks_ macros are the flashy image links at the top right of
13# the page. this is overridden here as we don't want 'home'
14# links on this page
15
16_javalinks_ {_imagehelp__imagepref_}
17_javalinks_ [v=1] {_imagehelp_<br>_imagepref_}
18
19#######################################################################
20# icons
21#######################################################################
22
23_iconselectcollection_ {<img align=texttop src="_httpiconselcolgr_" width=_widthselcolgr_ height=_heightselcolgr_ alt="_altselcolgr_" title="_altselcolgr_">}
24_iconmusiclibrary_ {<img align=texttop src="_httpicontmusic_" border=1 alt="meldex music library" title="meldex music library">}
25
26_imagecollection_ {<img src="_httpimg_/gsdlhead.gif">}
27
28#######################################################################
29# http macros
30#
31# These contain the url without any quotes
32#######################################################################
33
34_httppagegsdl_ {_httppagex_(gsdl)}
35_httppagehomehelp_ {_httppagex_(homehelp)}
36_httppagehomepref_ {_httppagex_(homepref)}
37
38#######################################################################
39# images
40#######################################################################
41
42
43_imagecollector_ {_gsimage_(_httppagecollector_,_httpimg_/ccolof.gif,_httpimg_/ccolon.gif,col,_collector:textcollector_)}
44_imagetranslator_ {_gsimage_(_httppagetranslator_,_httpimg_/ctransof.gif,_httpimg_/ctranson.gif,trans,_translang:texttranslator_)}
45_imageadmin_ {_gsimage_(_httppagestatus_,_httpimg_/cadminof.gif,_httpimg_/cadminon.gif,admin,_home:textadmin_)}
46_imagegogreenstone_ {_gsimage_(_home:httppagegsdl_,_httpimg_/cabgsof.gif,_httpimg_/cabgson.gif,gogs,_home:textabgs_)}
47_imagegodocs_ {_gsimage_(_home:httppagedocs_,_httpimg_/cgsdocof.gif,_httpimg_/cgsdocon.gif,docs,_home:textgsdocs_)}
48_imagehelp_ {_gsimage_(_home:httppagehomehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
49_imagepref_ {_gsimage_(_home:httppagehomepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
50
51#######################################################################
52# page content
53#######################################################################
54
55_content_ {
56<center>
57<p>_iconselectcollection_
58</center>
59<p>_homeextra_
60
61<center>
62<p>_iconblankbar_
63</center>
64<p><table>
65_textgocollector_
66_textgotranslator_
67_textgoadmin_
68_textgogreenstone_
69_textgodocs_
70</table>
71<center>
72<p>_iconblankbar_
73</center>
74_textaboutgreenstone_
75<center>
76<p>_iconblankbar_
77</center>
78}
79
80# the _textgocollector_, _textgotranslator_, and _textgoadmin_ macros
81# may be overridden to be empty from within the receptionist if the
82# collector, translator, or admin facilities are disabled
83_textgocollector_ {
84<tr valign=top>
85<td valign=top>_imagecollector_</td>
86<td>_textimagecollector_</td>
87</tr>
88}
89
90_textgotranslator_ {
91<tr valign=top>
92<td valign=top>_imagetranslator_</td>
93<td>_textimagetranslator_</td>
94</tr>
95}
96
97_textgoadmin_ {
98<tr valign=top>
99<td valign=top>_imageadmin_</td>
100<td>_textimageadmin_</td>
101</tr>
102}
103
104_textgogreenstone_ {
105<tr valign=top>
106<td valign=top>_imagegogreenstone_</td>
107<td>_textimagegogreenstone_</td>
108</tr>
109}
110
111_textgodocs_ {
112<tr valign=top>
113<td valign=top>_imagegodocs_</td>
114<td>_textimagegodocs_</td>
115</tr>
116}
117
118package homehelp
119
120_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
121
122_collectionlist_ {}
123
124_javalinks_ {_imagehome_}
125_javalinks_ [v=1] {
126_imagehome_<br>
127}
128
129_content_ {
130<center>
131<p>_iconblankbar_
132</center>
133<p>
134<table border=0 cellspacing=0 cellpadding=0>
135 <tr>
136 <td valign=top align=center>_imagegreenstone_</td>
137 <td valign=top>_gsdl:textgreenstone1_
138 <br><br>
139 </td>
140 </tr>
141</table>
142
143<center>
144<p>_iconblankbar_
145</center>
146_If_(_collectionlist_,_collectionlist_,_textnocollections_)
147
148<center>
149<p>_iconblankbar_
150</center>
151<p>_text4buts_
152<p><table>
153_home:textgocollector_
154_home:textgotranslator_
155_home:textgoadmin_
156_home:textgogreenstone_
157_home:textgodocs_
158</table>
159<center>
160<p>_iconblankbar_
161</center>
162}
163
164
165package homepref
166
167_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
168
169_javalinks_ {_homepref:imagehome_}
170_javalinks_ [v=1] {
171_homepref:imagehome_<br>
172}
173
174_pagescriptextra_ {_preferences:pagescriptextra_}
175
176
177_imagehome_ {_gsimage_(_homepref:httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
178_httppagehome_ {_httppagex_(home)}
179
180_content_ {
181<center>
182<p>_iconblankbar_
183</center>
184
185<form name=PrefForm method=get action="_gwcgi_">
186<h3>_preferences:textpresentationprefs_</h3>
187
188<table border="0">
189<tr valign="top">
190<td>_preferences:textlanguage_</td>
191<td>_languageoption_</td>
192</tr>
193<tr valign="top">
194<td>_preferences:textencoding_</td>
195<td>_encodingoption_</td>
196</tr>
197<tr valign="top">
198_preferences:formatoption_
199</tr>
200</table>
201<p>_iconblankbar_
202}
Note: See TracBrowser for help on using the repository browser.