DOKK / manpages / debian 12 / libwebservice-ils-perl / WebService::ILS::OverDrive.3pm.en
WebService::ILS::OverDrive(3pm) User Contributed Perl Documentation WebService::ILS::OverDrive(3pm)

WebService::ILS::OverDrive - WebService::ILS module for OverDrive services

    use WebService::ILS::OverDrive::Library;
    or
    use WebService::ILS::OverDrive::Patron;

WebService::ILS::OverDrive::Library - anonymous discovery services - no individual user credentials required

WebService::ILS::OverDrive::Patron - discovery and circulation services that require individual user credentials

See WebService::ILS

Additional constructor params:

"test" => if set to true use OverDrive test API urls

Additional input params:

"no_details" => if true, no metadata calls will be made for result items;
only id, title, rating and media will be available

See <https://developer.overdrive.com/apis/search>

For iterating through search result pages. Each native_search_*() method accepts record returned by any native_search*() method as input.

Example:

    my $res = $od->native_search({q => "Dogs"});
    while ($res) {
        do_something($res);
        $res = $od->native_search_next($res);
    }
    or
    my $res = $od->native_search({q => "Dogs"});
    my $last = $od->native_search_last($res);
    my $next_to_last = $od->native_search_prev($last);
    my $first = $od->native_search_first($next_to_last)
    # Same as $od->native_search_first($last)
    # Same as $res

Example:

    my $res = $od->native_search({q => "Dogs"});
    foreach (@{ $res->{products} }) {
        my $meta = $od->native_item_metadata($_);
        my $availability = $od->native_item_availability($_);
        ...
    }

Copyright (C) Catalyst IT NZ Ltd Copyright (C) Bywater Solutions

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Srdjan JankoviX <srdjan@catalyst.net.nz>

2022-11-29 perl v5.36.0