Re: [greenstone-users] Get metadata from .txt file

From Michael Dewsnip
DateTue, 14 Feb 2006 16:34:04 +1300
Subject Re: [greenstone-users] Get metadata from .txt file
In-Reply-To (20060210004003-81453-qmail-web33210-mail-mud-yahoo-com)
Hi John,

By default TEXTPlug uses the first line of the file as the title. To get
the author extracted from the second line you will need to add a bit of
Perl code into (in the Greenstone "perllib/plugins"
directory) to do this. The code for doing this will be very similar to
the code getting the title (which is at about line 90 of



W. John wrote:

> Hello,
> I?m using Greenstone to do a collection of a number of .txt files. I
> was wondering about something. In my case, each of the .txt files
> start with TITLE and AUTHOR (first two lines of the file), followed by
> other information. Is there is any way to take the TITLE and AUTHORS
> from the text file and automatically assign those values to the metadata?
> Thanks.
> --John
> ------------------------------------------------------------------------
> Yahoo! Mail
> Use Photomail
> <*>
> to share photos without annoying attachments.
>greenstone-users mailing list