link_repositories
Bulk-link multiple sources to their repositories in one call. Each row reports linked, already_linked, missing, or error.
Instructions
Link many sources to their repositories in one call -- a sweep.
Each row is link_repository: its own write and transaction, so a failed row does not stop the rest. Each row reports linked, already_linked, missing or error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Rows of {source, repository, call_number?, media_type?}. | |
| allow_new_type | No | Accept a type that is neither a Gramps standard type nor one of the tree's custom types, creating it as a new custom type. Only when meant: a near-miss is refused with the closest names. |