[Koha] addbiblio.pl prompts to save

Roger Horne roger at hrothgar.co.uk
Fri Aug 17 02:26:08 NZST 2007


On Mon 06 Aug, MJ Ray wrote:

> BUT!
> 
> > > Except if I try to add a Biblio with a Z39.50 search(works) and click the 
> > > "Add record" button I get prompted to save the .pl file.
> > > 
> > > It doesn't execute on the server.
> 
> this is some Apache configuration error.  Check that you have cgid.conf
> and cgid.load in /etc/apache2/mods-enabled and if not, try
>   a2enmod cgid && /etc/init.d/apache2 reload
> but I don't remember the exact solution.

There have been a lot of questions relating to the same subject: how to get
z3950 searches to work.
Like almost all of the others who have had problems I am using Debian etch.

I installed all the Perl modules and yaz 3 from source while using Debian
Sarge. I then for unconnected reasons updated the distribution to Etch. I
then ran installer.pl. It produced on-screen errors (probably because the
default db is mysql5):

DBD::mysql::st execute failed: Invalid default value for 'aqbudgetid'
... and 
DBD::mysql::st execute failed: Invalid default value for 'id' ...

but otherwise ran without problems. Everything seems to run more or less OK.

After configuring the basics I tried to deal with z3950. I entered four
servers but after reading messages in this thread reduced this to LoC alone.
I also made the change MJ Ray suggested above (by linking the two files from
mods-available to mods-enabled and restarting Apache2).

Having read other messages I tried telneting from the computer to several of
the servers: all worked fine. I then tested yaz and it worked: 
yaz-client z3950.loc.gov:7090/voyager 
connected to the LoC server. Entering at the ">" prompt  f 0521606322
produced the full record for the title "Stamp Duty Land Tax" by Michael
Thomas.   

However when I went to the add biblio page and entered the same number in
the ISBN line and clicked on the z3950 search button I got first the box
displaying the name of the server and a button to "search internet". When I
clicked it I got a message asking whether I wanted to open
.../z0350/search.pl (with the type text/x-perl) and to save-as, open or
cancel ...

The koha-error-log is much the same as those found by others:

[Thu Aug 16 14:27:39 2007] [error] [client 217.155.252.94] something went
wrong: No error at /usr/local/koha/intranet/cgi-bin/z3950/search.pl line
135., referer:
http://11ns.co.uk/cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn=0521606322

[Thu Aug 16 14:27:39 2007] [error] [client 217.155.252.94] doing the search
at /usr/local/koha/intranet/cgi-bin/z3950/search.pl line 145., referer:
http://11ns.co.uk/cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn=0521606322

[Thu Aug 16 14:27:40 2007] [error] [client 217.155.252.94] connection 0:
event 10 (end), referer:
http://11ns.co.uk/cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn=0521606322

[Thu Aug 16 14:27:40 2007] [error] [client 217.155.252.94] Library of
Congress at /usr/local/koha/intranet/cgi-bin/z3950/search.pl line 161.,
referer:
http://11ns.co.uk/cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn=0521606322

[Thu Aug 16 14:27:40 2007] [error] [client 217.155.252.94] 0 Library of
Congress error @attr 1=7 "0521606322": Connect failed (10000) Library of
Congress:7090, referer:
http://11ns.co.uk/cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn=0521606322

[Thu Aug 16 14:27:40 2007] [error] [client 217.155.252.94] Premature end of
script headers: search.pl, referer:
http://11ns.co.uk/cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn=0521606322

Any suggestions? I am stuck.

(When I last used koha a few years ago, I did not have any problems using
the "old" z3950.)

Roger
-- 
Roger Horne
roger at hrothgar.co.uk
http://www.hrothgar.co.uk/YAWS/



More information about the Koha mailing list