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 TEXTPlug.pm (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 TEXTPlug.pm).

Regards,

Michael

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
> <http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com>
> to share photos without annoying attachments.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>