source: trunk/gsdl/macros/document.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: 15.8 KB
Line 
1# this file must be UTF-8 encoded
2
3package document
4
5#######################################################################
6# macros set from within the server
7#######################################################################
8
9_imagethispage_ {}
10_httpprevarrow_ {}
11_httpnextarrow_ {}
12_pagetitle_ {}
13_phindclassifier_ {}
14_collageclassifier_ {}
15
16#######################################################################
17# page content
18#######################################################################
19
20_content_ {
21<div class="navbar">
22<p class="navbar">
23_optnavigationbar_
24</p>
25</div>
26_If_(_phindclassifier__collageclassifier_,
27<p style="text-align: center;">
28_phindclassifier_
29_collageclassifier_
30</p>
31)
32<div class="document">
33}
34
35# Dublin Core Metadata Element Set, Version 1.1
36_textTitlepage_ {_texticonhtitle_}
37_textCreatorpage_ {_texticonhcreat_}
38_textSubjectpage_ {_texticonhsubj_}
39_textDescriptionpage_ {_texticonhdesc_}
40_textPublisherpage_ {_texticonhpubl_}
41_textContributorpage_ {_texticonhcontr_}
42_textDatepage_ {_texticonhdate_}
43_textTypepage_ {_texticonhtype_}
44_textFormatpage_ {_texticonhform_}
45_textIdentifierpage_ {_texticonhident_}
46_textSourcepage_ {_texticonhsrc_}
47_textLanguagepage_ {_texticonhlang_}
48_textRelationpage_ {_texticonhrel_}
49_textCoveragepage_ {_texticonhcover_}
50_textRightspage_ {_texticonhright_}
51
52_textTopage_ {_texticonhto_}
53_textFrompage_ {_texticonhfrom_}
54_textSeriespage_ {_texticonhser_}
55_textHowtopage_ {_texticonhhow_}
56_textOrganizationpage_ {_texticonhorg_}
57_textBrowsepage_ {_texticonhbrwse_}
58_textCollagepage_ {_texticonhcoll_}
59_textPeoplepage_ {_texticonhpeople_}
60_textAcronympage_ {_texticonhacronym_}
61_textPhrasepage_ {_texticonhphrases_}
62_textArtistpage_ {_texticonhartist_}
63_textKeywordpage_ {_texticonhkw_}
64_textVolumepage_ {_texticonhvol_}
65_textCaptionspage_ {_texticonhcapt_}
66_textCountriespage_ {_texticonhcount_}
67
68#######################################################################
69# navigation arrows
70#
71#######################################################################
72
73# these two may be reset to "" by the server
74_navarrowsbottom_ {_navarrows_}
75_navarrowstop_ {_navarrows_}
76
77_navarrows_ {<center>
78<table width=_pagewidth_ cellpadding=0 cellspacing=0 border=0>
79<tr><td align=left valign=top>
80_prevarrow_
81</td><td align=right valign=top>
82_nextarrow_
83</td></tr></table>
84</center>
85}
86
87_prevarrow_ {_If_(_httpprevarrow_,<a href="_httpprevarrow_">_iconprev_</a>)}
88_nextarrow_ {_If_(_httpnextarrow_,<a href="_httpnextarrow_">_iconnext_</a>)}
89
90_navarrows_ [v=1] {<p>
91_prevarrow_<br>
92_nextarrow_
93}
94
95#######################################################################
96# the goto form
97#######################################################################
98
99_gotoform_ {
100<form name="GotoForm" method="get" action="_gwcgi_">
101<input type=hidden name="e" value="_decodedcompressedoptions_">
102<input type=hidden name="d" value="_cgiargd_">
103<input type=hidden name="cl" value="_cgiargcl_">
104<input type="text" name="gp" size="3" maxlength="4">
105<input type="submit" value="_textgoto_">
106</form>
107}
108
109_textnumpages_ {&nbsp;<i>(_1_ _pages_)</i>}
110_parentarrow_ {}
111
112
113#######################################################################
114# the phind applet
115#
116# The phind applet is only required on phind classifier pages.
117# Consequently, the _phindclassifier_ macro is not usually set. On screens
118# where it is required, _phindclassifier_ resolves to _phindapplet_, and
119# the following macro is loaded into the web page.
120#######################################################################
121
122_phindapplet_ {
123<APPLET CODEBASE="_httpprefix_/bin/java" CODE="org.nzdl.gsdl.Phind.Phind.class" ARCHIVE="Phind.jar" WIDTH=500 HEIGHT=400>
124 <PARAM NAME=library VALUE="_gwcgi_?e=_compressedoptions_">
125 <PARAM NAME=phindcgi VALUE="_gwcgi_?a=phind">
126 <PARAM NAME=collection VALUE="_cgiargc_">
127 <PARAM NAME=classifier VALUE="_phindnumber_">
128
129 <PARAM NAME=orientation VALUE="vertical">
130 <PARAM NAME=depth VALUE="2">
131 <PARAM NAME=resultorder VALUE="L,l,E,e,D,d">
132
133 <PARAM NAME=backdrop VALUE="_httpimg_/phindbg1.jpg">
134 <PARAM NAME=fontsize VALUE="10">
135 <PARAM NAME=blocksize VALUE="10">
136
137 The Phind java applet.
138</APPLET>
139}
140
141_collageapplet_ {
142 <applet CODEBASE="_httpprefix_/bin/java"
143 code="org.nzdl.gsdl.GsdlCollageApplet.GsdlCollageApplet.class"
144 archive="GsdlCollageApplet.jar"
145 width="_collagexdim_" height="_collageydim_">
146
147 <param name="gwcgi" value="_gwcgi_">
148 <param name="collection" value="_cgiargc_">
149 <param name="classifier" value="_cgiargcl_.1">
150
151 <param name="hrefMustHave" value="cl=_cgiargcl_.1">
152 <param name="imageMustNotHave" value="hl=\%x=\%gt=\%gc=\%.pr">
153
154 <param name="imageType" value="_collageimageType_">
155 <param name="verbosity" value="_collageverbosity_">
156 <param name="maxDepth" value="_collagemaxDepth_">
157 <param name="maxDisplay" value="_collagemaxDisplay_">
158 <param name="refreshDelay" value="_collagerefreshDelay_">
159 <param name="isJava2" value="_collageisJava2_">
160 <param name="bgcolor" value="_collagebgcolor_">
161
162 </applet>
163
164<center>
165_collagecaption_
166</center>
167
168}
169
170
171#######################################################################
172# icons
173#######################################################################
174
175# title images - there should be one of these for each classification
176# supported by this receptionist
177
178# Dublin Core Metadata Element Set, Version 1.1
179# the receptionist server checks for the existence of _icon{META}page_
180# to see whether to set an image or just plain text for this document.
181_iconTitlepage_ {<img src="_httpiconhtitle_" width="_widthhtitle_" height="_heighthtitle_">}
182_iconTitlepage_ [v=1] {<h2>_texticonhtitle_</h2>}
183
184_iconCreatorpage_ {<img src="_httpiconhcreat_" width="_widthhcreat_" height="_heighthcreat_">}
185_iconCreatorpage_ [v=1] {<h2>_texticonhcreat_</h2>}
186
187_iconSubjectpage_ {<img src="_httpiconhsubj_" width="_widthhsubj_" height="_heighthsubj_">}
188_iconSubjectpage_ [v=1] {<h2>_texticonhsubj_</h2>}
189
190_iconDescriptionpage_ {<img src="_httpiconhdesc_" width="_widthhdesc_" height="_heighthdesc_">}
191_iconDescriptionpage_ [v=1] {<h2>_texticonhdesc_</h2>}
192
193_iconPublisherpage_ {<img src="_httpiconhpubl_" width="_widthhpubl_" height="_heighthpubl_">}
194_iconPublisherpage_ [v=1] {<h2>_texticonhpubl_</h2>}
195
196_iconContributorpage_ {<img src="_httpiconhcontr_" width="_widthhcontr_" height="_heighthcontr_">}
197_iconContributorpage_ [v=1] {<h2>_texticonhcontr_</h2>}
198
199_iconDatepage_ {<img src="_httpiconhdate_" width="_widthhdate_" height="_heighthdate_">}
200_iconDatepage_ [v=1] {<h2>_texticonhdate_</h2>}
201
202_iconTypepage_ {<img src="_httpiconhtype_" width="_widthhtype_" height="_heighthtype_">}
203_iconTypepage_ [v=1] {<h2>_texticonhtype_</h2>}
204
205_iconFormatpage_ {<img src="_httpiconhform_" width="_widthhform_" height="_heighthform_">}
206_iconFormatpage_ [v=1] {<h2>_texticonhform_</h2>}
207
208_iconIdentifierpage_ {<img src="_httpiconhident_" width="_widthhident_" height="_heighthident_">}
209_iconIdentifierpage_ [v=1] {<h2>_texticonhident_</h2>}
210
211_iconSourcepage_ {<img src="_httpiconhsrc_" width="_widthhsrc_" height="_heighthsrc_">}
212_iconSourcepage_ [v=1] {<h2>_texticonhsrc_</h2>}
213
214_iconLanguagepage_ {<img src="_httpiconhlang_" width="_widthhlang_" height="_heighthlang_">}
215_iconLanguagepage_ [v=1] {<h2>_texticonhlang_</h2>}
216
217_iconRelationpage_ {<img src="_httpiconhrel_" width="_widthhrel_" height="_heighthrel_">}
218_iconRelationpage_ [v=1] {<h2>_texticonhrel_</h2>}
219
220_iconCoveragepage_ {<img src="_httpiconhcover_" width="_widthhcover_" height="_heighthcover_">}
221_iconCoveragepage_ [v=1] {<h2>_texticonhcover_</h2>}
222
223_iconRightspage_ {<img src="_httpiconhright_" width="_widthhright_" height="_heighthright_">}
224_iconRightspage_ [v=1] {<h2>_texticonhright_</h2>}
225
226
227
228_iconCollagepage_ {<img src="_httpiconhcoll_" width="_widthhcoll_"
229height="_heighthcoll_">}
230_iconCollagepage_ [v=1] {<h2>_texticonhcoll_</h2>}
231
232_iconListpage_ {<img src="_httpiconhlist_" width="_widthhlist_"
233height="_heighthlist_">}
234_iconListpage_ [v=1] {<h2>_texticonhlist_</h2>}
235
236_iconTopage_ {<img src="_httpiconhto_" width="_widthhto_"
237height="_heighthto_">}
238_iconTopage_ [v=1] {<h2>_texticonhto_</h2>}
239
240_iconFrompage_ {<img src="_httpiconhfrom_" width="_widthhfrom_"
241height="_heighthfrom_">}
242_iconFrompage_ [v=1] {<h2>_texticonhfrom_</h2>}
243
244_iconSeriespage_ {<img src="_httpiconhser_" width="_widthhser_"
245height="_heighthser_">}
246_iconSeriespage_ [v=1] {<h2>_texticonhser_</h2>}
247
248_iconHowtopage_ {<img src="_httpiconhhow_" width="_widthhhow_"
249height="_heighthhow_">}
250_iconHowtopage_ [v=1] {<h2>_texticonhhow_</h2>}
251
252_iconTopicpage_ {<img src="_httpiconhtopic_" width="_widthhtopic_"
253height="_heighthtopic_">}
254_iconTopicpage_ [v=1] {<h2>_texticonhtopic_</h2>}
255
256_iconOrganizationpage_ {<img src="_httpiconhorg_" width="_widthhorg_"
257height="_heighthorg_">}
258_iconOrganizationpage_ [v=1] {<h2>_texticonhorg_</h2>}
259
260_iconBrowsepage_ {<img src="_httpiconhbrwse_" width="_widthhbrwse_"
261height="_heighthbrwse_">}
262_iconBrowsepage_ [v=1] {<h2>_texticonhbrwse_</h2>}
263
264_iconPeoplepage_ {<img src="_httpiconhpeople_" width="_widthhpeople_"
265height="_heighthpeople_">}
266_iconPeoplepage_ [v=1] {<h2>_texticonhpeople_</h2>}
267
268_iconAcronympage_ {<img src="_httpiconhacronym_" width="_widthhacronym_"
269height="_heighthacronym_">}
270_iconAcronympage_ [v=1] {<h2>_texticonhacronym_</h2>}
271
272_iconPhrasepage_ {<img src="_httpiconhphrse_" width="_widthhphrse_"
273height="_heighthphrse_">}
274_iconPhrasepage_ [v=1] {<h2>_texticonhphrse_</h2>}
275
276_iconArtistpage_ {<img src="_httpiconhartist_" width="_widthhartist_"
277height="_heighthartist_">}
278_iconArtistpage_ [v=1] {<h2>_texticonhartist_</h2>}
279
280_iconKeywordpage_ {<img src="_httpiconhkw_" width="_widthhkw_"
281height="_heighthkw_">}
282_iconKeywordpage_ [v=1] {<h2>_texticonhkw_</h2>}
283
284_iconVolumepage_ {<img src="_httpiconhvol_" width="_widthhvol_"
285height="_heighthvol_">}
286_iconVolumepage_ [v=1] {<h2>_texticonhvol_</h2>}
287
288_iconCaptionspage_ {<img src="_httpiconhcapt_" width="_widthhcapt_"
289height="_heighthcapt_">}
290_iconCaptionspage_ [v=1] {<h2>_texticonhcapt_</h2>}
291
292_iconCountriespage_ {<img src="_httpiconhcount_" width="_widthhcount_"
293height="_heighthcount_">}
294_iconCountriespage_ [v=1] {<h2>_texticonhcount_</h2>}
295
296
297_iconsmalltext_ {<img src="_httpiconsmtext_" class="icon" width=_widthsmtext_ height=_heightsmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
298_iconsmalltext_ [v=1] {<small><b>_texticonsmalltext2_</b></small>}
299
300_iconarrowsmalltext_ {<img src="_httpiconasmtext_" class="icon" width=_widthasmtext_ height=_heightasmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
301_iconarrowsmalltext_ [v=1] {<small><b>->_texticonsmalltext2_</b></small>}
302
303_iconclosedfolder_ {<img src="_httpiconclsdfldr_" class="icon" width=_widthclsdfldr_ height=_heightclsdfldr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
304_iconclosedfolder_ [v=1] {<small><b>_texticonclosedfolder2_</b></small>}
305
306_iconarrowclosedfolder_ {<img src=_httpiconaclsdfdr_" class="icon" width=_widthaclsdfdr_ height=_heightaclsdfdr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
307_iconarrowclosedfolder_ [v=1] {<small><b>->_texticonclosedfolder2_</b></small>}
308
309_iconopenfolder_ {<img src="_httpiconopenfldr_" class="icon" width=_widthopenfldr_ height=_heightopenfldr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
310_iconopenfolder_ [v=1] {<small><b>_texticonopenfolder2_</b></small>}
311
312_iconarrowopenfolder_ {<img src="_httpiconaopenfdr_" class="icon" width=_widthaopenfdr_ height=_heightaopenfdr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
313_iconarrowopenfolder_ [v=1] {<small><b>->_texticonopenfolder2_</b></small>}
314
315_iconarrowclosedbook_ {<img src="_httpiconabook_" width=_widthabook_ height=_heightabook_ class="icon" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
316_iconarrowclosedbook_ [v=1] {<small><b>->_texticonclosedbook_: </b></small>}
317
318_iconopenbook_ {<img src="_httpiconopenbook_" width=_widthopenbook_ height=_heightopenbook_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
319_iconopenbook_ [v=1] {<small><b>_texticonopenbook_: </b></small>}
320
321_iconarrowopenbook_ {<img src="_httpiconaopenbk_" width=_widthaopenbk_ height=_heightaopenbk_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
322_iconarrowopenbook_ [v=1] {<small><b>->_texticonopenbook_: </b></small>}
323
324_iconopenbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
325_iconopenbookshelf_ [v=1] {<small><b>_texticonopenbookshelf_: </b></small>}
326
327_iconarrowopenbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
328_iconarrowopenbookshelf_ [v=1] {<small><b>->_texticonopenbookshelf_: </b></small>}
329
330_iconclosedbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
331_iconclosedbookshelf_ [v=1] {<small><b>_texticonclosedbookshelf_: </b></small>}
332
333_iconarrowclosedbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
334_iconarrowclosedbookshelf_ [v=1] {<small><b>->_texticonclosedbookshelf_: </b></small>}
335
336_iconpointer_ {<img src="_httpiconarrrght_" class="icon" width=_widtharrrght_ height=_heightarrrght_>}
337_iconpointer_ [v=1] {<small><b>_texticonpointer_-> </b></small>}
338
339_icontab_ {<img src="_httpicontabspace_" width=_widthtabspace_ height=_heighttabspace_>}
340_tab_ {<td>_icontab_</td>}
341
342_iconwarning_ {<img src="_httpiconwarning_" width=_widthwarning_ height=_heightwarning_ class="icon" align=left>}
343_iconwarning_ [v=1] {_texticonwarning_}
344
345
346#######################################################################
347# images
348#######################################################################
349
350# can't use _gsimage_ macro for detach button as we need to include target
351_imagedetach_ {<a href="_httpcurrentdocument_&amp;x=1" target=\_blank onMouseover="roll('detach',1);" onMouseOut="roll('detach',0);"><img
352name="detach" src="_httpiconedtchof_" onLoad="gbutton(this,'_httpiconedtchon_');" class="icon" alt="_texticondetach_" title="_texticondetach_"></a>}
353_imagedetach_ [v=1] {<a href="_httpcurrentdocument_&amp;x=1" target=\_blank>_texticondetach_</a><br>}
354
355_imagehighlight_ {_gsimage_(_httpcurrentdocument_&amp;hl=1&amp;gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:httpiconehlof_,_document:httpiconehlon_,hl,_document:texticonhighlight_)}
356
357_imagenohighlight_ {_gsimage_(_httpcurrentdocument_&amp;hl=0&amp;gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:httpiconenhlof_,_document:httpiconenhlon_,nhl,_document:texticonnohighlight_)}
358
359_imagecontracttoc_ {_gsimage_(_httpcurrentdocument_&amp;gc=0,_document:httpiconeconcof_,_document:httpiconeconcon_,concon,_document:texticoncontracttoc_)}
360
361_imageexpandtoc_ {_gsimage_(_httpcurrentdocument_&amp;gc=1,_document:httpiconeexpcof_,_document:httpiconeexpcon_,expcon,_document:texticonexpandtoc_)}
362
363_imagecontracttext_ {_gsimage_(_httpcurrentdocument_&amp;gt=0,_document:httpiconetsecof_,_document:httpiconetsecon_,thissec,_document:texticoncontracttext_)}
364
365_imageexpandtext_ {_gsimage_(_httpcurrentdocument_&amp;gt=1,_document:httpiconealltof_,_document:httpiconeallton_,alltext,_document:texticonexpandtext_)}
366
367_imagecont_ {_gsimage_(_httpcurrentdocument_&amp;gt=2,_document:httpiconcontoff_,_document:httpiconconton_,cont,_document:texticoncont_)}
368
369
370#######################################################################
371# headers/footers
372#######################################################################
373
374
375# header overridden for text pages
376_textheader_ {_cgihead_
377_htmlhead_
378_startspacer_
379
380<!-- document:textheader -->
381<div id="banner">
382<div class="pageinfo"><p class="bannerlinks">_globallinks_</p></div>
383<div class="collectimage">_imagecollection_</div>
384_icontab_
385</div>
386}
387
388_textheader_ [v=1] {_cgihead_
389_htmlhead_
390_globallinks_
391}
392
393_footer_ {
394</div> <!-- document:footer -->
395
396<p>
397_navarrowsbottom_
398</p>
399_endspacer__htmlfooter_
400}
Note: See TracBrowser for help on using the repository browser.