Re: [greenstone-users] unable to build cds/isis collection

From Michael Dewsnip
DateFri, 12 Mar 2004 09:51:10 +1300
Subject Re: [greenstone-users] unable to build cds/isis collection
In-Reply-To (Pine-LNX-4-53-0402231601130-28422-ncsi-iisc-ernet-in)
Hi Francis,

OK, I think I've tracked this down. This problem occurs on Windows 95/98/ME when you have installed Greenstone in a location where the path contains a space (eg. "C:Program Filesgsdl"). When the ISISPlug tries to run the IsisGdl program, the path of the .mst file is not quoted, and the file cannot be found.

I've fixed this for the next release (coming soonish), but for now you can easily make the fix yourself. You need to open the ISISPlug.pm file in your Greenstone perllibplugins folder with a program like Wordpad (Notepad is no good). Then scroll down until you find this line:

    sub read_file {

A few lines after it is this line:

    open(FILE, "IsisGdl $filename |");

You need to change it to this:

    open(FILE, "IsisGdl "$filename" |");

Then save the file and try to build your collection again.

Hope this works,

Michael
 
 

Francis Jayakanth wrote:

Hello Michael:

Thanks for the reply.

I tried renaming cds.mst and cds.fdt as CDS.mst and CDS.fdt but it doesn't
help. I continue to get the same error message :

"Isisgdl - This program has performed an illegal operation and will be
shutdown"

The message recorded in the 'fail.log file is:

CDS.mst: ISISplug: file contains no data.

For your information, I'm trying to build this collection on a system
running Windows 98 OS.

Many thanks for your help.

 - Francis

On Tue, 17 Feb 2004, Michael Dewsnip wrote:

> Dear Francis,
>
> Sorry for the slow reply to your e-mails. Thanks for asking your question on
> the list, however, as it means others can benefit from the answers and offer
> their own suggestions.
>
> > I'm trying to build a GSDl collection from a cds/isis database based on
> > the model for cds/isis database available at:
> >
> > http://www.sadl.uleth.ca/nz/cgi-bin/library?a=p&p=about&c=isis-e
> >
> > [Something is amiss with this collection because the search feature says
> > "Search for _idx_ which contain" instead of listing all the indexes
> > available].
>
> It looks like the link to this collection on the SADL mirror isn't quite
> right. Try:
>
>
> http://www.sadl.uleth.ca/nz/cgi-bin/library?a=p&p=about&c=isis-e&ct=1&qt=1&qto=3
>
> Or, go to http://www.nzdl.org/nz and choose the ISIS collection.
>
> The cause of this problem is that the ISIS collection is a MGPP collection,
> and form-based searching is provided. This means the search box is suppressed
> on the collection front page, and this requires the extra arguments to the
> link.
>
> I'll fix the SADL mirror when I get a chance; thanks for pointing this out.
>
> > How should i go about in building a collection for the sample cds/isis
> > database, 'cds'.
> >
> > I'm trying to build the collection in the command prompt. mkcol.pl command
> > goes through without any problem. After the first step I get into the
> > collect folder. my collection name is 'isis'. I'm using the 'cds'
> > sample database. I believe same database has been used to build a cds/isis
> > collection available at http://www.sadl.uleth.ca/nz/cgi-bin/library. After
> > I copy cds.mst and cds.fdt into import folder and execute the command perl
> > -S import.pl isis, following messages are displayed:
> >
> > RecPlug: getting directory c:program filesgsdlcollectisisimport
> > RecPlug: CDS.MST
> > ISISPlug: Error: CDS.MST contains no text
> > RecPlug - CDS.FDT
> >
> > ***********
> > import Complete
> > *********
> >
> > * 1 document was considered for processing
> > * 0 were processed and included in the collection
> > * 1 was rejected
> >   See fail.log....
> >
> > Isisgdl pop-up window comes up with the message:
> >
> > This program has performed an illegal operation and will be shutdowm
>
> OK, you're doing everything right. The problem is that the IsisGdl program we
> use expects the filename extensions to be lowercase (!). So, try renaming the
> files to CDS.mst and CDS.fdt, and see if you have more success.
>
> I was hoping not to have to change the IsisGdl program, but this definitely
> needs fixing for the next release.
>
> All the best,
>
> Michael
>
>

_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users