[Koha-cvs] koha/opac opac-detail.pl [rel_2_2]
Ryan Higgins
rch at liblime.com
Tue Feb 27 18:33:46 CET 2007
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Ryan Higgins <rych> 07/02/27 17:33:46
Modified files:
opac : opac-detail.pl
Log message:
error check on get_amazon_details - bugfix for server error on bad results from amazon
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-detail.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.14.2.21&r2=1.14.2.22
Patches:
Index: opac-detail.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-detail.pl,v
retrieving revision 1.14.2.21
retrieving revision 1.14.2.22
diff -u -b -r1.14.2.21 -r1.14.2.22
--- opac-detail.pl 27 Feb 2007 17:27:12 -0000 1.14.2.21
+++ opac-detail.pl 27 Feb 2007 17:33:46 -0000 1.14.2.22
@@ -101,8 +101,8 @@
$template->param( amazonisbn => $dat->{amazonisbn} );
- my $amazon_details = &get_amazon_details($dat->{amazonisbn});
-
+ my ($amazonerror, $amazon_details) = &get_amazon_details($dat->{amazonisbn});
+ unless ($amazonerror) {
foreach my $result (@{$amazon_details->{Details}}){
$template->param(item_description => $result->{ProductDescription});
$template->param(image => $result->{ImageUrlMedium});
@@ -127,5 +127,6 @@
}
$template->param( SIMILAR_PRODUCTS => \@products );
$template->param( REVIEWS => \@reviews );
+ }
}
output_html_with_http_headers $query, $cookie, $template->output;
More information about the Koha-cvs
mailing list