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

Last change on this file since 13370 was 13370, checked in by shaoqun, 17 years ago

added the next and previous search result link macros for document pages

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