Re: [greenstone-users] how to add new navigation button ?

From Michael Dewsnip
DateWed, 21 May 2003 17:47:38 +1200
Subject Re: [greenstone-users] how to add new navigation button ?
In-Reply-To (20030521045811-4009-qmail-webmail8-rediffmail-com)
Hi,

As well as editing the macro files, you also need to generate the three images (green, light
orange, dark orange) for the button on the navigation bar. If you are using Linux and have Gimp
installed, there is a Greenstone perl script (bin/script/translate.pl) that will generate these
for you automatically. In case you can't use this, I have generated them for you, and will
attach them to a following e-mail.

You also have a couple of spelling mistakes in your macros ("spaeker" instead of "speaker"),
which you should fix.

The _httpbrowseX_ macros are defined in the C++ receptionist code
(src/recpt/documentaction.cpp). You shouldn't need to edit this code (hopefully).

- Michael


deepak kumar wrote:

> Hello list,
> I want to add a new navigation button "Speaker" for a metadata
> "speaker". For this i edited the entries of base.dm and english.dm
> macros as--
>
> base.dm:--
> ========================
> _imageSpeaker_
> {_gsimage_(_httpbrowseSpeaker_,_httpicontspkof_,_httpicontspkon_,speaker,_textimageSpaeker_)}
>
> english.dm:--
> ========================
> _textimageSpeaker_ {browse by spaeker}
>
> ## "Speaker" ## nav_bar_button ## tspk ##
> _httpicontspkgr_ {/gsdl/web/images/tsingr.gif}
> _httpicontspkof_ {/gsdl/web/images/tsinof.gif}
> _httpicontspkon_ {/gsdl/web/images/tsinon.gif}
> _widthtspkx_ {87}
>
> now i started building collection and including metadata speaker
> but the navigation bar donot recognise the icon for the speaker
> button but display only link in text format.
>
> can any body help me, where am i missing to put relevant
> entries.
>
> where is _httpbrowseTitle_ is defined? As i made entries by
> comparing the relevant entries of Title metadata button. I donot
> find any macro file where _httpbrowseTitle_ is defined.
>
> deepak
>
> ___________________________________________________
> Impress your clients! Send mail from me @ mycompany.com .
> Just Rs.1499/year.
> Click http://www.rediffmailpro.com to know more.
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users