source: trunk/gsdl/macros/document.dm@ 7343

Last change on this file since 7343 was 7343, checked in by jrm21, 20 years ago

added a comment at the start of all macro files about using UTF-8

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