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

Last change on this file since 7332 was 7332, checked in by davidb, 20 years ago

Collage applet updated to take advantage of dynamic
parameters specified as minus options to Collage
Classifier.

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