bug 3219: handle variation in Amazon responses
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 26 May 2009 19:20:03 +0000 (14:20 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:37 +0000 (23:19 +0200)
commitd1c1150e31b68c532a9146d5d595d5e53c950c2e
tree54fe1574476840ce1a0fc9b2385cea5bc6fd61f4
parent880037b7103e6a36f46e64afb410803a46c090b7
bug 3219: handle variation in Amazon responses

An Amazon ItemLookup response can sometimes have
more than one Item element, where the ones after
the first appear to be cross references to items
that have the same ISBN.  Changed parsing so that
those responses are no longer treated like pseudohashes.

This fixes the following crash:

[error] detail.pl: Pseudo-hashes are deprecated at /catalogue/detail.pl line
213., referer: /cgi-bin/koha/catalogue/detail.pl

Which may lead to a nasty:
[error] Out of memory!, referer: /cgi-bin/koha/catalogue/detail.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/External/Amazon.pm
catalogue/detail.pl
opac/opac-detail.pl