Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ekir 299 set removed license as unavailable #138

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

natlibfi-kaisa
Copy link
Contributor

Description

Set all removed licenses to status "unavailable".

Motivation and Context

Old licenses have been used for loans because circulation has had outdated information about them. This is due to the Licenses Info Documents having inaccurate information about checkouts_left. The licenses had actually reached their loan limit and they had been removed from the feed. But because circulation reads the details from License Info Documents during each import to be in sync with the provider, and since that information could not have been read due to removing the licenses, the licenses were left as valid ones to be used for loans.
Setting removed licenses to be "unavailable" will cause them to be ignored for loan checkouts and statistics.

How Has This Been Tested?

Unit test.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Transifex translators have been notified. -> N/A

Copy link
Contributor

@natlibfi-psams natlibfi-psams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@natlibfi-kaisa natlibfi-kaisa merged commit 8c95ffc into main Mar 10, 2025
24 checks passed
@natlibfi-kaisa natlibfi-kaisa deleted the EKIR-299-Set-removed-license-as-unavailable branch March 10, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants