Re: [greenstone-devel] Document Metadata visible in macros/collection icons

From Katherine Don
DateMon, 25 Aug 2003 14:27:07 +1200
Subject Re: [greenstone-devel] Document Metadata visible in macros/collection icons
In-Reply-To (71E37EF6B7DCC1499CEA0316A2568328010570EA-loki-globexplorer-com)
"Gregory S. Williamson" wrote:

> I've been flailing around trying to reformat the actual output to a user of greenstone pages, and have two reasonably simple questions that I can't seem to find answers to; perhaps someone out there could shed some light.
>
> 1) Is it possible to change the collection icon on the flt(for instance, based on a given metadata element in a page) ?

not as far as I know. the collection icon is a metadata element and can have macros inside it, but I dont think it could have [Subject] type things in it cos its not a format statement.

>
> 2) Is it possible for the code in a macro to know the value of a metadata tag in a given page ? I have tried this in the document.dm file (headres/footers section):
> _textheader_ {
> GSDL Error
> <! textheader macro of headers/footers section of document.dm !>
> ,
> <p> <! no subject found in textheader of document.dm !>,
> <center>
> <table width=537><tr><td align=right>
> _icontab__javalinks_</td></tr></table>
> </center>)
> <! end textheader macro of headers/footers section of document.dm !>
> }
>
> Consistantly I get "no subject found" comment in the output html file both for page where I would not expect it to be set (e.g. a page where I am selecting from a list of documents) and it is also inserted on pages where the metadata tag "Subject" is defined when the DocumentText macro (from the collect.cfg file) is executed.

I think that you cant have [metadata] in a macro, only in a format statement.

regards,
Katherine Don