Check in and out
Let patrons and staff borrow and return physical material, with the answers a self-service machine or a sorter needs.
2.16.1 Check out physical material
SupportedLend an item to a patron.
What you can build
Borrowing at a self-service machine, at the staff desk or on the patron's own phone, by RFID or barcode. When a loan has conditions, such as a lending fee, the patron accepts them in the same flow. A machine can keep lending while the library system is out of reach and register the loans afterwards.
Typical flow
- The patron is identified, either by logging in (2.2.1) or by their card number and, where required, a password.
- The item is scanned, and the client calls
Checkoutwith the item's ID, the patron, the branch and the time the patron acted. - If
statusisneeds_, the client shows every entry inacknowledgement acknowledgement.to the patron.conditions - When the patron accepts, the client sends the same checkout again with
acknowledgement..code - If
statusiscompleted,checkoutholds the loan, includingdue. If it isDate failed,reasonsays why.
What the API provides
- The client must find
circulation.set to true incheckout. is Enabled Getbefore it callsConfiguration Checkout. - When the request is understood, the answer is
200. The outcome is instatus:completed,needs_oracknowledgement failed. An unknown item isfailedwithitem_, not anot_ found 404. - A condition is a
lending_(withfee amountandcurrency),previously_(the patron has had the title before), or achecked_ out messageto accept. Onecodecovers them all. It can be used once and expires atexpires.At - Reasons for
failedincludeitem_,not_ lendable item_,on_ loan item_,reserved_ for_ other_ patron patron_,blocked patron_,owes_ fees patron_,loan_ limit_ reached patron_andexpired acknowledgement_. Treat an unknown reason asrejected unknownand showmessage. - A patron identified by card number gets
patron_for any problem with the identity, so nobody can find out which card numbers exist.authentication_ failed - Sending the same checkout again is safe. If the patron already has the item, the answer is
completedwith that loan. - Offline: with
circulation., a machine can sendcheckout. offline. is Allowed checkout.with theoffline dueit gave the patron. It must identify the patron by card number, andDate defaultgives the loan period to use.Loan Period Days message.is shown to the patron. Sendtext ui_to choose its language.language
Calls in the API
- Enabled in the configuration
-
GetConfiguration
2.16.2 Check in physical material
SupportedRegister a returned item and tell where it goes next.
What you can build
Returns at a self-service machine, a sorter or the staff desk. The answer tells where the item belongs and whether a person needs to look at it, so a sorter can route it straight away.
Typical flow
- The item is scanned, and the client calls
Checkinwith the item's ID, the branch and the time it was returned. - If
statusiscompleted,checkinholds the result. If it isfailed,reasonsays why. - The item is routed by
permanent,Location sortingandCode needs.Staff
What the API provides
- The client must find
circulation.set to true incheckin. is Enabled Getbefore it callsConfiguration Checkin. - When the request is understood, the answer is
200. The known reasons forfailedareitem_,not_ found item_,not_ on_ loan item_andbelongs_ to_ other_ library unknown. Treat any other reason asunknownand showmessage. permanentis where the item is normally kept: an item that belongs to another branch goes there.Location needsis true when a person has to look at the item, for example when it is damaged.Staff sortingcarries the provider's own bin value, agreed between the library, the provider and the sorter supplier.Code feeslists fees the checkin created, for example an overdue fine.- Sending the same checkin again is safe:
item_on a retry means the item is already back.not_ on_ loan - Offline: with
circulation., a machine can sendcheckin. offline. is Allowed checkin.set to true for a return it has already taken in.offline securityinTags. is Disabled Gettells whether the library uses security tags. If not, the client should not arm them at checkin.Configuration
Calls in the API
- Enabled in the configuration
-
GetConfiguration
2.16.3 Override check out rules
Not yetOverride a rule that would otherwise stop a checkout.
2.16.4 Change due date
Not yetChange the due date of a loan.