From fd121af75cc157a08afd5e1fe2c51817d752f69c Mon Sep 17 00:00:00 2001 From: kados Date: Sat, 4 Feb 2006 02:15:52 +0000 Subject: [PATCH] Fixes missing variable in Amazon url --- C4/Amazon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Amazon.pm b/C4/Amazon.pm index 86e5767798..8484c19fcc 100755 --- a/C4/Amazon.pm +++ b/C4/Amazon.pm @@ -59,7 +59,7 @@ sub get_amazon_details { my $af_tag=C4::Context->preference('AmazonAssocTag'); my $asin=$isbn; - my $url = "http://xml.amazon.com/onca/xml3?t=$dev_key&dev-t=&type=heavy&f=xml&AsinSearch=" . $asin; + my $url = "http://xml.amazon.com/onca/xml3?t=$dev_key&dev-t=$af_tag&type=heavy&f=xml&AsinSearch=" . $asin; my $content = get($url); warn "could not retrieve $url" unless $content; my $xmlsimple = XML::Simple->new(); -- 2.39.5