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

Fix borrowing for patrons in a consortium #48

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Conversation

attemoi
Copy link
Contributor

@attemoi attemoi commented Apr 18, 2024

Description

The licensepool query for patron /borrow endpoint does not include collections from the default library, resulting in the following error when patron tries to borrow books:

WARNING problem_detail.py "The item you're asking about (ISBN/9789515246646) isn't in this collection."

This commit changes the query to include the collections from the default library.

Motivation and Context

https://jira.lingsoft.fi/browse/SIMPLYE-263 - Implement custom lane management for local librarians

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

The licensepool query for patron `/borrow` endpoint does not include
collections from the default library, resulting in the following
error when patron tries to borrow books:

`WARNING problem_detail.py "The item you're asking about (ISBN/9789515246646) isn't in this collection."`

This commit changes the query to include the collections from the
default library.
@attemoi attemoi merged commit 8746904 into main Apr 18, 2024
24 checks passed
@attemoi attemoi deleted the bugfix/borrowing branch April 18, 2024 06:48
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.

2 participants