Summary: | doesn't seem to be a way to search packages.gentoo.org from a text-only browser | ||
---|---|---|---|
Product: | Gentoo Infrastructure | Reporter: | Donald <dcljr> |
Component: | [OLD] gpackages | Assignee: | Gentoo Packages Website <gpackages> |
Status: | RESOLVED OBSOLETE | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to packages.git according to Donald's comments |
Description
Donald
2014-08-29 14:54:49 UTC
patches welcome. I have no idea how to submit a patch for a website, but looking at how the current search feature is implemented, it seems that the fix can be as simple as replacing this line (number 43 in the HTML source of the homepage): <div id="cse" style="width: 100%;">Loading</div> by this: <div id="cse" style="width: 100%;"> <form class="search" method="GET" action="http://www.google.com/search"> <input type="text" name="as_q" value="" size="16" maxlength="127"> <input type="hidden" name="hl" value="en"> <input type="hidden" name="as_sitesearch" value="packages.gentoo.org"> <input type="submit" value="Search"> </form> </div> (No <noscript> needed. Javascript-enabled browsers will replace the GET search box by the fancy Javascript one, just like they replace the word "Loading" now.) This can be made more or even less complicated, as desired. (In particular, the size= and maxlength= attributes and the "hl" parameter aren't strictly necessary, and there may be other parameters I don't know about that, for example, make Google return search results with secure links to https://packages.gentoo.org/ -- the code above only returns normal http:// links, even when action="https://www.google.com/search" is used.) BTW, if you're making a mockup of this to look at (not changing the actual website itself), you might also want to: s/="\/media/="http:\/\/packages.gentoo.org\/media/ to the HTML source, so the stylesheet and site logo will be loaded. I coulda sworn something like this used to be on the site before the current Javascript-based search. If so, then maybe just put the old search-box HTML code in the "cse" div in place of what I have above. bump... Come on, it shouldn't take more than 4 months to make this trivial change. Coming up on a full year. Unbelievable... Created attachment 409292 [details, diff]
Patch to packages.git according to Donald's comments
Thank you for your patch. With the upcoming site relaunch that is based on new code, we no longer rely on Google to do package searching. As such, this issue is obsolete. |