Re: [greenstone-devel] PagedImgPlug

From Michael Dewsnip
DateFri, 10 Sep 2004 16:44:17 +1200
Subject Re: [greenstone-devel] PagedImgPlug
In-Reply-To (000201c49439$410882a0$aa5d010c-DIEGOS)
Hi Diego,

Yes, you're right. Try editing your gsdl/perllib/plugins/PagedImgPlug.pm file, and change line 295 from

my ($id) = $srcfile =~ /^([^.]*)/; # the new file name without an extension

to

my $id = $srcfile;
$id =~ s/.([^.]*)$//; # the new file name without an extension

and see how you get on.

Regards,

Michael

Diego Spano wrote:

> I think that PagedImgPlug has a bug. If the .item file contains a dot in
> its name (suppose "gs2.50.item") then this document will not be indexed
> by Greenstone. The same occurs when the value for Title metadata inside
> .item file has a dot, ie: "Greenstone 2.50 Guide". Is it possible? Find
> attached a .item file that I used with a document. If I remove dots from
> both the filename and Title metadata, then I can process it.
>
> Any help?
>
> Thanks
>
> Lic. Diego Spano
> Archivo Digital
> Secretaria de DD. HH.
> Ministerio de Justicia, Seguridad y DD. HH
> djspano@jus.gov.ar
>
> ------------------------------------------------------------------------
> Name: MontenegrodeMarquezAliciaMarta(1er.Cuerpo).item
> MontenegrodeMarquezAliciaMarta(1er.Cuerpo).item Type: unspecified type (application/octet-stream)
> Encoding: 7bit
>
> ------------------------------------------------------------------------
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel