gbv / coli-ana

API to analyze DDC numbers
https://coli-conc.gbv.de/coli-ana/app/
MIT License
2 stars 0 forks source link

CatalogTitles: show more then 10 results, if available #58

Closed nichtich closed 2 years ago

nichtich commented 2 years ago

Query with limit=11 and allow to increase the limit by clicking on "..." as last list item.

stefandesu commented 2 years ago

I can try to implement this, but there are some issues:

We can still implement it the same way, but 1) clicking on "..." will not append new results, and 2) the more results the user loads, the bigger the data set will get (I don't think this will become much of an issue though).

Edit: We could also add something like a custom sort to emulate the desired behavior, but that would make things a bit more complicated to implement.

nichtich commented 2 years ago

Just reload the whole result set when a larger number is requested.

stefandesu commented 2 years ago

Now implemented. Should we add some kind of loading indicator? Right now the results load so fast that it's not necessary, but it would be bad interface design if it loaded for a few seconds without any indicator after clicking "load more".

nichtich commented 2 years ago

Yes, loading indicator would be good, we already have the Vue component :-)