External Export Framework


This feature is available from CollectiveAccess version 1.7.9.

CollectiveAccess can interact with other external systems, including digital preservation and data backup platforms, using the external export framework. The framework provides a pipeline for assembly, packaging and transmission of CollectiveAccess-managed metadata and media to other applications. A variety of standard formats and protocols are supported and may be mixed and matched to facilitate interoperation.

The framework operates at the record level, creating packages incorporating metadata, media (images, audio, video, documents) and documentation such as checksums and use statements for individual objects, collections and other record types. Record metadata may be generated in any format supported by the metadata export system, including XML, tab, CSV and MARC, and can include metadata from related records. Multiple metadata exports may be included in a single package, as well as any available versions of associated media.

Package formats include interchange standards such as BagIT and widely used container formats such as ZIP. Once packages are created, the framework can transfer them to external systems using protocols such as Secure FTP.

The framework is designed to be extensible. It is possible to add support for additional package formats or data transport protocols by creating software plugins.


Behavior of the external export framework is controlled using targets. A target is a set of configuration defining what data is to be exported, how that data is to be packaged, what criteria trigger creation of a package and where packages are ultimately sent. You can configure as many targets as required, each with its own packaging, destinations and other characteristics.

Targets are defined in the external_exports.conf configuration file. Each target has a unique code and a dictionary of configuration values. Within the dictionary, a few top-level settings define basic parameters:



Example value


The name of the target, for display.

CTDA MODS export


Indicates if the target should be processed or not. Set to 0 to disable the target or 1 to enable.



Defines the table this target exports records from.



An optional list of one or more types for the export table. If set, only records with the specified types will be exported.

[books, documents]


An optional list of one or more access values to filter record on. If set, only records with the specified access values will be exported

[1] (export only records with an access status of “1”, which is typically used to indicate the record is public)

targets = {
        mods_export_to_sftp_server = {
                label = MODS export,
                enabled = 1,

                table = ca_objects,
                checkAccess = [1],

                destination = {
                        type = sFTP,
                        hostname = my-sftp-server@example.net,
                        user = my_user,
                        password = my_password,
                        path = "path/to/where/packages/are/uploaded"

                triggers = {
                        lastModified = {
                                from_log_timestamp = 4/1/2020,
                                #from_log_id = 20000,
                                #query = cooking

                output = {
                        format = BagIT,
                        name = "EXPORT_^ca_objects.idno",
                        content = {
                                mods.xml = {
                                        type = export,
                                        exporter = mods_exporter_with_guid
                                . = {
                                        type = file,
                                        files = {
                                                ca_object_representations.media.original = {
                                                        delimiter = .,
                                                        components = {^original_filename }
                        options = {
                                file_list_template = "^ca_objects.idno, ^filename, ^filesize_for_display, ^mimetype",
                                file_list_delimiter = ";"

Running an export

How to run an export here.

Extending the framework

Overview of plugin system here