]> git.koha-community.org Git - koha.git/commit
bug 3219: handle variation in Amazon responses
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 26 May 2009 19:20:03 +0000 (14:20 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 27 May 2009 12:06:20 +0000 (07:06 -0500)
commit3cfa84362f3d363756f9ca87e781a11013ff60af
tree51e95438616b7c635a190f9975b945b648ccbca1
parent7457bc6d10fc52efe4e51d4bc896ae27b09c7105
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