Comment 8 for bug 1818144

Revision history for this message
Martha Driscoll (mjdriscoll) wrote :

It would be helpful if someone with Advantage titles that are not shared with the consortium could post the JSON here. There is a tool in the support-scripts directory to query Overdrive: overdrive-api-checker.pl. the syntax is:

./overdrive-api-checker.pl --account {account ID} --verbose --token {basic token} --endpoint https://api.overdrive.com/v2/collections/{collection token}/products/{titleID}/availability

The account ID and basic token are in library settings. The title ID for the specific title is in the Marc 037 subfield a. The collection token can be found by querying the library collection API:

./overdrive-api-checker.pl --account {account ID} --verbose --token {basic token} --endpoint https://api.overdrive.com/v1/libraries/{account ID}

It would be helpful to see the V1 JSON as well:

./overdrive-api-checker.pl --account {account ID} --verbose --token {basic token} --endpoint https://api.overdrive.com/v1/collections/{collection code}/products/{titleID}/availability

Here is the JSON for a shared Advantage title:

{
    "accounts": [
        {
            "copiesAvailable": 1,
            "copiesOwned": 1,
            "id": 63,
            "shared": true
        },
        {
            "copiesAvailable": 1,
            "copiesOwned": 1,
            "id": -1
        }
    ],
    "availabilityType": "Normal",
    "available": true,
    "copiesAvailable": 2,
    "copiesOwned": 2,

Library 63 owns a copy that is shared and the consortium (id -1) also owns a copy.