Issue 18607

Field name 'occurrenceDetails' coming back as 'http://unknown.org/occurrenceDetails'

18607
Reporter: feedback bot
Assignee: cgendreau
Type: Bug
Summary: Field name 'occurrenceDetails' coming back as 'http://unknown.org/occurrenceDetails' 
Resolution: Duplicate
Status: Closed
Created: 2016-06-23 19:21:45.985
Updated: 2016-07-01 10:15:43.833
Resolved: 2016-07-01 10:15:29.854
        
        
Description: The occurrence search method returns a json object with a wrong field name:

http://api.gbif.org/v1/occurrence/search?datasetKey=d415c253-4d61-4459-9d25-4015b9084fb0&catalogNumber=02104113

Please look for 'occurrenceDetails'. The verbatim content seems okay, so maybe there is something going on during the serialization to json:

http://www.gbif.org/occurrence/1097037168/verbatim

Thanks,

Gustavo.

*Reporter*: Gustavo Carvalho
*E-mail*: [mailto:gustavo.bio@gmail.com]]]>
    


Author: cgendreau
Comment: occurrenceDetails is not a DarwinCore Field
Created: 2016-06-27 10:28:29.955
Updated: 2016-06-27 10:28:29.955


Author: kbraak@gbif.org
Created: 2016-06-27 10:43:17.426
Updated: 2016-06-27 10:43:17.426
        
On [2011-10-16|http://rs.tdwg.org/dwc/terms/history/decisions/] dwc:occurrenceDetails was deprecated in favor of dcterms:references.

dwc:occurrenceDetails needs to be added to our [DwcTerm enum|https://github.com/gbif/dwc-api/blob/master/src/main/java/org/gbif/dwc/terms/DwcTerm.java] and marked as replaced by dcterms:references. Both these terms are in different namespaces though, so this may not be possible.

    


Author: mdoering@gbif.org
Comment: our dwc enum does (and should?) only contain current terms to my knowledge, not removed ones. 
Created: 2016-07-01 09:30:06.084
Updated: 2016-07-01 09:30:41.598


Author: mdoering@gbif.org
Comment: as this is just a term "renaming" we normally handle this by adding an "alias" name in the term constructor. It gets tricky though here as this is also a namespace change. We might need to change the term factory to return the new dc:references instead of the occurrenceDetails one
Created: 2016-07-01 09:50:38.926
Updated: 2016-07-01 09:50:38.926


Author: mdoering@gbif.org
Comment: duplicate of POR-2796
Created: 2016-07-01 10:15:29.88
Updated: 2016-07-01 10:15:43.827