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

Last change on this file since 3084 was 3084, checked in by kjdon, 22 years ago

phind now passes e argument when going to documents from the applet

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