[Koha] One last problem

Phill Hardstaff phillh at spc.int
Wed Apr 13 16:18:06 NZST 2005


OK, again this is Koha 2.2.1 (2.2.2 is the same) on Windows Server 2003 with IIS 6.0 and ActiveState PERL 5.6 ? This was the last thing I had not working (well that I know of anyway) I know this works under Linux but this little piece of code refuses to work on Windows.

Intranet Pages, NPL theme (doesn't matter actually, default will do the same on a member search) Click on Koha Intranet Home. Type in the name of a patron you know exists, click search and I get a 

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

If I use the lookup by First letter on the Patrons page it works OK and will list everything beginning with ? So the problem is where the search field (member) is longer than 1 in length.

So, I take a look at members.pl and find this

if(length($member) == 1)
{
	($count,$results)=BornameSearch($env,$member,$orderby,"simple");
}
else
{
	($count,$results)=BornameSearch($env,$member,$orderby,"advanced");
}


I changed this to

if(length($member) == 1)
{
	($count,$results)=BornameSearch($env,$member,$orderby,"simple");
}
else
{
	($count,$results)=BornameSearch($env,$member,$orderby,"simple");
}


And it now works, why ? I now have a perfect working NPL Intranet Koha on Windows with 2 mods to the code, neither of which I really understand :)

Cheers

Phill

-- 

Phill Hardstaff
MCSA, CCNA, A+, Network+, Inet+, Server+
Senior Support Engineer
Secretariat of the Pacific Community
B.P. D5
Noumea Cedex
98848
New Caledonia

Phone +687-260141
Mobile +687 838091
Fax +687-263818
Email phillh at spc.int
SPC Web Page http://www.spc.int/
_______________________________________________
Koha mailing list
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha




More information about the Koha mailing list