-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow query string in URL for packages list #355
Comments
Clearly that would require some Javascript tweaks. Perhaps the https://datatables.net library we use even already has support for such a thing? |
I implemented this in be16180 but it is not quite good enough, because the query string is just used in the normal "full text search/filtering". Which is already quite useful and e.g. https://www.gap-system.org/Packages/utils.html now redirects to https://www.gap-system.org/packages/?q=utils and that just shows the "utils" package as desired. But e.g. https://www.gap-system.org/Packages/ace.html redirects to https://www.gap-system.org/packages/?q=ace which shows 28 packages -- "ace" of course occurs in words like "space", "face", "interface". So this is a start but not the end. In principle we can restrict the search to just the first column (just replace Perhaps a better alternative then is to bring back a page that has the only purpose of showing a description of a specific package. Something like https://www.gap-system.org/packages/desc?q=example and the JavaScript on that page renders the table -- but do we really want such pages? |
Can we also make use of keywords in |
There is a very simple way to add it and I created a PR for it. The search term is just written in the URL after a |
BTW the code is completely copied from this discussion and seems to just work: |
@schnellecom nice! but as I wrote above I already implemented something in be16180, but your PR certainly is nicer. But it should then also remove what I added, and adjust the redirects (as set up in my commit). |
Now done with #358 |
It would be great if one could do something like https://www.gap-system.org/packages/?q=library and then that URL would prefill "library" into the search fill.
Perhaps @schnellecom can be motivated to have a look at it ;-)
The text was updated successfully, but these errors were encountered: