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

Last change on this file since 12944 was 12944, checked in by kjdon, 18 years ago

we now include _document:documentheader_ macro in the html head. This can be set manually by setting gs.DocumentHeader, or can be extracted by HTMLPlug using -extract_style (saved as ex.DocumentHeader). This means that documents can include their own style info.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 10.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# custom header for individual document
16_documentheader_ {}
17#######################################################################
18# page content
19#######################################################################
20
21
22_content_ {
23_optnavigationbar_
24
25_If_(_phindclassifier__collageclassifier_,
26<p style="text-align: center;">
27_phindclassifier_
28_collageclassifier_
29</p>
30)
31<div class="document">
32}
33
34# Dublin Core Metadata Element Set, Version 1.1
35_textTitlepage_ {_texticonhtitle_}
36_textCreatorpage_ {_texticonhcreat_}
37_textSubjectpage_ {_texticonhsubj_}
38_textDescriptionpage_ {_texticonhdesc_}
39_textPublisherpage_ {_texticonhpubl_}
40_textContributorpage_ {_texticonhcontr_}
41_textDatepage_ {_texticonhdate_}
42_textTypepage_ {_texticonhtype_}
43_textFormatpage_ {_texticonhform_}
44_textIdentifierpage_ {_texticonhident_}
45_textSourcepage_ {_texticonhsrc_}
46_textLanguagepage_ {_texticonhlang_}
47_textRelationpage_ {_texticonhrel_}
48_textCoveragepage_ {_texticonhcover_}
49_textRightspage_ {_texticonhright_}
50
51_textTopage_ {_texticonhto_}
52_textFrompage_ {_texticonhfrom_}
53_textSeriespage_ {_texticonhser_}
54_textHowtopage_ {_texticonhhow_}
55_textOrganizationpage_ {_texticonhorg_}
56_textBrowsepage_ {_texticonhbrwse_}
57_textCollagepage_ {_texticonhcoll_}
58_textPeoplepage_ {_texticonhpeople_}
59_textAcronympage_ {_texticonhacronym_}
60_textPhrasepage_ {_texticonhphrases_}
61_textArtistpage_ {_texticonhartist_}
62_textKeywordpage_ {_texticonhkw_}
63_textVolumepage_ {_texticonhvol_}
64_textCaptionspage_ {_texticonhcapt_}
65_textCountriespage_ {_texticonhcount_}
66
67#######################################################################
68# navigation arrows
69#
70#######################################################################
71
72# these two may be reset to "" by the server
73_navarrowsbottom_ {_navarrows_}
74_navarrowstop_ {_navarrows_}
75
76_navarrows_ {<center>
77<table width=_pagewidth_ cellpadding=0 cellspacing=0 border=0>
78<tr><td align=left valign=top>
79_prevarrow_
80</td><td align=right valign=top>
81_nextarrow_
82</td></tr></table>
83</center>
84}
85
86_prevarrow_ {_If_(_httpprevarrow_,<a href="_httpprevarrow_">_iconprev_</a>)}
87_nextarrow_ {_If_(_httpnextarrow_,<a href="_httpnextarrow_">_iconnext_</a>)}
88
89_navarrows_ [v=1] {<p>
90_prevarrow_<br>
91_nextarrow_
92}
93
94#######################################################################
95# the goto form
96#######################################################################
97
98_gotoform_ {
99<form name="GotoForm" method="get" action="_gwcgi_">
100<input type=hidden name="e" value="_decodedcompressedoptions_">
101<input type=hidden name="d" value="_cgiargd_">
102<input type=hidden name="cl" value="_cgiargcl_">
103<input type="text" name="gp" size="3" maxlength="4">
104<input type="submit" value="_textgoto_">
105</form>
106}
107
108_textnumpages_ {&nbsp;<i>(_1_ _pages_)</i>}
109_parentarrow_ {}
110
111
112#######################################################################
113# the phind applet
114#
115# The phind applet is only required on phind classifier pages.
116# Consequently, the _phindclassifier_ macro is not usually set. On screens
117# where it is required, _phindclassifier_ resolves to _phindapplet_, and
118# the following macro is loaded into the web page.
119#######################################################################
120
121_phindapplet_ {
122<APPLET CODEBASE="_httpprefix_/bin/java" CODE="org.nzdl.gsdl.Phind.Phind.class" ARCHIVE="Phind.jar" WIDTH=500 HEIGHT=400>
123 <PARAM NAME=library VALUE="_gwcgi_?e=_compressedoptions_">
124 <PARAM NAME=phindcgi VALUE="_gwcgi_?a=phind">
125 <PARAM NAME=collection VALUE="_cgiargc_">
126 <PARAM NAME=classifier VALUE="_phindnumber_">
127
128 <PARAM NAME=orientation VALUE="vertical">
129 <PARAM NAME=depth VALUE="2">
130 <PARAM NAME=resultorder VALUE="L,l,E,e,D,d">
131
132 <PARAM NAME=backdrop VALUE="_httpimg_/phindbg1.jpg">
133 <PARAM NAME=fontsize VALUE="10">
134 <PARAM NAME=blocksize VALUE="10">
135
136 The Phind java applet.
137</APPLET>
138}
139
140_collageapplet_ {
141 <applet CODEBASE="_httpprefix_/bin/java"
142 code="org.nzdl.gsdl.GsdlCollageApplet.GsdlCollageApplet.class"
143 archive="GsdlCollageApplet.jar"
144 width="_collagexdim_" height="_collageydim_">
145
146 <param name="gwcgi" value="_gwcgi_">
147 <param name="collection" value="_cgiargc_">
148 <param name="classifier" value="_cgiargcl_.1">
149
150 <param name="hrefMustHave" value="cl=_cgiargcl_.1">
151 <param name="imageMustNotHave" value="hl=\%x=\%gt=\%gc=\%.pr">
152
153 <param name="imageType" value="_collageimageType_">
154 <param name="verbosity" value="_collageverbosity_">
155 <param name="maxDepth" value="_collagemaxDepth_">
156 <param name="maxDisplay" value="_collagemaxDisplay_">
157 <param name="refreshDelay" value="_collagerefreshDelay_">
158 <param name="isJava2" value="_collageisJava2_">
159 <param name="bgcolor" value="_collagebgcolor_">
160 <param name="documentroot" value="_httpimg_">
161 </applet>
162
163<center>
164_collagecaption_
165</center>
166
167}
168
169
170#######################################################################
171# icons
172#######################################################################
173
174_iconsmalltext_ {<img src="_httpiconsmtext_" class="icon" width=_widthsmtext_ height=_heightsmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
175_iconsmalltext_ [v=1] {<small><b>_texticonsmalltext2_</b></small>}
176
177_iconarrowsmalltext_ {<img src="_httpiconasmtext_" class="icon" width=_widthasmtext_ height=_heightasmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
178_iconarrowsmalltext_ [v=1] {<small><b>->_texticonsmalltext2_</b></small>}
179
180_iconclosedfolder_ {<img src="_httpiconclsdfldr_" class="icon" width=_widthclsdfldr_ height=_heightclsdfldr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
181_iconclosedfolder_ [v=1] {<small><b>_texticonclosedfolder2_</b></small>}
182
183_iconarrowclosedfolder_ {<img src=_httpiconaclsdfdr_" class="icon" width=_widthaclsdfdr_ height=_heightaclsdfdr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
184_iconarrowclosedfolder_ [v=1] {<small><b>->_texticonclosedfolder2_</b></small>}
185
186_iconopenfolder_ {<img src="_httpiconopenfldr_" class="icon" width=_widthopenfldr_ height=_heightopenfldr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
187_iconopenfolder_ [v=1] {<small><b>_texticonopenfolder2_</b></small>}
188
189_iconarrowopenfolder_ {<img src="_httpiconaopenfdr_" class="icon" width=_widthaopenfdr_ height=_heightaopenfdr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
190_iconarrowopenfolder_ [v=1] {<small><b>->_texticonopenfolder2_</b></small>}
191
192_iconarrowclosedbook_ {<img src="_httpiconabook_" width=_widthabook_ height=_heightabook_ class="icon" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
193_iconarrowclosedbook_ [v=1] {<small><b>->_texticonclosedbook_: </b></small>}
194
195_iconopenbook_ {<img src="_httpiconopenbook_" width=_widthopenbook_ height=_heightopenbook_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
196_iconopenbook_ [v=1] {<small><b>_texticonopenbook_: </b></small>}
197
198_iconarrowopenbook_ {<img src="_httpiconaopenbk_" width=_widthaopenbk_ height=_heightaopenbk_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
199_iconarrowopenbook_ [v=1] {<small><b>->_texticonopenbook_: </b></small>}
200
201_iconopenbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
202_iconopenbookshelf_ [v=1] {<small><b>_texticonopenbookshelf_: </b></small>}
203
204_iconarrowopenbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
205_iconarrowopenbookshelf_ [v=1] {<small><b>->_texticonopenbookshelf_: </b></small>}
206
207_iconclosedbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
208_iconclosedbookshelf_ [v=1] {<small><b>_texticonclosedbookshelf_: </b></small>}
209
210_iconarrowclosedbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
211_iconarrowclosedbookshelf_ [v=1] {<small><b>->_texticonclosedbookshelf_: </b></small>}
212
213_iconpointer_ {<img src="_httpiconarrrght_" class="icon" width=_widtharrrght_ height=_heightarrrght_>}
214_iconpointer_ [v=1] {<small><b>_texticonpointer_-> </b></small>}
215
216_iconwarning_ {<img src="_httpiconwarning_" width="_widthwarning_" height="_heightwarning_" class="icon" align="left">}
217_iconwarning_ [v=1] {_texticonwarning_}
218
219
220#######################################################################
221# images
222#######################################################################
223
224_docbutton_ {<div class="button"><span class="button" title="_3_"><a href="_1_">_2_</a></span></div>
225}
226
227# can't use _docbutton_ macro for detach button as we need to include target
228_imagedetach_ {<div class="button"><span class="button"><a href="_httpcurrentdocument_&amp;x=1" target="\_blank" title="_texticondetach_">_textDETACH_</a></span></div>}
229
230_imagehighlight_ {_docbutton_(_httpcurrentdocument_&amp;hl=1&amp;gc=_cgiarggc_&amp;gt=_cgiarggt_,_textHIGHLIGHT_,_texticonhighlight_)}
231
232_imagenohighlight_ {_docbutton_(_httpcurrentdocument_&amp;hl=0&amp;gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:textNOHIGHLIGHT_,_document:texticonnohighlight_)}
233
234_imagecontracttoc_ {_docbutton_(_httpcurrentdocument_&amp;gc=0,_textCONTRACTCONTENTS_,_texticoncontracttoc_)}
235
236_imageexpandtoc_ {_docbutton_(_httpcurrentdocument_&amp;gc=1,_textEXPANDCONTENTS_,_texticonexpandtoc_)}
237
238_imagecontracttext_ {_docbutton_(_httpcurrentdocument_&amp;gt=0,_textCONTRACT_,_texticoncontracttext_)}
239
240_imageexpandtext_ {_docbutton_(_httpcurrentdocument_&amp;gt=1,_textEXPANDTEXT_,_texticonexpandtext_)}
241
242_imagecont_ {_docbutton_(_httpcurrentdocument_&amp;gt=2,_textCONTINUE_,_texticoncont_)}
243
244
245
246#######################################################################
247# headers/footers
248#######################################################################
249
250
251# header overridden for text pages
252_textheader_ {_cgihead_
253_htmlhead_
254_startspacer_
255
256<!-- document:textheader -->
257<div id="banner">
258<div class="pageinfo"><p class="bannerlinks">_globallinks_</p></div>
259<div class="collectimage">_imagecollection_</div>
260</div>
261<div class="bannerextra">_pagebannerextra_</div>
262}
263
264_textheader_ [v=1] {_cgihead_
265_htmlhead_
266_globallinks_
267}
268
269_footer_ {
270</div> <!-- document:footer -->
271
272<p>
273_navarrowsbottom_
274</p>
275_endspacer__htmlfooter_
276}
Note: See TracBrowser for help on using the repository browser.