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

Last change on this file since 13075 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
RevLine 
[7343]1# this file must be UTF-8 encoded
2
[258]3package document
4
5#######################################################################
6# macros set from within the server
7#######################################################################
8
9_imagethispage_ {}
10_httpprevarrow_ {}
11_httpnextarrow_ {}
[283]12_pagetitle_ {}
[1804]13_phindclassifier_ {}
[6813]14_collageclassifier_ {}
[12944]15# custom header for individual document
16_documentheader_ {}
[258]17#######################################################################
18# page content
19#######################################################################
20
[12944]21
[258]22_content_ {
[7503]23_optnavigationbar_
[11094]24
[10872]25_If_(_phindclassifier__collageclassifier_,
26<p style="text-align: center;">
[1804]27_phindclassifier_
[6813]28_collageclassifier_
[10872]29</p>
30)
31<div class="document">
[258]32}
33
[8106]34# Dublin Core Metadata Element Set, Version 1.1
[2802]35_textTitlepage_ {_texticonhtitle_}
[8106]36_textCreatorpage_ {_texticonhcreat_}
[2802]37_textSubjectpage_ {_texticonhsubj_}
[8106]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
[2802]51_textTopage_ {_texticonhto_}
52_textFrompage_ {_texticonhfrom_}
53_textSeriespage_ {_texticonhser_}
54_textHowtopage_ {_texticonhhow_}
55_textOrganizationpage_ {_texticonhorg_}
56_textBrowsepage_ {_texticonhbrwse_}
[6813]57_textCollagepage_ {_texticonhcoll_}
[2802]58_textPeoplepage_ {_texticonhpeople_}
59_textAcronympage_ {_texticonhacronym_}
60_textPhrasepage_ {_texticonhphrases_}
61_textArtistpage_ {_texticonhartist_}
[3105]62_textKeywordpage_ {_texticonhkw_}
[3534]63_textVolumepage_ {_texticonhvol_}
[5622]64_textCaptionspage_ {_texticonhcapt_}
[5517]65_textCountriespage_ {_texticonhcount_}
[2802]66
[258]67#######################################################################
68# navigation arrows
69#
70#######################################################################
71
[4868]72# these two may be reset to "" by the server
73_navarrowsbottom_ {_navarrows_}
74_navarrowstop_ {_navarrows_}
75
[258]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
[548]89_navarrows_ [v=1] {<p>
[258]90_prevarrow_<br>
91_nextarrow_
92}
93
94#######################################################################
95# the goto form
96#######################################################################
97
98_gotoform_ {
99<form name="GotoForm" method="get" action="_gwcgi_">
[876]100<input type=hidden name="e" value="_decodedcompressedoptions_">
[258]101<input type=hidden name="d" value="_cgiargd_">
102<input type=hidden name="cl" value="_cgiargcl_">
[666]103<input type="text" name="gp" size="3" maxlength="4">
[944]104<input type="submit" value="_textgoto_">
[258]105</form>
106}
107
[944]108_textnumpages_ {&nbsp;<i>(_1_ _pages_)</i>}
[666]109_parentarrow_ {}
110
111
[258]112#######################################################################
[1804]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_ {
[2507]122<APPLET CODEBASE="_httpprefix_/bin/java" CODE="org.nzdl.gsdl.Phind.Phind.class" ARCHIVE="Phind.jar" WIDTH=500 HEIGHT=400>
[3084]123 <PARAM NAME=library VALUE="_gwcgi_?e=_compressedoptions_">
[2487]124 <PARAM NAME=phindcgi VALUE="_gwcgi_?a=phind">
[1804]125 <PARAM NAME=collection VALUE="_cgiargc_">
[2021]126 <PARAM NAME=classifier VALUE="_phindnumber_">
127
[1804]128 <PARAM NAME=orientation VALUE="vertical">
129 <PARAM NAME=depth VALUE="2">
[2021]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">
[1804]134 <PARAM NAME=blocksize VALUE="10">
[2021]135
[1804]136 The Phind java applet.
137</APPLET>
138}
139
[6813]140_collageapplet_ {
[7332]141 <applet CODEBASE="_httpprefix_/bin/java"
142 code="org.nzdl.gsdl.GsdlCollageApplet.GsdlCollageApplet.class"
143 archive="GsdlCollageApplet.jar"
144 width="_collagexdim_" height="_collageydim_">
[1804]145
[7332]146 <param name="gwcgi" value="_gwcgi_">
147 <param name="collection" value="_cgiargc_">
148 <param name="classifier" value="_cgiargcl_.1">
[6813]149
[7332]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_">
[11421]160 <param name="documentroot" value="_httpimg_">
[6813]161 </applet>
[7332]162
163<center>
164_collagecaption_
165</center>
166
[6813]167}
168
169
[1804]170#######################################################################
[283]171# icons
[258]172#######################################################################
173
[10872]174_iconsmalltext_ {<img src="_httpiconsmtext_" class="icon" width=_widthsmtext_ height=_heightsmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
[548]175_iconsmalltext_ [v=1] {<small><b>_texticonsmalltext2_</b></small>}
[283]176
[10872]177_iconarrowsmalltext_ {<img src="_httpiconasmtext_" class="icon" width=_widthasmtext_ height=_heightasmtext_ alt="_texticonsmalltext_" title="_texticonsmalltext_">}
[548]178_iconarrowsmalltext_ [v=1] {<small><b>->_texticonsmalltext2_</b></small>}
[454]179
[10872]180_iconclosedfolder_ {<img src="_httpiconclsdfldr_" class="icon" width=_widthclsdfldr_ height=_heightclsdfldr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
[548]181_iconclosedfolder_ [v=1] {<small><b>_texticonclosedfolder2_</b></small>}
[283]182
[10872]183_iconarrowclosedfolder_ {<img src=_httpiconaclsdfdr_" class="icon" width=_widthaclsdfdr_ height=_heightaclsdfdr_ alt="_texticonclosedfolder_" title="_texticonclosedfolder_">}
[548]184_iconarrowclosedfolder_ [v=1] {<small><b>->_texticonclosedfolder2_</b></small>}
[454]185
[10872]186_iconopenfolder_ {<img src="_httpiconopenfldr_" class="icon" width=_widthopenfldr_ height=_heightopenfldr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
[548]187_iconopenfolder_ [v=1] {<small><b>_texticonopenfolder2_</b></small>}
[283]188
[10872]189_iconarrowopenfolder_ {<img src="_httpiconaopenfdr_" class="icon" width=_widthaopenfdr_ height=_heightaopenfdr_ alt="_texticonopenfolder_" title="_texticonopenfolder_">}
[548]190_iconarrowopenfolder_ [v=1] {<small><b>->_texticonopenfolder2_</b></small>}
[454]191
[10872]192_iconarrowclosedbook_ {<img src="_httpiconabook_" width=_widthabook_ height=_heightabook_ class="icon" alt="_texticonclosedbook_" title="_texticonclosedbook_">}
[548]193_iconarrowclosedbook_ [v=1] {<small><b>->_texticonclosedbook_: </b></small>}
[454]194
[10872]195_iconopenbook_ {<img src="_httpiconopenbook_" width=_widthopenbook_ height=_heightopenbook_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
[548]196_iconopenbook_ [v=1] {<small><b>_texticonopenbook_: </b></small>}
[283]197
[10872]198_iconarrowopenbook_ {<img src="_httpiconaopenbk_" width=_widthaopenbk_ height=_heightaopenbk_ class="icon" alt="_texticonopenbook_" title="_texticonopenbook_">}
[548]199_iconarrowopenbook_ [v=1] {<small><b>->_texticonopenbook_: </b></small>}
[454]200
[10872]201_iconopenbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
[548]202_iconopenbookshelf_ [v=1] {<small><b>_texticonopenbookshelf_: </b></small>}
[283]203
[10872]204_iconarrowopenbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonopenbookshelf_" title="_texticonopenbookshelf_">}
[548]205_iconarrowopenbookshelf_ [v=1] {<small><b>->_texticonopenbookshelf_: </b></small>}
[454]206
[10872]207_iconclosedbookshelf_ {<img src="_httpiconbshelf_" class="icon" width=_widthbshelf_ height=_heightbshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
[548]208_iconclosedbookshelf_ [v=1] {<small><b>_texticonclosedbookshelf_: </b></small>}
[283]209
[10872]210_iconarrowclosedbookshelf_ {<img src="_httpiconabshelf_" class="icon" width=_widthabshelf_ height=_heightabshelf_ alt="_texticonclosedbookshelf_" title="_texticonclosedbookshelf_">}
[548]211_iconarrowclosedbookshelf_ [v=1] {<small><b>->_texticonclosedbookshelf_: </b></small>}
[454]212
[10872]213_iconpointer_ {<img src="_httpiconarrrght_" class="icon" width=_widtharrrght_ height=_heightarrrght_>}
[548]214_iconpointer_ [v=1] {<small><b>_texticonpointer_-> </b></small>}
[283]215
[11132]216_iconwarning_ {<img src="_httpiconwarning_" width="_widthwarning_" height="_heightwarning_" class="icon" align="left">}
[548]217_iconwarning_ [v=1] {_texticonwarning_}
[283]218
219
[258]220#######################################################################
[283]221# images
222#######################################################################
223
[11132]224_docbutton_ {<div class="button"><span class="button" title="_3_"><a href="_1_">_2_</a></span></div>
225}
[283]226
[11132]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>}
[283]229
[11132]230_imagehighlight_ {_docbutton_(_httpcurrentdocument_&amp;hl=1&amp;gc=_cgiarggc_&amp;gt=_cgiarggt_,_textHIGHLIGHT_,_texticonhighlight_)}
[283]231
[11132]232_imagenohighlight_ {_docbutton_(_httpcurrentdocument_&amp;hl=0&amp;gc=_cgiarggc_&amp;gt=_cgiarggt_,_document:textNOHIGHLIGHT_,_document:texticonnohighlight_)}
[283]233
[11132]234_imagecontracttoc_ {_docbutton_(_httpcurrentdocument_&amp;gc=0,_textCONTRACTCONTENTS_,_texticoncontracttoc_)}
[283]235
[11132]236_imageexpandtoc_ {_docbutton_(_httpcurrentdocument_&amp;gc=1,_textEXPANDCONTENTS_,_texticonexpandtoc_)}
[283]237
[11132]238_imagecontracttext_ {_docbutton_(_httpcurrentdocument_&amp;gt=0,_textCONTRACT_,_texticoncontracttext_)}
[283]239
[11132]240_imageexpandtext_ {_docbutton_(_httpcurrentdocument_&amp;gt=1,_textEXPANDTEXT_,_texticonexpandtext_)}
[283]241
[11132]242_imagecont_ {_docbutton_(_httpcurrentdocument_&amp;gt=2,_textCONTINUE_,_texticoncont_)}
[283]243
[11132]244
245
[283]246#######################################################################
[258]247# headers/footers
248#######################################################################
249
250
251# header overridden for text pages
252_textheader_ {_cgihead_
[454]253_htmlhead_
[10872]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>
[11779]261<div class="bannerextra">_pagebannerextra_</div>
[258]262}
[10872]263
[548]264_textheader_ [v=1] {_cgihead_
265_htmlhead_
[10872]266_globallinks_
[548]267}
[258]268
269_footer_ {
[10872]270</div> <!-- document:footer -->
271
[258]272<p>
[4868]273_navarrowsbottom_
[10872]274</p>
[258]275_endspacer__htmlfooter_
276}
Note: See TracBrowser for help on using the repository browser.