Re: [greenstone-users] Sections in collections

From Don Gourley
DateWed, 23 Apr 2003 09:15:19 -0400 (EDT)
Subject Re: [greenstone-users] Sections in collections
In-Reply-To (200304231024-AA917572-mail-padusoft-com)
If each section unit is a separate document and you have some metadata
that links sections to their subsections, you can use the Hierarchy
classifier to create a table of contents. But if you want to break up
single non-HTML documents into sections then I think you would need to
write your own plugin to import the documents. Depending on what
format your documents are in, this may not be too difficult; if it is
a text-based format you could inherit from HTMLPlug and override the
process() and extract_metadata() methods, using your own parsing code
but saving the metadata & text for each section as HTMLPlug does.


Sharifah Shasha said:
> Hi List,
> I was wondering if there's another way to section a collection or to have a
> table of contents with a document other than having to write the document in
> HTML. I looked at the greenstone demo and the way it was done is by having
> the document in HTML format.
> Thank you for your time,
> shasha
> _______________________________________________
> greenstone-users mailing list