Suppuse that the Z39.50 ruturns the ISBN with the dashes, for instance: 84-7914-765-2 . In this case, Ruby/ZOOM cuts
the last digits of the ISBN, and returns 84-7914-76 .
The bug is in the file ruby-zoom-0.2.2/src/lib/marc.rb , in the function isbn:
def isbn
if value = @values[20]
value = value.first if value.kind_of?(Array)
if isbn = value['a']
isbn[0..9] # <-- bug here
end
end
end
It is implicitly and wrongly assumed that the ISBN is 10 chars long, however, the ISBN may contain the dashes, and could
be the ISBN-13 (with or without dashes).
The case above, of ISBN with dashes, happens with the following example:
http://www.usc.urbe.it/bib/PUSC_Z39-50.html
hostname 193.43.132.2 port 2632 user SEARCH password SEARCHING2 database USC
pqf is @attr 1=4 "MARIA", syntax USMARC
|