Bug 5092 - No results when searching by LC Call Number: in Z39.50 Server
Summary: No results when searching by LC Call Number: in Z39.50 Server
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Z39.50 / SRU / OpenSearch Servers (show other bugs)
Version: master
Hardware: All All
: PATCH-Sent (DO NOT USE) normal (vote)
Assignee: Katrin Fischer
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 12:00 UTC by smustafa
Modified: 2012-10-25 22:52 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
proposed patch (2.67 KB, application/octet-stream)
2010-08-08 19:30 UTC, Katrin Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smustafa 2010-08-05 12:00:09 UTC
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
Comment 1 Owen Leonard 2010-08-05 12:50:09 UTC
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
Comment 2 Katrin Fischer 2010-08-08 19:30:49 UTC
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
Comment 3 Katrin Fischer 2010-10-06 22:20:06 UTC
Testes successfully on current heaad, closing bug.