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

Last change on this file since 5622 was 5622, checked in by nzdl, 21 years ago

added macros for captions nav bar button

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