<<

NAME

Koha::ExternalContent::OverDrive

SYNOPSIS

    Register return url with OverDrive:
      base app url + /cgi-bin/koha/external/overdrive/auth.pl

    use Koha::ExternalContent::OverDrive;
    my $od_client = Koha::ExternalContent::OverDrive->new();
    my $od_auth_url = $od_client->auth_url($return_page_url);

DESCRIPTION

A (very) thin wrapper around WebService::ILS::OverDrive::Patron

Takes "OverDrive*" Koha preferences

WebService::ILS::OverDrive::Patron METHODS

Methods used without mods:

error_message()
patron()
checkouts()
holds()
checkout($id, $format)
checkout_download_url($id)
return($id)
place_hold($id)
remove_hold($id)

Methods with slightly moded interfaces:

auth_url($page_url)

  Input: url of the page from which OverDrive authentication was requested

  Returns: Post OverDrive auth return handler url (see SYNOPSIS)

auth_by_code($code, $base_url)

  To be called in external/overdrive/auth.pl upon return from OverDrive Granted auth

auth_by_userid($userid, $password, $website_id, $authorization_name)

  To be called to check auth of patron using OverDrive Patron Authentication method
  This requires a SIP connection configured with OverDrive

checkout_download_url($item_id)

  Input: id of the item to download

  Returns: Fulfillment URL for reidrection

OTHER METHODS

is_logged_in()

  Returns boolean

forget()

  Removes stored OverDrive token

AUTHOR

CatalystIT

<<