Opened 9 years ago

Last modified 9 years ago

#1502 new enhancement

Develop an Alternative Method for Linking Accession-Source-Coop Records

Reported by: Martin Reisinger Owned by: Kurt Endress
Priority: medium Milestone: Server Release (TBD)
Component: Dataviews (CT) Version: N/A
Severity: Keywords: lookups
Cc: Database Engine: N/A
Operating System: N/A

Description

The get_accession_source_cooperator dataview links the source to a cooperator, so it has foreign key links to both the accession source record and the cooperator records. When loading records in the source coop dataview, the user must specify the source record using its value from the accession source lookup. That lookup is a bit complicated since an accession can have multiple sources and distinguishing them apart is tricky. So the lookup for a source is something like "PI 536894 DONATED 07/14/1987".

We should consider that the CT accept numeric IDs in lookup fields as an alternative form of input. In that case, you'd use the accession_source_id, shown as Accession Source ID in the accession source dataview. When the CT fails to find a matching string in lookup table under display_member, check the value_member if the input is an integer. In many cases it would be easier to use the integer ID value than the cumbersome lookups.

Alternatively, I could make a special raw dataview for accession source coop that doesn't use a lookup on the source field so you could just use the ID number.

Change History (1)

comment:1 by Kurt Endress, 9 years ago

Milestone: 1.10.2 → Server Release (TBD)
Note: See TracTickets for help on using tickets.