Issue 10905

Add GenBank type to IdentifierType in common-api

10905
Reporter: kbraak
Type: Task
Summary: Add GenBank type to IdentifierType in common-api
Priority: Major
Status: Open
Created: 2012-02-21 18:18:49.34
Updated: 2016-02-15 13:45:38.257
        
Description: Needed by Occurrence Store:

In order to properly display GenBank Accession Numbers in the Portal, they should be recognized as a type just like LSIDs and DOIs.

This would enable us to better display such IDs (for an occurrence) in the Portal.

For assistance in identifying the structure of a GenBank Accession Number, please see here: http://www.ncbi.nlm.nih.gov/Sitemap/samplerecord.html

I don't think the Accession Number is something we can guess or interpret, it must be identified during indexing and stored appropriately.

Ideally such IDs will be properly stored in the portal database identifier_record table. Each identifier has a type, with GenBank identifiers having type = 5.

Similar issues could be opened up for other types of identifiers that we currently recognize as per the portal's lookup_identifier_type:

mysql> select * from lookup_identifier_type;
+--------+-----------------------------------+
| it_key | it_value                          |
+--------+-----------------------------------+
|      3 | IDENTIFIERTYPE_COLLECTORNUMBER    |
|      4 | IDENTIFIERTYPE_ACCESSIONNUMBER    |
|      1 | IDENTIFIERTYPE_GUID               |
|      2 | IDENTIFIERTYPE_FIELDNUMBER        |
|      5 | IDENTIFIERTYPE_SEQUENCENUMBER     |
|      6 | IDENTIFIERTYPE_OTHERCATALOGNUMBER |
+--------+-----------------------------------+]]>
    


Author: trobertson@gbif.org
Comment: Moving to occurrence store, to be handled appropriately in new processing
Created: 2012-08-29 09:39:25.639
Updated: 2012-08-29 09:39:25.639