From 01ad0e066d9eba7d739576871c2b8e94bf809038 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Mon, 17 Mar 2008 18:46:51 -0400 Subject: [PATCH] wrapping dates in amazon ratings with format_date() Signed-off-by: Joshua Ferraro --- opac/opac-detail.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index a30a6a000f..5c45ef9a14 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -188,6 +188,9 @@ if ( C4::Context->preference("OPACAmazonContent") == 1 ) { my $amazon_details = &get_amazon_details( $xisbn ); my $item_attributes = \%{$amazon_details->{Items}->{Item}->{ItemAttributes}}; my $customer_reviews = \@{$amazon_details->{Items}->{Item}->{CustomerReviews}->{Review}}; + for my $one_review (@$customer_reviews) { + $one_review->{Date} = format_date($one_review->{Date}); + } my @similar_products; for my $similar_product (@{$amazon_details->{Items}->{Item}->{SimilarProducts}->{SimilarProduct}}) { # do we have any of these isbns in our collection? -- 2.39.5