Export module¶
This module is used to put data to Aleph. It is based on custom made webform, which is currently used to report new books by publishers.
Most important function from this module is exportEPublication()
,
which will do everything, that is needed to do, to export
EPublication
structure to the Aleph.
Warning
This whole module is highly dependent on processes, which are defined as import processes at the Czech National Library.
Warning
If you want to use export ability in your library, you should rewrite this and take care, that you are sending data somewhere, where someone will process them. Otherwise, you can fill your library’s database with crap.
Note
Source code of the webform is not available at this moment (it was created by third party), but it is possible, that it will be in future. This will highly depend on number of people, which will use this project.
-
class
aleph.export.
PostData
(epub)[source]¶ This class is used to transform data from
EPublication
to dictionary, which is sent as POST request to Aleph third-party webform.Note
Class is used instead of simple function, because there is 29 POST parameters with internal dependencies, which need to be processed and validated before they can be passed to webform.
Parameters: epub (EPublication) – structure, which will be converted (see EPublication
for details).-
_POST
¶ dict
dictionary with parsed data
-
-
aleph.export.
exportEPublication
(epub)[source]¶ Send epub
EPublication
object to Aleph, where it will be processed by librarians.Parameters: epub (EPublication) – structure for export Warning
The export function is expecting some of the EPublication properties to be filled with non-blank data.
Specifically: