Skip to end of banner
Go to start of banner

Batch Exports

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This feature is part of release 24.1

Introduction

Batch exports are Batches that join each record the filter returns into a merged file, for example, a CSV file. The merged file is then ingested as a new record of record type Export and is automatically exported for the user that created the batch. The user then sees the merged file in their downloads in the front end. The contents of the merged file are determined by the chosen format and the profile of the category “Export” which provides what metadata fields are part of the merged file.

Rules

In order to create a batch export the following rules apply

Formats

For now, there is only 1 format, namely CSV.

CSV Export

In this case, the merged file is a CSV file with a row for each record and columns for each chosen metadata field. The CSV export has the following variables

  • Standard properties of Batches (user, filter, etc)

  • The separator between rows: fixed at \n

  • The separator between columns: fixed at ;

  • The separator inside columns: fixed at ,

Headers

The columns in the CSV export are determined by the order in which the Field Definitions appear in the associated profile. As described in the next section, there are multiple corresponding columns for certain Metadata Field Types.

Column formatting

The values are determined by the Metadata Field Types of the columns

Field

Columns

Example columns

Example value

Simple Fields

Single column

Descriptive.Title

Hello world

ListField

Single column who value is the concatenation of the values using another delimeter

Descriptive.Keywords.Keyword

Alice, Bob, Cedric

MultiItemField

Multiple columns, one for each sub-field whose value is the concatenation of its subvalues delimiter

  • Descriptive.Authors.Author

  • Descriptive.Authors.Photographer

  • Alice

  • Bob, Cedric

MapField

Multiple columns, one for each sub-field

  • Head

  • xyz

  • 32

Other Complex Fields

Single column with as value the JSON representation of the field

  • Internal.Browses

 

Example

TBC

Clean-up

The merged files the batch exports create are automatically logically deleted after 2 weeks.

  • No labels