foliolib.folio.api.inventory.Isbn

class foliolib.folio.api.inventory.Isbn(tenant: str, okapi: Optional[foliolib.okapi.okapiClient.OkapiClient] = None)

Bases: foliolib.folio.FolioApi

ISBN API

**API for validation and conversion of ISBN-10 and ISBN-13 numbers **

Parameters
  • tenant (str) – Tenant id

  • okapi (OkapiClient, optional) – Instance of OkapiClient. Defaults to None.

Methods

get_convertTo10s(**kwargs)

Converts an ISBN-13 code to an ISBN-10 code

get_convertTo13s(**kwargs)

Converts an ISBN code to an ISBN-13 code

get_validators(**kwargs)

Checks the code is a valid ISBN code.

get_convertTo10s(**kwargs)

Converts an ISBN-13 code to an ISBN-10 code

GET /isbn/convertTo10

Parameters

**kwargs (properties) – Keyword Arguments

Keyword Arguments
  • isbn (str) –

    Example

    • 978-1-930110-99-1

  • hyphens (bool) – (default=False)

Returns

See Schema below

Return type

dict

Raises

OkapiRequestError – Bad Request

Schema

{
  "type": "object",
  "properties": {
    "isbn": "string"
  },
  "additionalProperties": false
}
get_convertTo13s(**kwargs)

Converts an ISBN code to an ISBN-13 code

GET /isbn/convertTo13

Parameters

**kwargs (properties) – Keyword Arguments

Keyword Arguments
  • isbn (str) –

    Example

    • 091698477X

  • hyphens (bool) – (default=False)

Returns

See Schema below

Return type

dict

Raises

OkapiRequestError – Bad Request

Schema

{
  "type": "object",
  "properties": {
    "isbn": "string"
  },
  "additionalProperties": false
}
get_validators(**kwargs)

Checks the code is a valid ISBN code.

GET /isbn/validator

Parameters

**kwargs (properties) – Keyword Arguments

Keyword Arguments

/^ (isbn|isbn10|isbn13)$/ () –

Returns

See Schema below

Return type

dict

Raises

OkapiRequestError – Bad Request

Schema

{
  "type": "object",
  "properties": {
    "isValid": "boolean"
  },
  "additionalProperties": false
}