Dear All, This is a bug that is currently found in the master/HEAD of Koha [3.2 beta] as of August-05-2010 Steps to reproduce: - Open Search Z39.50 Window - When Adding MARC Record - In the LC Call Number: field enter TH7414 .S65 1997 - Search --It should return no results. The call number is TH7414 .S65 1997 from Library of Congress Online Catalogue. This call number should return the book:Solar energy houses : strategies, technologies Link to Book: http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?v1=3&ti=1,3&Search_Arg=solar%20energy&Search_Code=GKEY^*&CNT=100&type=quick&PID=Q3CvIipfeK68UnK8H4mIGI18x9JTdBA&SEQ=20100805075634&SID=1 == Koha ERROR Log [Thu Aug 05 07:38:22 2010] [error] [client 127.0.1.1] [Thu Aug 5 07:38:22 2010] z3950_search.pl: Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.10.0/ZOOM.pm line 491., referer: http://127.0.1.1:8080/cgi-bin/koha/cataloguing/z3950_search.pl?frameworkcode= [Thu Aug 05 07:38:34 2010] [error] [client 127.0.1.1] [Thu Aug 5 07:38:34 2010] z3950_search.pl: Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.10.0/ZOOM.pm line 491., referer: http://127.0.1.1:8080/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=0 [Thu Aug 05 07:40:29 2010] [error] [client 127.0.1.1] [Thu Aug 5 07:40:29 2010] z3950_search.pl: Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.10.0/ZOOM.pm line 491., referer: http://127.0.1.1:8080/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=0 [Thu Aug 05 07:41:07 2010] [error] [client 127.0.1.1] [Thu Aug 5 07:41:07 2010] z3950_search.pl: Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.10.0/ZOOM.pm line 491., referer: http://127.0.1.1:8080/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=0 [Thu Aug 05 07:42:51 2010] [error] [client 127.0.1.1] [Thu Aug 5 07:42:51 2010] z3950_search.pl: Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.10.0/ZOOM.pm line 491., referer: http://127.0.1.1:8080/cgi-bin/koha/cataloguing/z3950_search.pl?frameworkcode= [Thu Aug 05 07:46:54 2010] [error] [client 127.0.1.1] [Thu Aug 5 07:46:54 2010] z3950_search.pl: Use of uninitialized value in subroutine entry at /usr/local/lib/perl/5.10.0/ZOOM.pm line 491., referer: http://127.0.1.1:8080/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=0
While troublesome, this bug doesn't qualify as critical according to the guidelines: http://bugs.koha-community.org/bugzilla3/page.cgi?id=fields.html#importance
Created attachment 2484 [details] proposed patch There was no code in z3950_search.pl to search for LC call number, only for LC card number. If search for LC card number is needed this could be added easily. I tested with different call numbers from LOC, you can search for the whole LC call number and for parts of it. Example: CALL NUMBER: Q181 .A68 2006 SEARCH FOR: Q181 .A68 2006 Q181 .A68 Q181 My solution uses the attributes from Library of Congress Left-anchored Phrase Search Form: http://www.loc.gov/cgi-bin/zgate?ACTION=INIT&FORM_HOST_PORT=/prod/www/data/z3950/locils1.html,z3950.loc.gov,7090&CI=145226
Testes successfully on current heaad, closing bug.