Add option to skip posting of records to curated area, if a "similar" record already exists #37

Merged
cmo merged 7 commits from post-only-changed into master 2026-03-31 15:08:13 +00:00

2026-03-27

Christian Monch
add --only-if-modifying option to post-records
All checks were successful
Test execution / Test-all (push) Successful in 33s
This commit adds the flag --only-if-modifying to
the dtc subcommand `post-records`. If `--curate`
is provided, it will check whether an identical
record already exists in the curated area of the
collection, and ---if the record already exists---
refuse to overwrite it.

Record matching can be "relaxed" by exluding
elements from the matching process. This can be
done using the option `--ignore-spec`.
2026-03-27 13:19:13 +01:00
Christian Monch
add RecordComparer-class
All checks were successful
Test execution / Test-all (push) Successful in 33s
This commit adds the class RecordComparer. Instances
of this class can compare dictionaries, while
ignoring certain elements.

This can be useful, for example, to determine if
two records are equal, except for the content of
the key 'annotations'.
2026-03-27 09:58:54 +01:00