Re: [greenstone-devel] How to make a new macro for a new navigation barbutton?

From Katherine Don
DateFri, 13 May 2005 09:14:40 +1200
Subject Re: [greenstone-devel] How to make a new macro for a new navigation barbutton?
In-Reply-To (42832de6-60541fdf-1833-5f44-mx-gmail-com)
Hi

If you see text like _imageMuseum_ on the page, it means that the macro
has not been defined. You have _imagemuseum_ in the macros below. - Try
changing it to use an uppercase M.

Regards,
Katherine.

Thanh Quy wrote:
> 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?
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel