Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 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

...

Business Logic

Formats

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

Clean-up

The merged files ingested as records are automatically logically deleted after 2 weeks.

...