Re: metadata only collections and formatting strings

From Stefan Boddie
DateThu, 19 Dec 2002 10:52:42 +1300
Subject Re: metadata only collections and formatting strings
In-Reply-To (OF3F0EB000-B07F26A7-ON69256C87-000BB38F-69256C87-00159ADB-ntu-edu-au)

> Does anyone know if it is possible to use greenstone for metadata only.
> I have no source documents - I will transtlate my metadata into the
> metadata.xml format for recplug to process.
> If I do metadata.xml without a filename it fails to add any records - I
> suppose I shoudn't be surprised.
> I am trying to work out the correct solution, I can solve this with a
> dummy document with non-word data - but I feel that is a waste of
> space and the incorrect solution. (I have tried searching the list and
> the documentation/source but to no avail)

There's no easy way to do this I don't think. Collections containing nothing
but metadata.xml files are something that should be possible though (I'll
add it to the list :-)

You might be able to do something tricky with the SplitPlug so that you only
need one dummy file instead of one for each document. It'd probably involve
a bit of perl programming though.

> My other thing is I am interested in how greenstone creates it's
> default 'format' strings; I want to modify the default one for
> 'AZCompactList'.

The defaults are compiled into the code. The default for VList is in the
get_default_formatstring() function of gsdl/src/recpt/vlistbrowserclass.cpp
while that for HList is in the corresponding function in