usage: export.py [-h] [-v] [-d] [-t {korp}] [-l] [-r REVISION] [-s SAVEDIR]

                 uuid

 

positional arguments:

  uuid                  UUID of document to export

 

optional arguments:

  -h, --help            show this help message and exit

  -v, --verbose         show informational messages

  -d, --debug           show debugging messages

  -t {korp}, --type {korp}

                        optional export profile with special ZIP layout or

                        metadata filters

  -l, --lang            add language prefix to zipped path

  -r REVISION, --revision REVISION

                        specify revision to export (default: last)

  -s SAVEDIR, --savedir SAVEDIR

                        save ZIP file in this directory (must exist)

 

                        

The export tool exports documents as a ZIP file containing a directory based on the document's UUID and revision number and the ALTO XML files named after their respective page number.

 

Optionally, the ZIP file can add the language (ISO code) as a prefix so when unzipping a lot of files, they naturally end up in folders by language.

 

Most of the code is inside the application exporter package: app/exporter/

 

The `-t` switch enables to specify specific rules. Valid values come from the list in app/exporter/metadata_filter.py. For now, this option adds a `dc.xml` file to ZIP file; this file contains a filtered dump of DSpace Dublin Core metadata (if such exists in the database!).

 

See also:

    dscacher.py: get/sync Dublin Core metadata from DSpace

    query.py: for a way to generate a list of UUIDs that can be fed to the exporter