Hi, OK I found the cause of my Z39.50 search problem but I'm going to need someone with more Perl experience to help me out here. I uncommented all the warn statements in cgi-bin/z3950/search.pl and added a few of my own to find the cause. First off I've been searching only by ISBN and addbiblio.pl appears to build the URL correctly. http://172.16.1.153:8080/cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn= 0842308245 I noticed in the log that the isbn value is correct but the search term incorrectly has just a "/" like this: isbn : 0842308245 at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 107. query @attr 1=7 "/" at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 119. I added this line right after the variable declarations in search.pl: warn "taii :$title-$author-$isbn-$issn"; and discovered the output to be: taii :/-/-0842308245-/ at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 64. Can anyone explain to me why this section of code seems to set uninitialized input parameters to "/"'s? Because from what I can tell it shouldn't! my $title = $input->param('title'); my $author = $input->param('author'); my $isbn = $input->param('isbn'); my $issn = $input->param('issn'); Much Thanks, Mike D. -----Original Message----- From: koha-bounces@lists.katipo.co.nz [mailto:koha-bounces@lists.katipo.co.nz]On Behalf Of Mike Dalgity Sent: March 21, 2007 10:43 PM To: Koha Subject: [Koha] 2.2.8 - Z3950 returning only one incorrect result Hi, I've got a problem where Z3950 seems to be returning only one incorrect result no matter what the search criteria is. I have both AMICUS and LOC setup to be searched. Here's what appears in the logs: # tail -50 koha-error_log something went wrong: No error at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 134. something went wrong: No error at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 134. doing the search at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 144. doing the search at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 144. connection 0: event 1 (connect) connection 0: event 6 (send apdu) connection 0: event 2 (send data) connection 1: event 1 (connect) connection 1: event 6 (send apdu) connection 1: event 2 (send data) connection 1: event 3 (receive data) connection 1: event 7 (receive apdu) connection 1: event 6 (send apdu) connection 1: event 2 (send data) connection 1: event 3 (receive data) connection 1: event 7 (receive apdu) connection 1: event 9 (receive search) connection 1: event 10 (end) z3950.loc.gov at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 160. 1 z3950.loc.gov error @attr 1=7 "/": Unsupported search (3) Missconfigured search, malformed at opac connection 0: event 3 (receive data) connection 0: event 7 (receive apdu) connection 0: event 6 (send apdu) connection 0: event 2 (send data) connection 0: event 3 (receive data) connection 0: event 7 (receive apdu) connection 0: event 9 (receive search) connection 0: event 10 (end) amicus.collectionscanada.ca at /var/www/koha/intranet/cgi-bin/z3950/search.pl line 160. # tail -5 koha-access_log 172.16.1.10 - - [21/Mar/2007:22:28:10 -0400] "POST /cgi-bin/koha/z3950/search.pl HTTP/1.1" 200 1315 172.16.1.10 - - [21/Mar/2007:22:30:06 -0400] "GET /cgi-bin/koha/acqui.simple/addbiblio.pl HTTP/1.1" 200 2974 172.16.1.10 - - [21/Mar/2007:22:30:21 -0400] "POST /cgi-bin/koha/acqui.simple/addbiblio.pl HTTP/1.1" 200 751959 172.16.1.10 - - [21/Mar/2007:22:30:50 -0400] "GET /cgi-bin/koha/z3950/search.pl?oldbiblionumber=&isbn=0842308245 HTTP/1.1" 200 1717 172.16.1.10 - - [21/Mar/2007:22:31:09 -0400] "POST /cgi-bin/koha/z3950/search.pl HTTP/1.1" 200 1315 The single result returned from amicus.collectionscanada.ca is: Roles, an introduction to the study of social relations / Banton, Michael P. 0422714909(pbk) but it should be (it is in both AMICUS and LOC): Endurance : Shackleton's incredible voyage / Alfred Lansing 0842308245 Did I miss something? Thanks for any assistance. Mike D. _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha