KorAP / Kalamar

:octopus: Mojolicious-based Frontend for KorAP
BSD 2-Clause "Simplified" License
7 stars 2 forks source link

Add button to jump to random page #141

Closed kupietz closed 2 years ago

kupietz commented 3 years ago

While we cannot sort query results (randomly):

In order to get an overview over the variance of matches it would be nice to easily jump to a random results page.

Maybe by introducing a new button (probably using the fa-random symbol) in the page navigation in right bottom corner.

Akron commented 3 years ago

Like https://github.com/KorAP/Kalamar/issues/5 ?

kupietz commented 3 years ago

Yes, but in this context, even more helpful if you don't have to enter a random page yourself. And the concept of such buttons (usually rather check-button :/) is hopefully not too heavily abused.

Akron commented 3 years ago

I see. Maybe this is quite specific and could be made available as a plugin instead.

kupietz commented 3 years ago

I see. Maybe this is quite specific and could be made available as a plugin instead.

It would indeed be very KorAP specific and also temporal (until results can be sorted). For that reason, I don't know, if this application is general enough to justify a plugin socket.

Akron commented 3 years ago

The major reason to make this a plugin I see is "temporal": When we make it a plugin and have a fairly stable API, users that rely on it (for whatever reason) can keep this functionality, while we don't have to support it in core once we have core-sorting-functionalities. And I think only a few users will be interested, so another minor reason to make this a plugin. The good thing here is: The plugin can be a static js file with no server component required. https://github.com/KorAP/Kalamar/issues/5 could also be a plugin, though I think this is less specific and not temporal.