Releases: collectionspace/cspace-config-untangler
mediaFileURI field added to CSV templates, field report
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
- 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
v1.2.1 add test
Validate mappers
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
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
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
- 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-requiremovementReferenceNumber
. The faux-required value is only output in JSON RecordMappers for use bycollectionspace-mapper
and CSV data templates