# this file must be UTF-8 encoded
# This macro file contains the definitions required for making the
# navigation bar presentation controlled by the CSS file.
#######################################################################
# GLOBAL MACROS
#######################################################################
package Global
#######################################################################
# global navigation links
#######################################################################
_globallinks_ {_If_("_cgiargu_" ne "1",_homelink_) _helplink_ _preflink__optdepositlink__optloginlink_ _optrsslink_}
_homelink_ {_navtaborig_(_httppagehome_,_linktextHOME_,_textdescrhome_)}
_helplink_ {_navtaborig_(_httppagehelp_,_linktextHELP_,_textdescrhelp_)}
_preflink_ {_navtaborig_(_httppagepref_,_linktextPREFERENCES_,_textdescrpref_)}
# should the collection have a deposit button? Set _optdepositlink_ {_depositlink_} in collection's global package.
_optdepositlink_ {}
_depositlink_{_navtaborig_(_httppagedepositorcurrentcollection_,_linktextDEPOSIT_,_textdescrdeposit_)}
_optloginlink_ {
_If_("_activateweb20_" >= "1",_If_("x_cgiargun__cgiarguan_" ne "x1",_loginlink_))
}
_loginlink_ {
_If_(_cgiargun_,
_navtablogoutorig_(_linktextLOGOUT_,_textdescrlogout_) _linktextLOGGEDIN_
,
_navtabloginorig_(_linktextLOGIN_,_textdescrlogin_)
)
}
# if a collection should have an rss link,
# set _optrsslink_ for that collection's global package to contain _rsslink_
_optrsslink_ {}
# RSS link and default RSS icon for embedding in the link
# RSS icon from http://webneel.com/post/freedownload/web-design/icon-design/25-web-rss-icons
# e.g. rss link: http://localhost:8283/greenstone/cgi-bin/library.cgi?site=localhost&a=rss&c=demo&l=en&w=utf-8&hostname=localhost:8283
# And the javascript that's used for appending "&hostname=host:port" to the link to the RSS feed
# The script is activated on loading the rss icon , since onLoad doesn't work on
# The rsslink that embeds rssicon are two macros defined in base.dm
# To use this script, define pagescriptextra macro to contain the domainscript macro
# Can do so at collectionlevel in a collection's extra.dm (try to add it to package about)
_rssicon_ {
}
_rsslink_ {_rssicon_
}
# 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_{