[greenstone-devel] How to make a new macro for a new navigation bar button?

From Thanh Quy
DateThu, 12 May 2005 17:19:48 +0700
Subject [greenstone-devel] How to make a new macro for a new navigation bar button?

I followed the guide “customize user interface” of greenstone to make new navigation button “Museum” .I modified the file base.dm and english.dm:

In file base.dm, I added:

#QUY

_Museumwidth_{_widthtmuseumx_}

#QUY

_imagemuseum_{_gsimage_(_httpbrowseMuseum_,_httpicontmuseumof_,_httpicontmuseumon_,museum,_textimageMuseum_)}

#QUY

_icontabMuseumgreen_ {<img src="_httpicontmuseumgr_" width=_widthtmuseumx_ border=0>}

_icontabMuseumgreen_[v=1] {_texticontabMuseumgreen_}

In file english.dm, I added

#QUY

_textimageMuseum_{Museum}

#QUY

_texticontabMuseumgreen_{Museum}

#QUY

## "museum" ## nav_bar_button ## tmuseum ##

_httpicontmuseumgr_{/gsdl/web/images/tmusgr.gif}

_httpicontmuseumon_{/gsdl/web/images/tmuson.gif}

_httpicontmuseumof_{/gsdl/web/images/tmusof.gif}

_widthtmuseumx_ {110}

#Quy

_textMuseumshort_{access public by museum}

_textMuseumlong_ { <p>You can <i>access publications by museum</i> by

pressing the <i>museum</i> button. This brings up a list of museum. }

 

and then, I made 3 images: tmusgr.gif, tmuson.gif and tmusof.gif in the folder images of greenstone. After that, I made a new collection, added the following line to file collect.cfg before importing and building colletion:

classify AZList -metadata museum -buttonname Museum

but my collection had no button Museum, just appeared the text _imageMuseum_

I send you 2 file base.dm and english.dm. There are notes “#QUY” before my macros to find them easilier. Can you help me?