Partial fix for Bug 1578: detect material type and don't load COinS unless the materi...
[koha_fer] / C4 / Amazon.pm
old mode 100755 (executable)
new mode 100644 (file)
index 02d3b46..19a92f6
@@ -19,16 +19,22 @@ package C4::Amazon;
 
 use XML::Simple;
 use LWP::Simple;
-
 use LWP::UserAgent;
 use HTTP::Request::Common;
 
 use strict;
-require Exporter;
 
 use vars qw($VERSION @ISA @EXPORT);
 
-$VERSION = 0.02;
+BEGIN {
+       require Exporter;
+       $VERSION = 0.03;
+       @ISA = qw(Exporter);
+       @EXPORT = qw(
+               &get_amazon_details
+               &check_search_inside
+       );
+}
 
 =head1 NAME
 
@@ -38,15 +44,6 @@ C4::Amazon - Functions for retrieving Amazon.com content in Koha
 
 This module provides facilities for retrieving Amazon.com content in Koha
 
-=cut
-
-@ISA = qw(Exporter);
-
-@EXPORT = qw(
-  &get_amazon_details
-  &check_search_inside
-);
-
 =head1 get_amazon_details($isbn);
 
 =head2 $isbn is a isbn string
@@ -99,6 +96,9 @@ sub check_search_inside {
         return $available;
 }
 
+1;
+__END__
+
 =head1 NOTES
 
 =head1 AUTHOR