biigle / label-trees

:m: BIIGLE module to create, edit and manage label trees
0 stars 0 forks source link

Allow pagination for WoRMS import #9

Closed mzur closed 7 years ago

mzur commented 7 years ago

WoRMS limits its output to 50 entries. There is the offset option to load more entries. Implement a "load more" button to the WoRMS import if there were no fewer than 50 results. Hide the button once fewer than 50 results are returned.

Example: Ophiomusium

mzur commented 7 years ago

The current implementation of label sources only allows for a query parameter. For the "load more" button we'd need an offset parameter, too. That would require changes in biigle/core and might not be worth the effort.

I've now implemented a loop that fetches a maximum of 500 results from WoRMS (instead of the previous 50). Maybe this is enough for all use cases. If not we need to revise this issue and implement the pagination after all.