Closed javier-molina closed 7 months ago
@sadeghim could you pull out the source data from the DwCA for this record so we can see whether that image order data is provided to us in the first place?
@peggynewman Just a note that I don't think DwCA has an order field or assumptions for extensions or even core records.
And yes those 3 images are in order in the media.csv:
175917918,StillImage,image/jpeg,https://inaturalist-open-data.s3.amazonaws.com/photos/305781052/original.jpeg,https://www.inaturalist.org/photos/305781052,2023-07-30T12:42:05-07:00,Thomas Mesaglio,iNaturalist,http://creativecommons.org/licenses/by/4.0/,Thomas Mesaglio,305781052
175917918,StillImage,image/jpeg,https://inaturalist-open-data.s3.amazonaws.com/photos/305781029/original.jpeg,https://www.inaturalist.org/photos/305781029,2023-07-30T12:42:02-07:00,Thomas Mesaglio,iNaturalist,http://creativecommons.org/licenses/by/4.0/,Thomas Mesaglio,305781029
175917918,StillImage,image/jpeg,https://inaturalist-open-data.s3.amazonaws.com/photos/305781070/original.jpeg,https://www.inaturalist.org/photos/305781070,2023-07-30T12:42:10-07:00,Thomas Mesaglio,iNaturalist,http://creativecommons.org/licenses/by/4.0/,Thomas Mesaglio,305781070
Now that all images for an occurrence are displayed in the BIE gallery tabs I expect the order to be preserved rather than just the last image displayed in the BIE gallery tab (if that was the case).
On further investigation it appears the order is not preserved when put into SOLR. The image order 1,2,3 becomes 3,1,2 in this example https://biocache.ala.org.au/occurrences/44e45da8-ba26-4c1f-9d6d-8a241114b98e
It could be achieved by creating a new SOLR field that contains the ordering information and updating every gallery and image display page. If continuing, examples of how iNaturalist provides user reordered image information to us is required as the above example only indicates what looks like a default image ordering, numerical ascending. I don't think it is worth the effort given that we no longer pick one image to display but rather include them all (per occurrence) in the BIE gallery. Be aware that reloading the BIE gallery reorders the gallery images.
In summary the requirements of the originating issue are already met, that is the display of the first iNaturalist image in the BIE gallery.
duplicate of bie-plugin #247 (content below - issue #247 now closed)
Feedback from iNaturalist user about images and how they end up in the species gallery in the BIE:
From this record:
https://biocache.ala.org.au/occurrences/10cbb1ff-26fa-4f82-a2ed-4e3196054ba3
https://www.inaturalist.org/observations/66990199
The images are sorted in a production biocache record by a different order to how they are sorted in iNaturalist. This sort order is important in iNaturalist and it's not related to the date taken.
Production records
id | order on record page | date taken -- | -- | -- 181222eb-fbe2-442c-99f9-2c9d0cf2d531 | 1 | 25 Dec, 2020 00:09:57 (this is the one that went to the BIE) 29f72521-4f1a-48eb-b174-859ec9e4be61 | 2 | 25 Dec, 2020 00:10:39 2ec6b358-fd91-475b-9afb-721dc5bef00b | 3 | 25 Dec, 2020 00:08:33 4ef2829c-1bf6-4726-8b07-cb016a99bc78 | 4 | 25 Dec, 2020 00:09:20 6c5b7619-2b21-471a-a1af-a677c26efaf5 | 5 | 25 Dec, 2020 00:10:03How can we ensure the "first" inaturalist image can get across to BIE now?
potentially too much work for too little gain at this stage. cannot preserve order from source currently - requires lots of work in the backend to make this change. would require an additional field
As user of the ALA and other data source platforms such as iNaturalist, I want the ALA to preserve the order I set for images in the source platform.
Background Currently records in the ALA with images coming from data sources such as iNatdon't preserve the order the images had from source.
See example below
3rd image from iNaturalist displaying in BIE for Hibiscus diversifolius https://bie.ala.org.au/species/https://id.biodiversity.org.au/node/apni/2896715#gallery
iNaturalist images for observation 175917918 (Hibiscus diversifolius) https://www.inaturalist.org/observations/175917918
A more detailed analysis is in https://github.com/AtlasOfLivingAustralia/bie-plugin/issues/247
Requirements Images should preserve the order from the source platform.
While the most common scenario is for images coming from iNaturalist it is important to understand if this affects/apply to other sources: FrogID, NatureMapr, eBird, etc.