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

Last change on this file since 10872 was 10872, checked in by jrm21, 18 years ago

extensive modifications of generated HTML to support HTML4 and CSS.
Style sheets are the images/ directory. This should make it much easier
to make custom themes for collections, merely by modifying the style
sheet.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
1# this file must be UTF-8 encoded
2
3package home
4
5# set the title of the home page to be "greenstone digital library"
6# in the currently chosen language
7
8_pagetitle_ {_textdescrgreenstone_}
9
10#######################################################################
11# global navigation links
12#######################################################################
13
14# overridden here as we don't want 'home' links on this page
15
16_globallinks_ {_helplink_ _preflink_}
17
18_helplink_ {_navtab_(_home:httppagehomehelp_,_linktextHELP_,_textdescrhelp_)}
19_preflink_ {_navtab_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
20
21#######################################################################
22# icons
23#######################################################################
24
25_iconmusiclibrary_ {<img src="_httpicontmusic_" border="1" alt="meldex music library" title="meldex music library">}
26
27_imagecollection_ {<img src="_httpimg_/gsdlhead.gif" alt="_textdescrgreenstone_">}
28
29#######################################################################
30# http macros
31#
32# These contain the url without any quotes
33#######################################################################
34
35_httppagegsdl_ {_httppagex_(gsdl)}
36_httppagehomehelp_ {_httppagex_(homehelp)}
37_httppagehomepref_ {_httppagex_(homepref)}
38
39#######################################################################
40# images
41#######################################################################
42
43# Buttons for the pane after the collections and before the text
44
45_imagegli_ {_gsimage_(_httppagegli_,_home:httpiconcgliof_,_home:httpiconcglion_,gli,_gli:textgli_)}
46
47_imagecollector_ {_gsimage_(_httppagecollector_,_home:httpiconccolof_,_home:httpiconccolon_,col,_collector:textcollector_)}
48
49_imagetranslator_ {_gsimage_(_httppagetranslator_,_home:httpiconctransof_,_home:httpiconctranson_,trans,_translang:texttranslator_)}
50
51_imageadmin_ {_gsimage_(_httppagestatus_,_home:httpiconcadminof_,_home:httpiconcadminon_,admin,_home:textadmin_)}
52
53_imagegogreenstone_ {_gsimage_(_home:httppagegsdl_,_home:httpiconcabgsof_,_home:httpiconcabgson_,gogs,_home:textabgs_)}
54
55_imagegodocs_ {_gsimage_(_home:httppagedocs_,_home:httpiconcgsdocof_,_home:httpiconcgsdocon_,docs,_home:textgsdocs_)}
56
57
58#######################################################################
59# page content
60#######################################################################
61
62# _homeextra_ is the automatically generated list of collections (in a table)
63_content_ {
64<div id="content">
65<div class="divbar">
66<p class="navbar">
67_textdescrselcol_
68</p>
69</div>
70
71<div class="section">
72_homeextra_
73</div>
74
75<div class="divbar">&nbsp;</div>
76
77<div class="section">
78<p><table>
79_textgogli_
80_textgocollector_
81_textgotranslator_
82_textgoadmin_
83_textgogreenstone_
84_textgodocs_
85</table>
86</div>
87
88<div class="divbar">&nbsp;</div>
89
90<div class="section">
91_textaboutgreenstone_
92</div>
93
94<div class="divbar">&nbsp;</div>
95
96</div>
97}
98
99# the _textgocollector_, _textgotranslator_, and _textgoadmin_ macros
100# may be overridden to be empty from within the receptionist if the
101# collector, translator, or admin facilities are disabled
102
103_textgogli_ {
104<tr valign=top>
105<td valign=top>_imagegli_</td>
106<td>_textdescrgli_</td>
107</tr>
108}
109
110_textgocollector_ {
111<tr valign=top>
112<td valign=top>_imagecollector_</td>
113<td>_textdescrcollector_</td>
114</tr>
115}
116
117_textgotranslator_ {
118<tr valign=top>
119<td valign=top>_imagetranslator_</td>
120<td>_textdescrtranslator_</td>
121</tr>
122}
123
124_textgoadmin_ {
125<tr valign=top>
126<td valign=top>_imageadmin_</td>
127<td>_textdescradmin_</td>
128</tr>
129}
130
131_textgogreenstone_ {
132<tr valign=top>
133<td valign=top>_imagegogreenstone_</td>
134<td>_textdescrgogreenstone_</td>
135</tr>
136}
137
138_textgodocs_ {
139<tr valign=top>
140<td valign=top>_imagegodocs_</td>
141<td>_textdescrgodocs_</td>
142</tr>
143}
144
145package homehelp
146
147_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
148
149_collectionlist_ {}
150
151_globallinks_ {_homelink_}
152
153_content_ {
154<div id="content">
155
156<div class="divbar">&nbsp;</div>
157
158<div class="section">
159<p>
160<table border="0" cellspacing="0" cellpadding="0">
161 <tr>
162 <td valign="top" align="center">_imagegreenstone_</td>
163 <td valign="top">_gsdl:textgreenstone1_
164 <br><br>
165 </td>
166 </tr>
167</table>
168</div>
169
170<div class="divbar">&nbsp;</div>
171
172<div class="section">
173_If_(_collectionlist_,_collectionlist_,_textnocollections_)
174</div>
175
176<div class="divbar">&nbsp;</div>
177
178<div class="section">
179<p>_text4buts_
180<p><table>
181_home:textgogli_
182_home:textgocollector_
183_home:textgotranslator_
184_home:textgoadmin_
185_home:textgogreenstone_
186_home:textgodocs_
187</table>
188</div>
189
190<div class="divbar">&nbsp;</div>
191
192</div>
193}
194
195
196package homepref
197_pagetitle_ {_preferences:textpreferences_ - _textdescrgreenstone_}
198
199_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
200
201_globallinks_ {_homelink_}
202
203_pagescriptextra_ {_preferences:pagescriptextra_}
204
205_content_ {
206<div id="content">
207
208<div class="divbar">&nbsp;</div>
209
210<div class="section">
211<form name="PrefForm" method="get" action="_gwcgi_">
212<h3>_preferences:textpresentationprefs_</h3>
213
214<table border="0">
215<tr valign="top">
216<td>_preferences:textlanguage_</td>
217<td>_languageoption_</td>
218</tr>
219<tr valign="top">
220<td>_preferences:textencoding_</td>
221<td>_encodingoption_</td>
222</tr>
223<tr valign="top">
224_preferences:formatoption_
225</tr>
226</table>
227</div>
228
229<div class="divbar">&nbsp;</div>
230
231</div> <!-- \_homepref:content\_ -->
232}
Note: See TracBrowser for help on using the repository browser.