Upgrade DOI Registration Manager
#540 (closed) describes the updated logic to report to GLIS DOI service the Method and Progenitor DOI for accessions and inventories.
Accession DOI
It takes into account AccessionSource records instead of relying on MCPD. For accessions we determine the method based on accession source records. The effective source is determined as follows:
- Use
COPYorVARIANTfirst, - Then
DONATED - Then
COLLECTEDorDEVELOPED
The actual code for the method is obtained from MCPD translation of the effective accession source. See #542 (closed).
Then load PROGDOI accession names (see #541 (closed)). If there are no names of this type, then use method = 'obin' (Inherited) since we cannot report progdoi.
If there are no source records for the accession, or no PROGDOI names, use method = 'obin' (Inherited).
Inventory DOI
Described in #543 (closed).
Add pagination
The code uses unpaged() to load and process all records from the database. GLIS DOI Registration service processes requests at a limited rate, please use page size of 100.