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

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

Added all the Dublin Core Version 1.1 classifier buttons in, and tidied up a few things. Hope I haven't broken anything!

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