Skip to content

Releases: collectionspace/cspace-config-untangler

mediaFileURI field added to CSV templates, field report

22 Oct 19:39
96267ec
Compare
Choose a tag to compare

The output of write_fields_csv and write_csv_templates for Media record type will now include a mediaFileURI field.

This field is not mapped to XML, so is NOT included in Media RecordMappers.

The inclusion of this field in the CSV template supports the batch ingest of media files via the new CSV Import Tool.

CSpace 6.1 community profile support

22 Oct 18:36
d06fbd1
Compare
Choose a tag to compare
  • Adds the final community profile configs for CSpace 6.1
  • Botgarden/Pottag now has an id number field, so this is now added as a number type to not treat as an authority/vocab/optionlist data source
  • Update command line functions that write out CSVs to not attempt to write if there will be no rows in the file.

Adds a test

22 Oct 18:32
Compare
Choose a tag to compare
v1.2.1

add test

Validate mappers

19 Oct 23:46
9057447
Compare
Choose a tag to compare

Adds a command line function to validate JSON RecordMappers.

The output directory given will be recursively traversed to find .json files. It is expected that all .json files in this directory structure will be RecordMappers.

The initial iteration of the validator checks for:

  • expected top-level keys
  • a URI for every namespace defined for the Mapper
  • a namespace defined for every field mapping

Descriptions of problems making a given RecordMapper invalid are printed to STDOUT. Nothing is printed for valid RecordMappers.

Subdirectory options for commands to write templates and mappers

19 Oct 21:43
7883487
Compare
Choose a tag to compare

Adds --subdirs or -s option to write_csv_templates and write_mappers command line functions.

These will create a subdirectory for each profile inside the specified output directory, and the generated template or mapper for each profile will be saved in its subdirectory.

Omit computedCurrentLocation field from object mappings for batch processing

28 Sep 22:03
e0dad26
Compare
Choose a tag to compare

computedCurrentLocation cannot be imported, so do not output those fields to CSV templates or JSON RecordMappers.

Assigning identifier fields in records where said field is not required

28 Sep 21:22
f37f56e
Compare
Choose a tag to compare
  • Adds command line function report_mappers_without_identifier_field to report record types that do not get assigned an identifier_field. For the community profiles, these are currently limited to botgarden movement and pottag, which do not contain any fields suitable for use as an identifier
  • Adds RecordType.batch_mappings method which assigns "required = y" to suitable identifier field when said field is not required by a record type (e.g. movement records in all profiles except botgarden will faux-require movementReferenceNumber. The faux-required value is only output in JSON RecordMappers for use by collectionspace-mapper and CSV data templates