When a publisher leaves the library program, we need to ensure that My Library isn't confusing for the users who were previously authorized to access their content.
For Library Bundle partners, this isn't a problem - when a Bundle resource is marked Not Available, the Bundle authorizations are automatically updated to remove that partner, meaning it no longer shows up in My Library.
For Proxy partners, the current behaviour is very confusing. A Not Available collection still shows up in My Library, with 'Access collection' and 'Extend' buttons:
If we've marked a proxy partner as Not Available, chances are we want to stop providing access to all users immediately.
For manual access partners, the situation is the same except with a 'go to site' button instead:
In the case of manual access partners this is actually sometimes OK - we might not have more accounts to distribute but existing accounts are still active - so we don't want to hide these in all cases.
There's also a pro-active communications angle to this problem, but this task is limited to UI changes.
Acceptance criteria
- When a proxy collection is marked as Not Available, all authorizations for that collection are deleted.
- When a non-proxy, non-bundle collection is marked as Not Available, any expired authorizations for that collection are deleted
- When a non-proxy, non-bundle collection is marked as Not Available, do not show the 'Extend' button in My Library, but retain the authorization.