[Koha-devel] zebra oddity

Chris Cormack chris at bigballofwax.co.nz
Wed Aug 11 12:25:03 CEST 2010


On 11 August 2010 21:49, Colin Campbell <colin.campbell at ptfs-europe.com> wrote:
> On 11/08/10 10:33, Chris Cormack wrote:
>> On 11 August 2010 21:12, Colin Campbell <colin.campbell at ptfs-europe.com> wrote:
>>> Hi,
>>>  found a weird bug in retrieving author names via ZOOM. It was
>>> originally reported to me as a bug manifesting in the output of
>>> cloud-kw.pl that in the resulting cloud authors with surnames beginning
>>> in C were appearing in truncated form i.e. hristie, Agatha rather than
>>> Christie, Agatha. A bit of experimentation shows that the query being
>>> generated:
>>>
>>> my $ss = $zbiblio->scan_pqf( '@attr 1=Author @attr 4=1 @attr 6=3 "a"');
>>>
>>> which should pull author names is stripping initial C out of the field (
>>> so that Christie is returned as hristie and filed as such).
>>
>> And it only does this using ZOOM, ie if you do that query using yaz it
>> behaves correctly?
>
> yaz-client shows the same error when scanning with 6=3
> C.
>
>
Hmm  I can't seem to replicate it


22:15 ~/git/koha.git (translation)$ yaz-client
unix:/home/chris/koha-dev/var/run/zebradb/bibliosocket

Z> base biblios

Z> scan @attr 1=Author @attr 4=1 @attr 6=3 "chris"
Received ScanResponse
20 entries, position=1
* Chris, Teresa (1)
  Chrisp, Peter (5)
  Christenberry, Judy (1)
  Christensen, John (1)
  Christian, Frederick H (1)
  Christian, Glynn (1)
  Christiansen, Bob (1)
  Christiansen, Tony (1)
  Christie, Agatha (15)
  Christie, Amanda (4)
  Christie, Anne (2)
  Christie, Gregory (1)
  Christie, Joan (1)
  Christie, John B. T (1)
  Christie, William (1)
  Christofferson, April (3)
  Christopher, Henry (1)
  Christopher, Shane (2)
  Chryssicas, Mary Kaye (1)
  Chuckry, Chris (1)
Elapsed: 0.231484

Chris


More information about the Koha-devel mailing list