AccessionSource Cooperators
AccessionSource
allows for linking multiple Cooperators
with each source record. The API response to /a/details should include/includes the cooperator data.
Considering that we do not have a separate details page for AccessionSource
, it is best that we include a <Table
with source cooperators just below the "Accession Source" section and before the "Pedigree":
The new <AccessionSectionTable
will include:
source.sourceTypeCode
source.id
- the usual
Cooperator
table fields
The source of data for this table is calculated from accession.sources
array.
The form is simple: the user selects one of the existing accession.source
records from a dropdown (this provides the accessionSource.id
) and then a Cooperator autocompleter (provides cooperator.id
). The Save button instructs the API to link the cooperator to the source record. A button to "Add new cooperator" should be available (we already have that in other forms).