coralnet
coralnet copied to clipboard
Option for number of results per page in Browse Images/Patches
The option should be displayed on the Browse page. Have a dropdown with choices like 20, 30, 50, 100, 200. Something like that.
The option for results per page (and thumbnail display size, if we want that) can either be:
- A. Strictly part of the search form, meaning it's not saved between sessions
- B. Saved to the database on a per user basis, like the annotation tool settings
- C. Saved via browser cookie, so on a per browser/device basis
I'd say B makes the most sense overall, although it's also the worst option for site visitors (users who aren't logged in). Perhaps the option would be hidden for visitors, and they would just have the default of 20 per page. Alternatively, if we wanted to get fancy, C could be implemented and apply for visitors only, but IMO it doesn't seem worth the effort for now.
The higher numbers of items per page (e.g. 100) might make more sense if we allowed more images per row. That would either mean making the Browse page have variable width, or allowing the user to additionally specify Normal or Small thumbnail display size.
I don't remember if there's a separate issue for this, but: Also consider making it possible to jump multiple pages at a time. One idea is changing the search form to GET instead of POST (this is good HTTP-form practice anyway). Another idea is showing a few clickable page numbers at the bottom, including a few pages ahead/behind and last page; and/or a 'jump to page X' option.