gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
9 stars 6 forks source link

Improvement to randomize gallery display #226

Open albenson-usgs opened 2 years ago

albenson-usgs commented 2 years ago

This is a minor idea for improvement. I wanted to find images of bird specimens in gbif.us. I went to gbif.us selected scientific name = Aves and Basis of record = Preserved specimen. The results are as expected but the issue is that all of the images coming back are from the same dataset (NMNH) and are primarily notebook images. I clicked "More" at the bottom several times and it's still images all from the same dataset. It would be nice if this was a randomized view from many different datasets so that it would be a variety of the type of images. Or if you had some way to page through the images to find a section more suited to your needs (e.g. the first 3 pages are all from NMNH and not what I'm looking for so I'll skip to page 10 to find ones from a different dataset).

MortenHofft commented 2 years ago

I like the idea and see the point - but I'm not sure how to implement it. If it is random, then paging makes no sense since it could be the same images again. I get it conceptually, I'm just not sure on the technical implementation.

So to ensure consistent meaningful paging they need to be ordered. But what field to order by to get a seemingly random order is tricky. I guess ordering + a jump to page button could be an option. Or a show me 100 random images + a reshuffle button (no paging)

timrobertson100 commented 2 years ago

Perhaps the ability to facet on / and or remove a dataset from the search results may help? It's quite easy to find on gbif.org using that approach.

At some point, it might be worth running a simple image classifier, so we can add some filters on image type (herbarium sheet, label, scanned page, pinned specimen etc)

albenson-usgs commented 2 years ago

Just to clarify I meant those as two separate options. Option 1 - randomize the images Option 2 - create pagination for the gallery

I'm not sure if one of those would be preferable/easier to implement but either would work for what I was trying to do I believe.

Removing a dataset would also have worked in this case.