Loan history
Let patrons look back at what they have borrowed, and decide what their history contains.
2.8.1 View loan history
SupportedShow the material the patron has borrowed before.
What you can build
A history the patron can use to find a title again or remember what they have read. It is only kept when the patron has consented to it.
Typical flow
- The client checks with
Getwhether the patron has given thePatron Consents loan_consent.history - Without the consent, the client can ask the patron to give it (2.11.5).
- The client fetches the history page by page with
Get.Patron Loan History - Each entry is shown with its publication and the date it was borrowed or returned.
What the API provides
before,offsetandsizeare required.sizeis between 1 and 50.- Sort by
added(the default) orTo History Time due, in the orderDate desc(the default) orasc. addedis always set.To History Time checkoutandTime checkinare only set when known.Time manuallytells whether the patron added the entry themselves (2.8.2).Added
Calls in the API
2.8.2 Add to loan history
SupportedLet the patron add material to their loan history themselves.
Typical flow
- The patron chooses a publication, for example on the work page.
- The client calls
Addwith theLoan To Patron Loan History publicationandId manuallyset to true.Added
What the API provides
- When
patron.inloan History. block Manually Adding Loans Getis true, patrons are expected not to be allowed to add loans manually. The default is false.Configuration checkout,Time checkin,Time dueandDate acquiredare optional.From
Calls in the API
- Requires
- 2.2.1 Log in
- Enabled in the configuration
-
GetConfiguration
2.8.3 Remove from loan history
SupportedRemove an entry the patron does not want in their loan history.
Typical flow
- The patron chooses an entry.
- The client calls
Deletewith the entry'sLoan From Patron Loan History id.
What the API provides
- The ID is the loan history ID from
Get, not the loan ID.Patron Loan History