Koha::ExternalContent::OverDrive
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);
A (very) thin wrapper around WebService::ILS::OverDrive::Patron
Takes "OverDrive*" Koha preferences
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:
Input: url of the page from which OverDrive authentication was requested Returns: Post OverDrive auth return handler url (see SYNOPSIS)
To be called in external/overdrive/auth.pl upon return from OverDrive Granted auth
To be called to check auth of patron using OverDrive Patron Authentication method This requires a SIP connection configured with OverDrive
Input: id of the item to download Returns: Fulfillment URL for reidrection
Returns boolean
Removes stored OverDrive token
CatalystIT