invenio-app-ils
invenio-app-ils copied to clipboard
[REQ] Loan extension
As a patron, I can request extension for my loan The user can see his on-going (including expired) loans in his profile page. For each loan, a button labeled e.g. "Request extension" is displayed. The button should extend the loan automatically, unless (order is important):
- the action
extend
is not available for this loan - the number of extensions for this loan has reached the max (configurable)
- the document of the loan is overbooked (more requests than available items)
If the patron cannot request for extension because the button is disabled, she/he should contact the library to address the issue. The library will choose what to do.
As a librarian, I can always extend a loan From the backoffice, the librarian can always extend the loan overriding the checks for max number of extensions and overbooked loan.
- [ ] see specific issue #520
Nice to have It would be nice to model the extension request as real request object so that the patron can create a new extension request even if the conditions above are not met and the librarian can take actions (decide to extend or not) without using e-mails.
it would be nice to develop after we have a user's profile page where they can extend by themselves
The loan extension should be automatically approved if there is no waiting list for this document, otherwise Librarian decides: https://codimd.web.cern.ch/0p-ZhZDnTAycgWGNULBXBQ#UC-User-can-extend-a-loan
As I am trying to explain in my comment there is no structure currently to line up requests for extension. The user either is able to request an extension or not. I understand what they describe and what they want to do, but this feature will require further decisions like where do we store the extend requests, interface for the librarian to handle them etc ...
so as I answered in the comment you've linked. The loan can be automatically approved if there is no waiting list for the book (or if they don't exceed the maximum allowed number. Otherwise we block the extend button for the patron, and it has to be handled via email
The issue text has been updated accordingly.