Loans
Let patrons keep track of what they have borrowed and when it is due, and renew loans themselves.
2.4.1 View loans
SupportedShow the patron's current loans and when each one is due.
What you can build
An overview that makes the loans that need attention stand out: overdue, due today or due soon. Each loan tells whether it can be renewed, so the client can offer renewal next to it.
Typical flow
- The client fetches the loans with
Get.Patron Loans - Each loan is shown with its publication and due date, and the client marks loans that are overdue or due soon.
- The patron opens a loan to see the details or renew it (2.4.3).
What the API provides
dueis the latest date the loan must be returned.Date createdis when the loan was made.Time renew.isstate renewable,not_,renewable renewable_orlater unknown.renew.is how many renewals are left, when it is known.count acquiredtells whether the loan comes fromFrom local_or ancirculation interlibrary_, or isloan unknown.publicationis only fallback data, for when the provider cannot serve the publication throughMetadata Get, for example for interlibrary loans.Publications
Calls in the API
2.4.3 Renew loan
SupportedExtend a loan instead of returning the material.
What you can build
Patrons renew from the loan list or from the loan itself. When a renewal is refused, the response gives the reason, so the client can tell the patron why.
Typical flow
- The client reads
renew.for each loan fromstate Get.Patron Loans - The patron chooses a loan that can be renewed.
- The client calls
Renewwith the loan'sPatron Loan id. - On success, the response is the renewed loan with its
due.Date
What the API provides
- Always check
statusin the response:success, or a reason such astoo_,many_ renewals reservation_,blocked_ renewal renewal_,blocked_ by_ fees user_orblocked denied. - A loan cannot be renewed when another patron has reserved the material. Some libraries only allow renewal a set number of days before the due date.
Renewrenews one loan. Renewing several means one call per loan.Patron Loan