# this file must be UTF-8 encoded
#######################################################################
# GLOBAL MACROS
#######################################################################
package Global
##########
_optsite_ {}
##########
_htmlextra_ {}
#_starthighlight_ {}
#_endhighlight_ {}
_starthighlight_ {}
_endhighlight_ {}
#######################################################################
# page content
#
# these should always be overridden for each page/collection
#######################################################################
_content_ {
oops
_textdefaultcontent_}
_pagetitle_ {_textdefaulttitle_}
_imagethispage_ {}
_iconcollection_ {}
_collectionname_ {}
package Global
_imagecollection_ {_If_("_iconcollection_" ne "",
,
_imagecollectionv_)}
_imagecollection_ [v=1] {_imagecollectionv_}
_imagecollectionv_ {_If_(_collectionname_,
)}
#######################################################################
# these width macros are read in by the server when calculating
# width of navigation bar etc. There should be one for each
# classification that this receptionist supports, one for the
# search button, and the _pagewidth_ macro which is the total width
# of the page
#######################################################################
# width of tabs when displaying tables of contents
_tabwidth_ {25}
_pagewidth_ {537}
# defaultwidth is the width buttons default to if not included in this list
# but you need to define a _METAwidth_ tag as the server tests that it exists!
_defaultwidth_ {87}
_searchwidth_ {_widthtsrchx_}
# Dublin Core Metadata Element Set, Version 1.1
_Titlewidth_ {_widthttitlex_}
_Creatorwidth_ {_widthtcreatx_}
_Subjectwidth_ {_widthtsubjx_}
_Descriptionwidth_ {_widthtdescx_}
_Publisherwidth_ {_widthtpublx_}
_Contributorwidth_ {_widthtcontrx_}
_Datewidth_ {_widthtdatex_}
_Typewidth_ {_widthttypex_}
_Formatwidth_ {_widthtformx_}
_Identifierwidth_ {_widthtidentx_}
_Sourcewidth_ {_widthtsrcx_}
_Languagewidth_ {_widthtlangx_}
_Relationwidth_ {_widthtrelx_}
_Coveragewidth_ {_widthtcoverx_}
_Rightswidth_ {_widthtrightx_}
_Collagewidth_ {_widthtcollx_}
_Listwidth_ {_widthtlistx_}
_Serieswidth_ {_widthtserx_}
_Towidth_ {_widthttox_}
_Fromwidth_ {_widthtfromx_}
_Organizationwidth_ {_widthtorgx_}
_Howtowidth_ {_widththowx_}
_Topicwidth_ {_widthttopicx_}
_Browsewidth_ {_widthtbrwsex_}
_Peoplewidth_ {_widthtpeopx_}
_Acronymwidth_ {_widthtacrox_}
_Phrasewidth_ {_widthtphrsex_}
_Artistwidth_ {_widthtartstx_}
_Keywordwidth_ {_widthtkwx_}
_Volumewidth_ {_widthtvolx_}
_Captionswidth_ {_widthtcaptx_}
_Countrieswidth_ {_widthcountx_}
#######################################################################
# Macros whose values are set from within the server at runtime. These
# are here only for reference and to set default values if required.
#######################################################################
# _win32_ will be set to 1 if we're on windows
_win32_ {}
_navigationbar_ {}
_widthtspace_ {2}
# The following is useful if collection specific macro. Override
# _optnavigationbar_ to be empty if you don't want the navigation bar to
# appear in the standard place, and then specify _navigationbar_ elsewhere
# in a collection specific macro file(s) to be where you do want it.
_optnavigationbar_{_navigationbar_}
# all cgi args are set as _cgiargX_ macros - those I've put here
# are those that need to default to something
_cgiargd_ {}
_cgiargcl_ {}
# set from within the query action
_hselection_ {}
_jselection_ {}
_nselection_ {}
#level (granularity) selection for mgpp
_gselection_ {}
#level selection for form searching - dont have paragraph
_gformselection_ {_gselection_}
_fqfselection_ {}
#######################################################################
# flashy rollover image macro
#
#######################################################################
# imagescript should always be included in html header if there are
# flashy images on the page
_imagescript_ {
var loaded = new Array();
function gbutton (image, onimage) \{
if (image && image.src && (image.out == null || typeof(image.out) == typeof(void(0)))) \{
s = image.src;
image.out = new Image();
image.out.src = s;
image.over = new Image();
image.over.src = onimage;
loaded[image.name] = image;
\}
\}
function roll (imagename, over) \{
if (document.images) \{
if (over) i = "over";
else i = "out";
image = loaded[imagename];
if (image) image.src = eval("image."+i+".src");
\}
\}
}
# gsimage should be used to define an instance of a flashy image
# parameters are:
# 1. the url to go to when the button is clicked
# 2. the url of the "off" image
# 3. the url of the "on" image
# 4. the name of the image (must be unique)
# 5. image alt text
_gsimage_ {}
_gsimage_ [v=1] {_5_
}
#######################################################################
# navigation bar images
#
#######################################################################
# the spacer image - the width of this is set from server
_imagespacer_ {}
_imagespacer_[v=1] {
}
# image macros for all the classifications currently supported by
# this receptionist.
_imagesearch_ {_If_("_cgiargu_" ne "1",_imagesearch2_,_iconnosearch_)}
_imagesearch2_ {_gsimage_(_httpquery_,_httpicontsrchof_,_httpicontsrchon_,srch,_textimagesearch_)}
# Dublin Core Metadata Element Set, Version 1.1
_imageTitle_ {_gsimage_(_httpbrowseTitle_,_httpiconttitleof_,_httpiconttitleon_,titles,_textimageTitle_)}
_imageCreator_ {_gsimage_(_httpbrowseCreator_,_httpicontcreatof_,_httpicontcreaton_,creators,_textimageCreator_)}
_imageSubject_ {_gsimage_(_httpbrowseSubject_,_httpicontsubjof_,_httpicontsubjon_,subjects,_textimageSubject_)}
_imageDescription_ {_gsimage_(_httpbrowseDescription_,_httpicontdescof_,_httpicontdescon_,descriptions,_textimageDescription_)}
_imagePublisher_ {_gsimage_(_httpbrowsePublisher_,_httpicontpublof_,_httpicontpublon_,publishers,_textimagePublisher_)}
_imageContributor_ {_gsimage_(_httpbrowseContributor_,_httpicontcontrof_,_httpicontcontron_,contributors,_textimageContributor_)}
_imageDate_ {_gsimage_(_httpbrowseDate_,_httpicontdateof_,_httpicontdateon_,dates,_textimageDate_)}
_imageType_ {_gsimage_(_httpbrowseType_,_httpiconttypeof_,_httpiconttypeon_,types,_textimageType_)}
_imageFormat_ {_gsimage_(_httpbrowseFormat_,_httpicontformof_,_httpicontformon_,formats,_textimageFormat_)}
_imageIdentifier_ {_gsimage_(_httpbrowseIdentifier_,_httpicontidentof_,_httpicontidenton_,identifiers,_textimageIdentifier_)}
_imageSource_ {_gsimage_(_httpbrowseSource_,_httpicontsrcof_,_httpicontsrcon_,source,_textimageSource_)}
_imageLanguage_ {_gsimage_(_httpbrowseLanguage_,_httpicontlangof_,_httpicontlangon_,language,_textimageLanguage_)}
_imageRelation_ {_gsimage_(_httpbrowseRelation_,_httpicontrelof_,_httpicontrelon_,relations,_textimageRelation_)}
_imageCoverage_ {_gsimage_(_httpbrowseCoverage_,_httpicontcoverof_,_httpicontcoveron_,coverage,_textimageCoverage_)}
_imageRights_ {_gsimage_(_httpbrowseRights_,_httpicontrightof_,_httpicontrighton_,rights,_textimageRights_)}
_imageSeries_ {_gsimage_(_httpbrowseSeries_,_httpicontserof_,_httpicontseron_,series,_textimageSeries_)}
_imageTo_ {_gsimage_(_httpbrowseTo_,_httpiconttoof_,_httpiconttoon_,to,_textimageTo_)}
_imageFrom_ {_gsimage_(_httpbrowseFrom_,_httpicontfromof_,_httpicontfromon_,from,_textimageFrom_)}
_imageOrganization_ {_gsimage_(_httpbrowseOrganization_,_httpicontorgof_,_httpicontorgon_,org,_textimageOrganization_)}
_imageHowto_ {_gsimage_(_httpbrowseHowto_,_httpiconthowof_,_httpiconthowon_,how,_textimageHowto_)}
_imageTopic_ {_gsimage_(_httpbrowseTopic_,_httpiconttopicof_,_httpiconttopicon_,topic,_textimageTopic_)}
_imageBrowse_ {_gsimage_(_httpbrowseBrowse_,_httpicontbrwseof_,_httpicontbrwseon_,browse,_textimageBrowse_}
_imagePeople_ {_gsimage_(_httpbrowsePeople_,_httpicontpeopof_,_httpicontpeopon_,people,_textimagePeople_)}
_imageAcronym_ {_gsimage_(_httpbrowseAcronym_,_httpicontacroof_,_httpicontacroon_,acronym,_textimageAcronym_)}
_imageCollage_ {_gsimage_(_httpbrowseCollage_,_httpicontcollof_,_httpicontcollon_,collage,_textimageCollage_)}
_imagePhrase_ {_gsimage_(_httpbrowsePhrase_,_httpicontphrseof_,_httpicontphrseon_,phrase,_textimagePhrase_)}
_imageArtist_ {_gsimage_(_httpbrowseArtist_,_httpicontartstof_,_httpicontartston_,artist,_textimageArtist_)}
_imageKeyword_ {_gsimage_(_httpbrowseKeyword_,_httpicontkwof_,_httpicontkwon_,kw,_textimageKeyword_)}
_imageVolume_ {_gsimage_(_httpbrowseVolume_,_httpicontvolof_,_httpicontvolon_,volume,_textimageVolume_)}
_imageCaptions_ {_gsimage_(_httpbrowseCaptions_,_httpicontcaptof_,_httpicontcapton_,captions,_textimageCaptions_)}
_imageCountries_ {_gsimage_(_httpbrowseCountries_,_httpicontcountof_,_httpicontcounton_,countries,_textimageCountries_)}
#######################################################################
# java images/scripts
#######################################################################
# the _javalinks_ macros are the flashy image links at the top right of
# the page.
_javalinks_ {_imagehome_ _imagehelp_ _imagepref_}
_javalinks_ [v=1] {
_imagehome_
_imagehelp_
_imagepref_
}
#######################################################################
# general web macros
#######################################################################
_mailaddr_ {greenstone@cs.waikato.ac.nz}
_gsdltop_ {_top}
#######################################################################
# http macros
#
# These contain the url without any quotes
#######################################################################
_httpcimages_ {_httpcollection_/images}
_httpcollimg_ {_httpcollection_/index/assoc}
_httpdocimg_ {_httpcollimg_/_thisOID_}
_httpcollection_ {_httpprefix_/collect/_cgiargc_}
_httppagex_ {_gwcgi_?e=_compressedoptions_&a=p&p=_1_}
_httppagestatus_ {_gwcgi_?e=_compressedoptions_&a=status&p=frameset}
_httppagetranslator_ {_gwcgi_?e=_compressedoptions_&a=gti&p=home}
_httppagecollector_ {_gwcgi_?e=_compressedoptions_&a=collector&p=intro}
_httppagegli_ {_httppagex_(gli)}
_httppageabout_ {_httppagex_(about)}
#_httppagehome_ {_httppagex_(home)}
###_httppagehome_ {http://www.nzdl.org/cgi-bin/dblibrary?a=p&p=home}
_httppagehome_ {_gwcgi_?a=p&p=home&l=_cgiargl_&w=_cgiargw_}
_httppagehelp_ {_httppagex_(help)}
_httppagepref_ {_httppagex_(preferences)}
_httppagedocs_ {_httppagex_(docs)}
_httpclearhistory_ {_gwcgi_?e=_compressedoptions_&a=dh}
_httpgreenstone_ {_httppagex_(gsdl)}
_httpdownload_ {http://www.nzdl.org/download}
_httppublications_ {_httpdownload_/greenstone/publications}
_httpcurrentdocument_ {_gwcgi_?e=_compressedoptions_&cl=_cgiargcl_&d=_cgiargd_}
_httpquery_ {_gwcgi_?e=_compressedoptions_&a=q}
_httpBrowse_ {_gwcgi_?e=_compressedoptions_&a=br}
# _httpdoc_ is the same as _httpdocument_ - _httpdocument_
# may occasionally be altered by the server however
_httpdocument_ {_gwcgi_?e=_compressedoptions_&a=d}
_httpdoc_ {_gwcgi_?e=_compressedoptions_&a=d}
_httpextlink_ {_gwcgi_?e=_compressedoptions_&a=extlink}
_httpbuild_ {_gwcgi_?e=_compressedoptions_&a=bc}
_httpiconchalk_ {_httpimg_/chalk.gif}
_widthchalk_ {2000}
_heightchalk_ {10}
_httpicondivb_ {_httpimg_/divb.gif}
_widthdivb_ {_pagewidth_}
_heightdivb_ {17}
_httpicongsdl_ {_httpimg_/gsdl.gif}
_widthgsdl_ {140}
_heightgsdl_ {77}
_httpiconitext_ {_httpimg_/itext.gif}
_widthitext_ {16}
_heightitext_ {21}
_httpiconiworld_ {_httpimg_/iworld.gif}
_widthiworld_ {16}
_heightiworld_ {21}
_httpiconiunknown_ {_httpimg_/iunknown.gif}
_widthiunknown_ {16}
_heightiunknown_ {21}
_httpiconibtext_ {_httpimg_/ibtext.gif}
_widthibtext_ {16}
_heightibtext_ {21}
_httpiconimpegvideo_ {_httpimg_/impegvid.gif}
_widthimpegvideo_ {29}
_heightimpegvideo_ {32}
_httpiconiqtvideo_ {_httpimg_/iqtvideo.gif}
_widthiqtvideo_ {29}
_heightiqtvideo_ {32}
_httpiconirmvideo_ {_httpimg_/irmvideo.gif}
_widthirmvideo_ {29}
_heightirmvideo_ {32}
_httpiconless_ {_httpimg_/less.gif}
_widthless_ {30}
_heightless_ {16}
_httpiconmore_ {_httpimg_/more.gif}
_widthmore_ {30}
_heightmore_ {16}
_httpiconspacer_ {_httpimg_/spacer.gif}
_widthspacer_ {42}
_heightspacer_ {4}
_httpicontabspace_ {_httpimg_/tabspace.gif}
_widthtabspace_ {23}
_heighttabspace_ {1}
_httpicontspace_ {_httpimg_/tspace.gif}
_heighttspace_ {17}
_httpiconwarning_ {_httpimg_/warning.gif}
_widthwarning_ {30}
_heightwarning_ {29}
_httpiconhhome_ {_httpimg_/h\_home.gif}
_widthhhome_ {200}
_heighthhome_ {57}
_httpiconarrrght_ {_httpimg_/arrrght.gif}
_widtharrrght_ {23}
_heightarrrght_ {15}
_httpiconopenbook_ {_httpimg_/openbook.gif}
_widthopenbook_ {28}
_heightopenbook_ {23}
_httpiconaopenbk_ {_httpimg_/aopenbk.gif}
_widthaopenbk_ {28}
_heightaopenbk_ {23}
_httpiconopenfldr_ {_httpimg_/openfldr.gif}
_widthopenfldr_ {23}
_heightopenfldr_ {15}
_httpiconaopenfdr_ {_httpimg_/aopenfdr.gif}
_widthaopenfdr_ {23}
_heightaopenfdr_ {15}
_httpiconbook_ {_httpimg_/book.gif}
_widthbook_ {18}
_heightbook_ {11}
_httpiconabook_ {_httpimg_/abook.gif}
_widthabook_ {18}
_heightabook_ {11}
_httpiconbshelf_ {_httpimg_/bshelf.gif}
_widthbshelf_ {20}
_heightbshelf_ {16}
_httpiconabshelf_ {_httpimg_/abshelf.gif}
_widthabshelf_ {20}
_heightabshelf_ {16}
_httpiconsmtext_ {_httpimg_/smtext.gif}
_widthsmtext_ {23}
_heightsmtext_ {15}
_httpiconasmtext_ {_httpimg_/asmtext.gif}
_widthasmtext_ {23}
_heightasmtext_ {15}
_httpiconclsdfldr_ {_httpimg_/clsdfldr.gif}
_widthclsdfldr_ {23}
_heightclsdfldr_ {15}
_httpiconaclsdfdr_ {_httpimg_/aclsdfdr.gif}
_widthaclsdfdr_ {23}
_heightaclsdfdr_ {15}
_httpiconimidi_ {_httpimg_/imidi.gif}
_widthimidi_ {16}
_heightimidi_ {21}
_httpiconimsword_ {_httpimg_/imsword.gif}
_widthimsword_ {26}
_heightimsword_ {26}
_httpiconimp3_ {_httpimg_/mp3icon.gif}
_widthimp3_ {25}
_heightimp3_ {20}
_httpiconipdf_ {_httpimg_/ipdf.gif}
_widthipdf_ {26}
_heightipdf_ {26}
_httpiconips_ {_httpimg_/ips.gif}
_widthips_ {25}
_heightips_ {32}
_httpiconippt_ {_httpimg_/ippt.gif}
_widthippt_ {32}
_heightippt_ {30}
_httpiconirtf_ {_httpimg_/irtf.gif}
_widthirtf_ {29}
_heightirtf_ {32}
_httpiconixls_ {_httpimg_/iexcel.gif}
_widthixls_ {32}
_heightixls_ {30}
#######################################################################
# Icons
#
# Must not include links (so they can be used as links). If you want to
# include links use _image
#######################################################################
_iconnext_{}
_iconnext_[v=1] {_texticonnext_}
_iconprev_{}
_iconprev_[v=1] {_texticonprev_}
_icontabsearchgreen_ {}
_icontabsearchgreen_[v=1] {_texticontabsearchgreen_}
# Dublin Core Metadata Element Set, Version 1.1
_icontabTitlegreen_ {}
_icontabTitlegreen_[v=1] {_texticontabTitlegreen_}
_icontabCreatorgreen_ {}
_icontabCreatorgreen_[v=1] {_texticontabCreatorgreen_}
_icontabSubjectgreen_ {}
_icontabSubjectgreen_[v=1] {_texticontabSubjectgreen_}
_icontabDescriptiongreen_ {}
_icontabDescriptiongreen_[v=1] {_texticontabDescriptiongreen_}
_icontabPublishergreen_ {}
_icontabPublishergreen_[v=1] {_texticontabPublishergreen_}
_icontabContributorgreen_ {}
_icontabContributorgreen_[v=1] {_texticontabContributorgreen_}
_icontabDategreen_ {}
_icontabDategreen_[v=1] {_texticontabDategreen_}
_icontabTypegreen_ {}
_icontabTypegreen_[v=1] {_texticontabTypegreen_}
_icontabFormatgreen_ {}
_icontabFormatgreen_[v=1] {_texticontabFormatgreen_}
_icontabIdentifiergreen_ {}
_icontabIdentifiergreen_[v=1] {_texticontabIdentifiergreen_}
_icontabSourcegreen_ {}
_icontabSourcegreen_[v=1] {_texticontabSourcegreen_}
_icontabLanguagegreen_ {}
_icontabLanguagegreen_[v=1] {_texticontabLanguagegreen_}
_icontabRelationgreen_ {}
_icontabRelationgreen_[v=1] {_texticontabRelationgreen_}
_icontabCoveragegreen_ {}
_icontabCoveragegreen_[v=1] {_texticontabCoveragegreen_}
_icontabRightsgreen_ {}
_icontabRightsgreen_[v=1] {_texticontabRightsgreen_}
_icontabListgreen_ {}
_icontablistgreen_ [v=1] {_texticontablistgreen_}
_icontabCollagegreen_ {}
_icontabCollagegreen_[v=1] {_texticontabCollagegreen_}
_icontabSeriesgreen_ {}
_icontabSeriesgreen_[v=1] {_texticontabseriesgreen_}
_icontabTogreen_ {}
_icontabTogreen_[v=1] {_texticontabtogreen_}
_icontabFromgreen_ {}
_icontabFromgreen_[v=1] {_texticontabfromgreen_}
_icontabHowtogreen_ {}
_icontabHowtogreen_[v=1] {_texticontabhowgreen_}
_icontabTopicgreen_ {}
_icontabTopicgreen_[v=1] {_texticontabtopicgreen_}
_icontabBrowsegreen_ {}
_icontabBrowsegreen_[v=1] {_texticontabbrwsegreen_}
_icontabOrganizationgreen_ {}
_icontabOrganizationgreen_[v=1] {_texticontaborggreen_}
_icontabPeoplegreen_ {}
_icontabPeoplegreen_[v=1] {_texticontabPeoplegreen_}
_icontabAcronymgreen_ {}
_icontabAcronymgreen_[v=1] {_texticontabAcronymgreen_}
_icontabPhrasegreen_ {}
_icontabPhrasegreen_[v=1] {_texticontabPhrasegreen_}
_icontabArtistgreen_ {}
_icontabArtistgreen_[v=1] {_texticontabArtistgreen_}
_icontabKeywordgreen_ {}
_icontabKeywordgreen_[v=1] {_texticontabKeywordgreen_}
_icontabVolumegreen_ {}
_icontabVolumegreen_[v=1] {_texticontabVolumegreen_}
_icontabCaptionsgreen_ {}
_icontabCaptionsgreen_[v=1] {_texticontabCaptionsgreen_}
_icontabCountriesgreen_ {}
_icontabCountriesgreen_[v=1] {_texticontabCountriesgreen_}
_iconblankbar_ {}
_iconblankbar_[v=1] {
}
_icontext_ {}
_icontext_[v=1] {_texticontext_}
_iconworld_ {}
_iconworld_[v=1] {_texticonworld_}
_iconunknown_ {}
_iconunknown_[v=1] {_texticonunknown_}
_iconblanktext_ {}
_iconblanktext_[v=1] {}
_iconclosedbook_ {}
_iconclosedbook_ [v=1] {_texticonclosedbook_: }
_iconclosedbook_ [v=1,l=zh]{<_font_>_texticonclosedbook_: }
_icondoc_ {}
_icondoc_[v=1] {_texticonmsword_}
_iconmp3_ {}
_iconmp3_[v=1] {_texticonmp3_}
_iconmidi_ {}
_iconmidi_[v=1] {_texticonmidi_}
_iconpdf_ {}
_iconpdf_[v=1] {_texticonpdf_}
_iconps_ {}
_iconps_[v=1] {_texticonps_}
_iconppt_ {}
_iconppt_[v=1] {_texticonppt_}
_iconrtf_ {}
_iconrtf_[v=1] {_texticonrtf_}
_iconxls_ {}
_iconxls_[v=1] {_texticonxls_}
_iconnosearch_ {}
#######################################################################
# Image links
#
# These might include a link (not like an _icon_
#######################################################################
_imagehome_ {_If_("_cgiargu_" ne "1",_imagehome2_)}
_imagehome2_ {_gsimage_(_httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
_imagehelp_ {_gsimage_(_httppagehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
_imagepref_ {_If_("_cgiargu_" ne "1",_imagepref2_)}
_imagepref2_ {_gsimage_(_httppagepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
_imagegreenstone_ {}
_imagegreenstone_[v=1] {_textimagegreenstone_}