Import sources bib
import_sources_bibRead a BibTeX file's text against a project's register of sources. Without 'take' nothing is written: each entry comes back as an offer — 'new' (a source to add under the entry's key), 'fill' (the register already has the work by one of its identifiers: 'adds' lists the empty fields the entry would fill; 'unchecks' says a checked source would go back to unchecked), 'same' (nothing to add), 'conflict' ('keyTaken': the key is another work's — take it with 'as', a new key; 'twoSources': its identifiers name two sources; 'twice': it is twice in the file) or 'invalid' (no title, or a key a source cannot have). 'differs' names what the register says otherwise — never overwritten — and 'notes' what of the entry could not be read; 'problems' are places in the file that are not entries. Show the person the offers, then call again with the same 'bib' and 'take' — the entries they chose — to write them; each is written on its own and says 'created', 'filled', 'skipped' or 'refused' with the reason. Members of the project who may write only, for 'take'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bib | Yes | The .bib file's text. | |
| take | No | The entries to write, as a JSON array: [{"key":"GS90"},{"key":"Tah81","as":"Tah81b"}] — 'key' the entry's key in the file, 'as' a new key for an entry whose key the register has for another work. Leave out to only see the offers. | |
| project | Yes | The project key, e.g. MATH. |