=cut
sub get_amazon_details {
- my ( $isbn, $record, $marcflavour ) = @_;
+ my ( $isbn, $record, $marcflavour,$awsref ) = @_;
+
+ return unless defined $awsref;
+ my @aws = @$awsref;
+ return if $#aws == -1;
#normalize the ISBN
$isbn = _normalize_match_point ($isbn);