koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/opac opac-detail.pl [rel_2_2]


From: Ryan Higgins
Subject: [Koha-cvs] koha/opac opac-detail.pl [rel_2_2]
Date: Tue, 27 Feb 2007 17:33:46 +0000

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 => address@hidden );
        $template->param( REVIEWS => address@hidden );
+       }
 }
 output_html_with_http_headers $query, $cookie, $template->output;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]