source: trunk/gsdl/macros/home.dm@ 6723

Last change on this file since 6723 was 6723, checked in by kjdon, 20 years ago

added some new macros for the gli link and page

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.2 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_imagegli_ {_gsimage_(_httppagegli_,_httpimg_/cgliof.gif,_httpimg_/cglion.gif,gli,_gli:textgli_)}
44_imagecollector_ {_gsimage_(_httppagecollector_,_httpimg_/ccolof.gif,_httpimg_/ccolon.gif,col,_collector:textcollector_)}
45_imagetranslator_ {_gsimage_(_httppagetranslator_,_httpimg_/ctransof.gif,_httpimg_/ctranson.gif,trans,_translang:texttranslator_)}
46_imageadmin_ {_gsimage_(_httppagestatus_,_httpimg_/cadminof.gif,_httpimg_/cadminon.gif,admin,_home:textadmin_)}
47_imagegogreenstone_ {_gsimage_(_home:httppagegsdl_,_httpimg_/cabgsof.gif,_httpimg_/cabgson.gif,gogs,_home:textabgs_)}
48_imagegodocs_ {_gsimage_(_home:httppagedocs_,_httpimg_/cgsdocof.gif,_httpimg_/cgsdocon.gif,docs,_home:textgsdocs_)}
49_imagehelp_ {_gsimage_(_home:httppagehomehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
50_imagepref_ {_gsimage_(_home:httppagehomepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
51
52#######################################################################
53# page content
54#######################################################################
55
56_content_ {
57<center>
58<p>_iconselectcollection_
59</center>
60<p>_homeextra_
61
62<center>
63<p>_iconblankbar_
64</center>
65<p><table>
66_textgogli_
67_textgocollector_
68_textgotranslator_
69_textgoadmin_
70_textgogreenstone_
71_textgodocs_
72</table>
73<center>
74<p>_iconblankbar_
75</center>
76_textaboutgreenstone_
77<center>
78<p>_iconblankbar_
79</center>
80}
81
82# the _textgocollector_, _textgotranslator_, and _textgoadmin_ macros
83# may be overridden to be empty from within the receptionist if the
84# collector, translator, or admin facilities are disabled
85
86_textgogli_ {
87<tr valign=top>
88<td valign=top>_imagegli_</td>
89<td>_textimagegli_</td>
90</tr>
91}
92
93_textgocollector_ {
94<tr valign=top>
95<td valign=top>_imagecollector_</td>
96<td>_textimagecollector_</td>
97</tr>
98}
99
100_textgotranslator_ {
101<tr valign=top>
102<td valign=top>_imagetranslator_</td>
103<td>_textimagetranslator_</td>
104</tr>
105}
106
107_textgoadmin_ {
108<tr valign=top>
109<td valign=top>_imageadmin_</td>
110<td>_textimageadmin_</td>
111</tr>
112}
113
114_textgogreenstone_ {
115<tr valign=top>
116<td valign=top>_imagegogreenstone_</td>
117<td>_textimagegogreenstone_</td>
118</tr>
119}
120
121_textgodocs_ {
122<tr valign=top>
123<td valign=top>_imagegodocs_</td>
124<td>_textimagegodocs_</td>
125</tr>
126}
127
128package homehelp
129
130_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
131
132_collectionlist_ {}
133
134_javalinks_ {_imagehome_}
135_javalinks_ [v=1] {
136_imagehome_<br>
137}
138
139_content_ {
140<center>
141<p>_iconblankbar_
142</center>
143<p>
144<table border=0 cellspacing=0 cellpadding=0>
145 <tr>
146 <td valign=top align=center>_imagegreenstone_</td>
147 <td valign=top>_gsdl:textgreenstone1_
148 <br><br>
149 </td>
150 </tr>
151</table>
152
153<center>
154<p>_iconblankbar_
155</center>
156_If_(_collectionlist_,_collectionlist_,_textnocollections_)
157
158<center>
159<p>_iconblankbar_
160</center>
161<p>_text4buts_
162<p><table>
163_home:textgogli_
164_home:textgocollector_
165_home:textgotranslator_
166_home:textgoadmin_
167_home:textgogreenstone_
168_home:textgodocs_
169</table>
170<center>
171<p>_iconblankbar_
172</center>
173}
174
175
176package homepref
177
178_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
179
180_javalinks_ {_homepref:imagehome_}
181_javalinks_ [v=1] {
182_homepref:imagehome_<br>
183}
184
185_pagescriptextra_ {_preferences:pagescriptextra_}
186
187
188_imagehome_ {_gsimage_(_homepref:httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
189_httppagehome_ {_httppagex_(home)}
190
191_content_ {
192<center>
193<p>_iconblankbar_
194</center>
195
196<form name=PrefForm method=get action="_gwcgi_">
197<h3>_preferences:textpresentationprefs_</h3>
198
199<table border="0">
200<tr valign="top">
201<td>_preferences:textlanguage_</td>
202<td>_languageoption_</td>
203</tr>
204<tr valign="top">
205<td>_preferences:textencoding_</td>
206<td>_encodingoption_</td>
207</tr>
208<tr valign="top">
209_preferences:formatoption_
210</tr>
211</table>
212<p>_iconblankbar_
213}
Note: See TracBrowser for help on using the repository browser.