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

Last change on this file since 6813 was 6813, checked in by mdewsnip, 20 years ago

Additions for the GsdlCollageApplet: a classifier that displays a collage of the images in a collection. By Katrina Edgar (kde2).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 13.7 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" code="org.nzdl.gsdl.GsdlCollageApplet.GsdlCollageApplet.class"
125 archive="GsdlCollageApplet.jar" width="645" height="780">
126
127
128 <param name="gwcgi" value="_gwcgi_">
129 <param name="collection" value="_cgiargc_">
130 <param name="classifier" value="_cgiargcl_.1">
131
132 <param name="hrefMustHave" value="cl=_cgiargcl_.1">
133 <param name="imageMustNotHave" value="hl=%x=%gt=%gc=%.pr">
134
135 <param name="imageType" value=".jpg%.png">
136 <param name="verbosity" value="5">
137 <param name="maxDepth" value="3">
138 <param name="refreshDelay" value="1500">
139 <param name="isJava2" value="auto">
140
141 </applet>
142}
143
144
145#######################################################################
146# icons
147#######################################################################
148
149# title images - there should be one of these for each classification
150# supported by this receptionist
151
152_iconTitlepage_ {<img src="_httpiconhtitle_" width="_widthhtitle_"
153height="_heighthtitle_">}
154_iconTitlepage_ [v=1] {<h2>_texticonhtitle_</h2>}
155
156_iconCollagepage_ {<img src="_httpiconhcoll_" width="_widthhcoll_"
157height="_heighthcoll_">}
158_iconCollagepage_ [v=1] {<h2>_texticonhcoll_</h2>}
159
160_iconDescriptionpage_ {<img src="_httpiconhdescription_" width="_widthhdesc_"
161height="_heighthdesc_">}
162_iconDescriptionpage_ [v=1] {<h2>_texticonhdescription_</h2>}
163
164_iconListpage_ {<img src="_httpiconhlist_" width="_widthhlist_"
165height="_heighthlist_">}
166_iconListpage_ [v=1] {<h2>_texticonhlist_</h2>}
167
168_iconCreatorpage_ {<img src="_httpiconhauth_" width="_widthhauth_"
169height="_heighthauth_">}
170_iconCreatorpage_ [v=1] {<h2>_texticonhauth_</h2>}
171
172_iconSubjectpage_ {<img src="_httpiconhsubj_" width="_widthhsubj_"
173height="_heighthsubj_">}
174_iconSubjectpage_ [v=1] {<h2>_texticonhsubj_</h2>}
175
176_iconTopage_ {<img src="_httpiconhto_" width="_widthhto_"
177height="_heighthto_">}
178_iconTopage_ [v=1] {<h2>_texticonhto_</h2>}
179
180_iconFrompage_ {<img src="_httpiconhfrom_" width="_widthhfrom_"
181height="_heighthfrom_">}
182_iconFrompage_ [v=1] {<h2>_texticonhfrom_</h2>}
183
184_iconSeriespage_ {<img src="_httpiconhser_" width="_widthhser_"
185height="_heighthser_">}
186_iconSeriespage_ [v=1] {<h2>_texticonhser_</h2>}
187
188_iconDatepage_ {<img src="_httpiconhdate_" width="_widthhdate_"
189height="_heighthdate_">}
190_iconDatepage_ [v=1] {<h2>_texticonhdate_</h2>}
191
192_iconHowtopage_ {<img src="_httpiconhhow_" width="_widthhhow_"
193height="_heighthhow_">}
194_iconHowtopage_ [v=1] {<h2>_texticonhhow_</h2>}
195
196_iconTopicpage_ {<img src="_httpiconhtopic_" width="_widthhtopic_"
197height="_heighthtopic_">}
198_iconTopicpage_ [v=1] {<h2>_texticonhtopic_</h2>}
199
200_iconOrganizationpage_ {<img src="_httpiconhorg_" width="_widthhorg_"
201height="_heighthorg_">}
202_iconOrganizationpage_ [v=1] {<h2>_texticonhorg_</h2>}
203
204_iconBrowsepage_ {<img src="_httpiconhbrwse_" width="_widthhbrwse_"
205height="_heighthbrwse_">}
206_iconBrowsepage_ [v=1] {<h2>_texticonhbrwse_</h2>}
207
208_iconPeoplepage_ {<img src="_httpiconhpeople_" width="_widthhpeople_"
209height="_heighthpeople_">}
210_iconPeoplepage_ [v=1] {<h2>_texticonhpeople_</h2>}
211
212_iconLanguagepage_ {<img src="_httpiconhlanguage_" width="_widthhlanguage_"
213height="_heighthlanguage_">}
214_iconLanguagepage_ [v=1] {<h2>_texticonhlanguage_</h2>}
215
216_iconAcronympage_ {<img src="_httpiconhacronym_" width="_widthhacronym_"
217height="_heighthacronym_">}
218_iconAcronympage_ [v=1] {<h2>_texticonhacronym_</h2>}
219
220_iconPhrasepage_ {<img src="_httpiconhphrse_" width="_widthhphrse_"
221height="_heighthphrse_">}
222_iconPhrasepage_ [v=1] {<h2>_texticonhphrse_</h2>}
223
224_iconArtistpage_ {<img src="_httpiconhartist_" width="_widthhartist_"
225height="_heighthartist_">}
226_iconArtistpage_ [v=1] {<h2>_texticonhartist_</h2>}
227
228_iconSourcepage_ {<img src="_httpiconhsrc_" width="_widthhsrc_"
229height="_heighthsrc_">}
230_iconSourcepage_ [v=1] {<h2>_texticonhsrc_</h2>}
231
232_iconKeywordpage_ {<img src="_httpiconhkw_" width="_widthhkw_"
233height="_heighthkw_">}
234_iconKeywordpage_ [v=1] {<h2>_texticonhkw_</h2>}
235
236_iconVolumepage_ {<img src="_httpiconhvol_" width="_widthhvol_"
237height="_heighthvol_">}
238_iconVolumepage_ [v=1] {<h2>_texticonhvol_</h2>}
239
240_iconCaptionspage_ {<img src="_httpiconhcapt_" width="_widthhcapt_"
241height="_heighthcapt_">}
242_iconCaptionspage_ [v=1] {<h2>_texticonhcapt_</h2>}
243
244_iconCountriespage_ {<img src="_httpiconhcount_" width="_widthhcount_"
245height="_heighthcount_">}
246_iconCountriespage_ [v=1] {<h2>_texticonhcount_</h2>}
247
248
249_iconsmalltext_ {<img src="_httpiconsmtext_" border=0 width=_widthsmtext_ height=_heightsmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
250_iconsmalltext_ [v=1] {<small><b>_texticonsmalltext2_</b></small>}
251
252_iconarrowsmalltext_ {<img src="_httpiconasmtext_" border=0 width=_widthasmtext_ height=_heightasmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
253_iconarrowsmalltext_ [v=1] {<small><b>->_texticonsmalltext2_</b></small>}
254
255_iconclosedfolder_ {<img src="_httpiconclsdfldr_" border=0 width=_widthclsdfldr_ height=_heightclsdfldr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
256_iconclosedfolder_ [v=1] {<small><b>_texticonclosedfolder2_</b></small>}
257
258_iconarrowclosedfolder_ {<img src=_httpiconaclsdfdr_" border=0 width=_widthaclsdfdr_ height=_heightaclsdfdr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
259_iconarrowclosedfolder_ [v=1] {<small><b>->_texticonclosedfolder2_</b></small>}
260
261_iconopenfolder_ {<img src="_httpiconopenfldr_" border=0 width=_widthopenfldr_ height=_heightopenfldr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
262_iconopenfolder_ [v=1] {<small><b>_texticonopenfolder2_</b></small>}
263
264_iconarrowopenfolder_ {<img src="_httpiconaopenfdr_" border=0 width=_widthaopenfdr_ height=_heightaopenfdr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
265_iconarrowopenfolder_ [v=1] {<small><b>->_texticonopenfolder2_</b></small>}
266
267_iconarrowclosedbook_ {<img src="_httpiconabook_" width=_widthabook_ height=_heightabook_ border=0 alt="_texticonclosedbook_" title="_texticonclosedbook_">}
268_iconarrowclosedbook_ [v=1] {<small><b>->_texticonclosedbook_: </b></small>}
269
270_iconopenbook_ {<img src="_httpiconopenbook_" width=_widthopenbook_ height=_heightopenbook_ border=0 alt="_texticonopenbook_" title="_texticonopenbook_">}
271_iconopenbook_ [v=1] {<small><b>_texticonopenbook_: </b></small>}
272
273_iconarrowopenbook_ {<img src="_httpiconaopenbk_" width=_widthaopenbk_ height=_heightaopenbk_ border=0 alt="_texticonopenbook_" title="_texticonopenbook_">}
274_iconarrowopenbook_ [v=1] {<small><b>->_texticonopenbook_: </b></small>}
275
276_iconopenbookshelf_ {<img src="_httpiconbshelf_" border=0 width=_widthbshelf_ height=_heightbshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
277_iconopenbookshelf_ [v=1] {<small><b>_texticonopenbookshelf_: </b></small>}
278
279_iconarrowopenbookshelf_ {<img src="_httpiconabshelf_" border=0 width=_widthabshelf_ height=_heightabshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
280_iconarrowopenbookshelf_ [v=1] {<small><b>->_texticonopenbookshelf_: </b></small>}
281
282_iconclosedbookshelf_ {<img src="_httpiconbshelf_" border=0 width=_widthbshelf_ height=_heightbshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
283_iconclosedbookshelf_ [v=1] {<small><b>_texticonclosedbookshelf_: </b></small>}
284
285_iconarrowclosedbookshelf_ {<img src="_httpiconabshelf_" border=0 width=_widthabshelf_ height=_heightabshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
286_iconarrowclosedbookshelf_ [v=1] {<small><b>->_texticonclosedbookshelf_: </b></small>}
287
288_iconpointer_ {<img src="_httpiconarrrght_" border=0 width=_widtharrrght_ height=_heightarrrght_>}
289_iconpointer_ [v=1] {<small><b>_texticonpointer_-> </b></small>}
290
291_icontab_ {<img src="_httpicontabspace_" width=_widthtabspace_ height=_heighttabspace_>}
292_tab_ {<td>_icontab_</td>}
293
294_iconwarning_ {<img src="_httpiconwarning_" width=_widthwarning_ height=_heightwarning_ border=0 align=left>}
295_iconwarning_ [v=1] {_texticonwarning_}
296
297
298#######################################################################
299# images
300#######################################################################
301
302# can't use _gsimage_ macro for detach button as we need to include target
303_imagedetach_ {<a href="_httpcurrentdocument_&x=1" target=\_blank onMouseover="roll('detach',1);" onMouseOut="roll('detach',0);"><img
304name="detach" src="_httpiconedtchof_" onLoad="gbutton(this,'_httpiconedtchon_');" border=0 alt="_texticondetach_" title="_texticondetach_"></a>}
305_imagedetach_ [v=1] {<a href="_httpcurrentdocument_&x=1" target=\_blank>_texticondetach_</a><br>}
306
307_imagehighlight_ {_gsimage_(_httpcurrentdocument_&hl=1&gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:httpiconehlof_,_document:httpiconehlon_,hl,_document:texticonhighlight_)}
308
309_imagenohighlight_ {_gsimage_(_httpcurrentdocument_&hl=0&gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:httpiconenhlof_,_document:httpiconenhlon_,nhl,_document:texticonnohighlight_)}
310
311_imagecontracttoc_ {_gsimage_(_httpcurrentdocument_&gc=0,_document:httpiconeconcof_,_document:httpiconeconcon_,concon,_document:texticoncontracttoc_)}
312
313_imageexpandtoc_ {_gsimage_(_httpcurrentdocument_&gc=1,_document:httpiconeexpcof_,_document:httpiconeexpcon_,expcon,_document:texticonexpandtoc_)}
314
315_imagecontracttext_ {_gsimage_(_httpcurrentdocument_&amp;gt=0,_document:httpiconetsecof_,_document:httpiconetsecon_,thissec,_document:texticoncontracttext_)}
316
317_imageexpandtext_ {_gsimage_(_httpcurrentdocument_&amp;gt=1,_document:httpiconealltof_,_document:httpiconeallton_,alltext,_document:texticonexpandtext_)}
318
319_imagecont_ {_gsimage_(_httpcurrentdocument_&amp;gt=2,_document:httpiconcontoff_,_document:httpiconconton_,cont,_document:texticoncont_)}
320
321
322#######################################################################
323# headers/footers
324#######################################################################
325
326
327# header overridden for text pages
328# the tabspace is there because netscape refuses to let our flashy button
329# javacript stuff work on a button that is the first image in the page
330_textheader_ {_cgihead_
331_htmlhead_
332<center>
333<table width=_pagewidth_><tr><td align=right>
334_icontab__javalinks_</td></tr></table>
335</center>
336}
337_textheader_ [v=1] {_cgihead_
338_htmlhead_
339_javalinks_
340}
341
342_footer_ {
343<p>
344_navarrowsbottom_
345_endspacer__htmlfooter_
346}
Note: See TracBrowser for help on using the repository browser.