X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FExternal%2FOverDrive.pm;h=efc663f893a9b1daa2847f0c04509d3888743d44;hb=9d6d641d1f8b77271800f43bc027b651f9aea52b;hp=9044169b59a8a4b1361346b8caf5a71df9d7c014;hpb=658f603511e119fbcfa3d2581c804d0a0edd985f;p=srvgit diff --git a/C4/External/OverDrive.pm b/C4/External/OverDrive.pm index 9044169b59..efc663f893 100644 --- a/C4/External/OverDrive.pm +++ b/C4/External/OverDrive.pm @@ -21,7 +21,7 @@ use strict; use warnings; use Koha; -use JSON; +use JSON qw( from_json ); use Koha::Caches; use HTTP::Request; use HTTP::Request::Common; @@ -32,7 +32,6 @@ BEGIN { require Exporter; our @ISA = qw( Exporter ) ; our @EXPORT = qw( - IsOverDriveEnabled GetOverDriveToken ); } @@ -63,23 +62,6 @@ This module provides content search for OverDrive, =over -=item IsOverDriveEnabled - -Returns 1 if all of the necessary system preferences for OverDrive are set. - -=back - -=cut - -sub IsOverDriveEnabled { - return ( - C4::Context->preference( 'OverDriveClientKey' ) && - C4::Context->preference( 'OverDriveClientSecret' ) - ); -} - -=over - =item GetOverDriveToken Fetches an OAuth2 auth token for the OverDrive API, reusing an existing token in