Re: [greenstone-devel] Adding new Nav bar buttons

From Michael Dewsnip
DateFri, 03 Oct 2003 09:18:03 +1200
Subject Re: [greenstone-devel] Adding new Nav bar buttons
In-Reply-To (71E37EF6B7DCC1499CEA0316A25683280105725D-loki-wc-globexplorer-net)
Hi Greg,

Yes, you're right, this isn't documented very well. It sounds like you're on the right track though.

The first stage is to define a whole lot of macros in and (as you've already done). The easiest way of making sure you don't miss anything is to search for one that is already there (like "organization"), and copy and paste.

Then, the second stage is to actually generate the images for the buttons. This is done automatically by a script called "" (in the bin/script directory), and requires Gimp and the Perl Gimp modules installed. You might like to play around with this in the future, but for now I've just generated the images for you. I'll send them in a following

All the best,


"Gregory S. Williamson" wrote:

> I've got some metadata in html files that uses tags not in the standard greenstone (e.g. "Periods" for time and a "Contributors" metadata tag as well).
> I added some macros to the and files to define some new buttons which I hope to see replacing the text that currently represents these metadata tags/index references in the navigation bar for this collection.
> Alas, they don't seem to be showing up.
> Is there a document that describes this process ? I don't really see anything in the docs I have.
> I am thinking that making copies of existing macros and changing the name and the text or image they refer to would be enough, but perhaps I have missed some component ? Or I am missing some macro definitions or misspelling the things ? What might be the rules for such additions ? (if they are in fact possible) Or am I stepping on existing gsdl definitions ?
> Thanks for any and all advice!
> Greg Williamson
> below is a section of the collection config file:
> indexes document:text document:Title document:Source document:Subject document:Author document:Period
> defaultindex document:text
> plugin ZIPPlug
> plugin GAPlug
> plugin TEXTPlug
> plugin HTMLPlug -metadata_fields Subject,Title,Author,Period
> ...
> classify AZList -metadata Title
> classify AZList -metadata Source
> classify AZCompactList -metadata Subject -mingroup 1
> classify AZCompactList -metadata Author -mingroup 1 -buttonname "Contributors"
> classify AZCompactList -metadata Period -mingroup 1
> _______________________________________________
> greenstone-devel mailing list