Convertor

This module exists to provide ability to convert from AMQP data structures to Aleph’s data structures, specifically to convert MARCXMLRecord to EPublication simplified data structure.

aleph.convertor.toEPublication(marcxml)[source]

Convert MARCXMLRecord object to EPublication named tuple.

Parameters:marcxml (str/MARCXMLRecord) – MarcXML which will be converted to EPublication. In case of str, <record> tag is required.
Returns:EPublication – named tuple with data about publication.

See also

aleph.datastructures.epublication for details of EPublication, structure.

Previous topic

ISBN validation module

Next topic

Export module

This Page