link_repository
Attach an existing repository to an existing source to record where it is held, with an optional call number. Duplicate links are skipped.
Instructions
Link an existing source to an existing repository that holds it.
Adds a repository reference (with an optional call number) to the source. Both objects must already exist. Duplicate links to the same repository are skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source handle or gramps_id (e.g. 'S0001'). | |
| media_type | No | Medium of the source at the repository, e.g. 'Book', 'Film', 'Electronic', 'Unknown'. | Unknown |
| repository | Yes | Repository handle or gramps_id (e.g. 'R0001'). | |
| call_number | No | Call number / reference within the repository. | |
| 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. |