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

Last change on this file since 10919 was 10872, checked in by jrm21, 19 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
RevLine 
[7343]1# this file must be UTF-8 encoded
2
[128]3package home
4
[3725]5# set the title of the home page to be "greenstone digital library"
6# in the currently chosen language
7
[10872]8_pagetitle_ {_textdescrgreenstone_}
[3725]9
[276]10#######################################################################
[10872]11# global navigation links
[276]12#######################################################################
13
[10872]14# overridden here as we don't want 'home' links on this page
[276]15
[10872]16_globallinks_ {_helplink_ _preflink_}
[276]17
[10872]18_helplink_ {_navtab_(_home:httppagehomehelp_,_linktextHELP_,_textdescrhelp_)}
19_preflink_ {_navtab_(_home:httppagehomepref_,_linktextPREFERENCES_,_textdescrpref_)}
20
[276]21#######################################################################
[644]22# icons
23#######################################################################
24
[10872]25_iconmusiclibrary_ {<img src="_httpicontmusic_" border="1" alt="meldex music library" title="meldex music library">}
[10603]26
[10872]27_imagecollection_ {<img src="_httpimg_/gsdlhead.gif" alt="_textdescrgreenstone_">}
[644]28
29#######################################################################
30# http macros
31#
32# These contain the url without any quotes
33#######################################################################
34
[1975]35_httppagegsdl_ {_httppagex_(gsdl)}
[2340]36_httppagehomehelp_ {_httppagex_(homehelp)}
[2912]37_httppagehomepref_ {_httppagex_(homepref)}
[644]38
39#######################################################################
[1479]40# images
41#######################################################################
42
[7931]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
[1479]58#######################################################################
[283]59# page content
[276]60#######################################################################
61
[10872]62# _homeextra_ is the automatically generated list of collections (in a table)
[283]63_content_ {
[10872]64<div id="content">
65<div class="divbar">
66<p class="navbar">
67_textdescrselcol_
68</p>
69</div>
[644]70
[10872]71<div class="section">
72_homeextra_
73</div>
74
75<div class="divbar">&nbsp;</div>
76
77<div class="section">
[1479]78<p><table>
[6723]79_textgogli_
[1759]80_textgocollector_
[3774]81_textgotranslator_
[1759]82_textgoadmin_
[1975]83_textgogreenstone_
[2562]84_textgodocs_
[1479]85</table>
[10872]86</div>
87
88<div class="divbar">&nbsp;</div>
89
90<div class="section">
[2910]91_textaboutgreenstone_
[10872]92</div>
93
94<div class="divbar">&nbsp;</div>
95
96</div>
[276]97}
[1390]98
[3774]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
[6723]102
103_textgogli_ {
104<tr valign=top>
105<td valign=top>_imagegli_</td>
[10872]106<td>_textdescrgli_</td>
[6723]107</tr>
108}
109
[1759]110_textgocollector_ {
[1957]111<tr valign=top>
112<td valign=top>_imagecollector_</td>
[10872]113<td>_textdescrcollector_</td>
[1759]114</tr>
115}
116
[3774]117_textgotranslator_ {
118<tr valign=top>
119<td valign=top>_imagetranslator_</td>
[10872]120<td>_textdescrtranslator_</td>
[3774]121</tr>
122}
123
[1759]124_textgoadmin_ {
[1957]125<tr valign=top>
126<td valign=top>_imageadmin_</td>
[10872]127<td>_textdescradmin_</td>
[1759]128</tr>
[1975]129}
130
131_textgogreenstone_ {
132<tr valign=top>
133<td valign=top>_imagegogreenstone_</td>
[10872]134<td>_textdescrgogreenstone_</td>
[1975]135</tr>
136}
[2329]137
[2562]138_textgodocs_ {
139<tr valign=top>
140<td valign=top>_imagegodocs_</td>
[10872]141<td>_textdescrgodocs_</td>
[2562]142</tr>
143}
144
[2329]145package homehelp
146
[3044]147_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
[2913]148
[2329]149_collectionlist_ {}
150
[10872]151_globallinks_ {_homelink_}
[2329]152
153_content_ {
[10872]154<div id="content">
155
156<div class="divbar">&nbsp;</div>
157
158<div class="section">
[2329]159<p>
[10599]160<table border="0" cellspacing="0" cellpadding="0">
[2329]161 <tr>
[10599]162 <td valign="top" align="center">_imagegreenstone_</td>
163 <td valign="top">_gsdl:textgreenstone1_
[2329]164 <br><br>
165 </td>
166 </tr>
167</table>
[10872]168</div>
[2329]169
[10872]170<div class="divbar">&nbsp;</div>
171
172<div class="section">
[2777]173_If_(_collectionlist_,_collectionlist_,_textnocollections_)
[10872]174</div>
[2329]175
[10872]176<div class="divbar">&nbsp;</div>
177
178<div class="section">
[2777]179<p>_text4buts_
[2329]180<p><table>
[6723]181_home:textgogli_
[2329]182_home:textgocollector_
[3774]183_home:textgotranslator_
[2329]184_home:textgoadmin_
185_home:textgogreenstone_
[2562]186_home:textgodocs_
[2329]187</table>
[10872]188</div>
189
190<div class="divbar">&nbsp;</div>
191
192</div>
[2329]193}
[2912]194
195
196package homepref
[10872]197_pagetitle_ {_preferences:textpreferences_ - _textdescrgreenstone_}
[2912]198
[3044]199_imagecollection_ {<a href="_httppagehome_"><img src="_httpimg_/gsdlhead.gif" border="0"></a>}
[2913]200
[10872]201_globallinks_ {_homelink_}
[2912]202
203_pagescriptextra_ {_preferences:pagescriptextra_}
204
[10872]205_content_ {
206<div id="content">
[2912]207
[10872]208<div class="divbar">&nbsp;</div>
[2912]209
[10872]210<div class="section">
211<form name="PrefForm" method="get" action="_gwcgi_">
[2912]212<h3>_preferences:textpresentationprefs_</h3>
213
214<table border="0">
215<tr valign="top">
216<td>_preferences:textlanguage_</td>
[3625]217<td>_languageoption_</td>
[2912]218</tr>
219<tr valign="top">
[3625]220<td>_preferences:textencoding_</td>
221<td>_encodingoption_</td>
222</tr>
223<tr valign="top">
[2912]224_preferences:formatoption_
225</tr>
226</table>
[10872]227</div>
228
229<div class="divbar">&nbsp;</div>
230
231</div> <!-- \_homepref:content\_ -->
[2912]232}
Note: See TracBrowser for help on using the repository browser.