gbif / portal-feedback

User feedback for the GBIF API, website and published data. You can ask questions here. 🗨❓
30 stars 16 forks source link

Show occurrence images in order #3292

Open gbif-portal opened 3 years ago

gbif-portal commented 3 years ago

Show occurrence images in order

See https://www.gbif.org/occurrence/3045035358:

This occurrence has a sequence of camera trap images. In the table under multimedia these are shown in the correct order (i.e. the order in which they are listed in the multimedia extension). In the preview at the top, they seem to be shown in random order: 1, 6, 2, 3, 4, 9.

Would it be possible to use the provided order in the preview as well?


Github user: @peterdesmet User: See in registry System: Chrome 88.0.4324 / Mac OS X 10.14.6 Referer: https://www.gbif.org/occurrence/3045035358 Window size: width 1235 - height 766 API log&_a=(columns:!(_source),filters:!(),index:'3390a910-fcda-11ea-a9ab-4375f2a9d11c',interval:auto,query:(language:kuery,query:''),sort:!())) Site log&_a=(columns:!(_source),filters:!(),index:'5c73f360-fce3-11ea-a9ab-4375f2a9d11c',interval:auto,query:(language:kuery,query:''),sort:!())) System health at time of feedback: OPERATIONAL datasetKey: 8a5cbaec-2839-4471-9e1d-98df301095dd publishingOrgKey: 1cd669d0-80ea-11de-a9d0-f1765f95f18b

MortenHofft commented 3 years ago

The website reflects the order in the API https://api.gbif.org/v1/occurrence/3045035358 media field. I'm labelling this an API issue

peterdesmet commented 2 years ago

👋 Can I bring this one to your attention again? Having the images be displayed in order chronological would be very useful, especially since we're currently writing a Guide on how to publish camera trap data to GBIF (under contract for GBIF).

MortenHofft commented 2 years ago

I suspect this has to do with how Elastic search handles order in arrays? @muttcg you are probably the best to answer this.