Koha Patron

A library patron (borrower) record from the Taylor's Library Koha REST API.

EducationHigher EducationUniversityLibraryInstitutional RepositoryOpen DataMalaysiaAsia

Properties

Name Type Description
patron_id integer Internal patron identifier
cardnumber stringnull Library assigned user identifier
category_id string Internal identifier for the patron's category
library_id string Internal identifier for the patron's home library
firstname stringnull Patron's first name
surname stringnull Patron's surname or last name
preferred_name stringnull Patron's preferred name
email stringnull Primary email address
phone stringnull Primary phone number
mobile stringnull Mobile phone number
date_of_birth stringnull Patron's date of birth
date_enrolled stringnull Date the patron was added to Koha
expiry_date stringnull Date the patron's card expires
city stringnull City or town of primary address
country stringnull Country of primary address
postal_code stringnull Zip or postal code
lang string Language used to send notices
checkouts_count integernull Number of checkouts
overdues_count integernull Number of overdue checkouts
account_balance numbernull Balance of the patron's account
expired boolean If the patron is expired
restricted boolean If any restriction applies to the patron
updated_on stringnull Last modification date
View JSON Schema on GitHub

JSON Schema

taylors-patron-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/taylors/main/json-schema/taylors-patron-schema.json",
  "title": "Koha Patron",
  "description": "A library patron (borrower) record from the Taylor's Library Koha REST API.",
  "type": "object",
  "additionalProperties": false,
  "required": ["patron_id", "category_id", "library_id", "lang"],
  "properties": {
    "patron_id": { "type": "integer", "description": "Internal patron identifier" },
    "cardnumber": { "type": ["string", "null"], "maxLength": 32, "description": "Library assigned user identifier" },
    "category_id": { "type": "string", "maxLength": 10, "description": "Internal identifier for the patron's category" },
    "library_id": { "type": "string", "maxLength": 10, "description": "Internal identifier for the patron's home library" },
    "firstname": { "type": ["string", "null"], "description": "Patron's first name" },
    "surname": { "type": ["string", "null"], "description": "Patron's surname or last name" },
    "preferred_name": { "type": ["string", "null"], "description": "Patron's preferred name" },
    "email": { "type": ["string", "null"], "description": "Primary email address" },
    "phone": { "type": ["string", "null"], "description": "Primary phone number" },
    "mobile": { "type": ["string", "null"], "description": "Mobile phone number" },
    "date_of_birth": { "type": ["string", "null"], "format": "date", "description": "Patron's date of birth" },
    "date_enrolled": { "type": ["string", "null"], "format": "date", "description": "Date the patron was added to Koha" },
    "expiry_date": { "type": ["string", "null"], "format": "date", "description": "Date the patron's card expires" },
    "city": { "type": ["string", "null"], "description": "City or town of primary address" },
    "country": { "type": ["string", "null"], "description": "Country of primary address" },
    "postal_code": { "type": ["string", "null"], "description": "Zip or postal code" },
    "lang": { "type": "string", "maxLength": 25, "description": "Language used to send notices" },
    "checkouts_count": { "type": ["integer", "null"], "description": "Number of checkouts" },
    "overdues_count": { "type": ["integer", "null"], "description": "Number of overdue checkouts" },
    "account_balance": { "type": ["number", "null"], "description": "Balance of the patron's account" },
    "expired": { "type": "boolean", "readOnly": true, "description": "If the patron is expired" },
    "restricted": { "type": "boolean", "readOnly": true, "description": "If any restriction applies to the patron" },
    "updated_on": { "type": ["string", "null"], "format": "date-time", "description": "Last modification date" }
  }
}