[greenstone-devel] Adding new Nav bar buttons

From Gregory S. Williamson
DateThu, 2 Oct 2003 12:41:16 -0700
Subject [greenstone-devel] Adding new Nav bar buttons
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 english.dm and base.dm 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