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

Last change on this file since 1804 was 1804, checked in by paynter, 23 years ago

Changed phind classifier so that its HTML is generated by documentaction,
instead of pageaction. This ensures that the macros it requires are set
properly and makes it consistant with the other classifiers. But what a
waste of my time it was.

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