Configuration

Default configuration of Invenio-SIPStore module.

invenio_sipstore.config.SIPSTORE_AGENT_FACTORY = 'invenio_sipstore.api.SIP._build_agent_info'

Factory to build the agent, stored for the information about the SIP.

invenio_sipstore.config.SIPSTORE_AGENT_JSONSCHEMA_ENABLED = True

Enable SIP agent validation by default.

invenio_sipstore.config.SIPSTORE_ARCHIVER_DIRECTORY_BUILDER = 'invenio_sipstore.archivers.utils.default_archive_directory_builder'

Builder for archived SIPs.

invenio_sipstore.config.SIPSTORE_ARCHIVER_LOCATION_NAME = 'archive'

Name of the invenio_files_rest.models.Location object, which will specify to the archive location in its URI.

invenio_sipstore.config.SIPSTORE_ARCHIVER_METADATA_TYPES = ['json']

List of metadata types (SIPMetadataType.name) to include in archiving.

invenio_sipstore.config.SIPSTORE_ARCHIVER_SIPFILE_NAME_FORMATTER = 'invenio_sipstore.archivers.utils.default_sipfile_name_formatter'

Filename formatter for the archived SIPFile.

invenio_sipstore.config.SIPSTORE_ARCHIVER_SIPMETADATA_NAME_FORMATTER = 'invenio_sipstore.archivers.utils.default_sipmetadata_name_formatter'

Filename formatter for archived SIPMetadata.

invenio_sipstore.config.SIPSTORE_BAGIT_TAGS = [('Source-Organization', 'European Organization for Nuclear Research'), ('Organization-Address', 'CERN, CH-1211 Geneva 23, Switzerland'), ('Bagging-Date', None), ('Payload-Oxum', None), ('External-Identifier', None), ('External-Description', 'BagIt archive of SIP.')]

Default list of BagIt tags that will be written.

invenio_sipstore.config.SIPSTORE_DEFAULT_AGENT_JSONSCHEMA = 'sipstore/agent-v1.0.0.json'

Default JSON schema for extra SIP agent information.

For more examples, you can have a look at Zenodo’s config: https://github.com/zenodo/zenodo/tree/master/zenodo/modules/sipstore/jsonschemas/sipstore

invenio_sipstore.config.SIPSTORE_DEFAULT_BAGIT_JSONSCHEMA = 'sipstore/bagit-v1.0.0.json'

Default JSON schema for BagIt archiver.

invenio_sipstore.config.SIPSTORE_FILEPATH_MAX_LEN = 1024

Max filepath length.

invenio_sipstore.config.SIPSTORE_FILE_STORAGE_FACTORY = 'invenio_files_rest.storage.pyfs.pyfs_storage_factory'

Archived file storage factory.