API

uiucprescon.getmarc2

class RecordServer(domain: str, alma_api_key: str)

Used for managing the connection with the server API.

get_from_bibid(bibid: str, server: uiucprescon.getmarc2.records.RecordServer) → str

Get the xml from a UIUC bib id.

Parameters
  • bibid – UIUC bibid

  • server – a valid server connection to the ALMA API server

Returns: MARC XML as a string

is_validate_xml(data: str) → bool

Check if the xml file is valid.

Parameters

data – xml data

Returns

returns True if xml matches the schema