From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1Eh4sB-0005Ya-MU for garchives@archives.gentoo.org; Tue, 29 Nov 2005 12:46:16 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jATCk9Rp017087; Tue, 29 Nov 2005 12:46:09 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jATCk8Js030522 for ; Tue, 29 Nov 2005 12:46:08 GMT Received: from smarthost168.mail.easynet.fr ([212.180.1.168] helo=corwin.easynet.fr) by smtp.gentoo.org with esmtp (Exim 4.43) id 1Eh4s3-0002MH-Hn for www-redesign@lists.gentoo.org; Tue, 29 Nov 2005 12:46:07 +0000 Received: from easyconnect2121138-64.clients.easynet.fr ([212.11.38.64] helo=eusebe) by corwin.easynet.fr with esmtp (Exim 4.50) id 1Eh4s1-0008VK-Pr for www-redesign@gentoo.org; Tue, 29 Nov 2005 13:46:05 +0100 Date: Tue, 29 Nov 2005 13:48:38 +0100 From: Thomas de Grenier de Latour To: www-redesign@lists.gentoo.org Subject: [www-redesign] Search bar proposal Message-ID: <20051129134838.703be09d@eusebe> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.7; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: www-redesign@gentoo.org Reply-to: www-redesign@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 9c59a1c3-407d-4f75-ba4e-3b44d151ba66 X-Archives-Hash: 3b80d50e566ef9f01e88e61433385c0b Seen Curtis' blog today... nice to hear there will finally be a search thing on the redesign. So, i have some code to propose for that feature, that i had already mentionned on getoo-dev@ last time it was discussed, but that i have reworked a bit since. It is here in action: http://tdegreni.free.fr/gentoosearch/ With the code actually in a JS file: http://tdegreni.free.fr/gentoosearch/GentooSearch.js The idea is to have a text search field (sure...) plus two levels of select menus to target the search. The second level depends on what was selected on the first: * Website (using Google): -> All www.gentoo.org -> Documentation -> Projects pages -> GWN: Weekly News -> GLEP: Enhanc. Prop. -> GLSA: Security Ann. -> Dev. Handbook -> The Doc -> Dev. pages * Forums (using phpBB): -> All -> ...each individual forum... * Mailing Lists (using GMane): -> All -> ...each ML which has GMane archives... * Bugs (using the bugs.g.o): -> All bugs -> Open bugs -> Closed bugs * Packages (using packages.g.o): -> All (there is not much to refine here) * Wiki (using gentoo-wiki.org): -> English wiki It now has support for I18N, which allows adding/removing/renaming some options of the 2nd select menu depending on the browser language. For now, i've used that for french only, in order to: - rename some entries, like "All" becoming "Tous" - for "Website", add a search for all french pages of www.g.o, one for french documentation, one for french GWN, and one for french dev handbook. - for "Forums", bump the French forum higher in the list - for "Wiki", add search on fr.gentoo-wiki.org The code is now all in the JS file, and only requires an onload event in the HTML page. I had made this change because i was thinking to make it a GreaseMonkey script at the end if there was finally no search form on wwwredesign, but anyway it also has the benefit to show the form only in JS-enabled browsers, which is good since it is required (sure we could think of having a simpler form for non-JS browsers). I think it is now a bit cleaner that it used to be, and would only require little modification to be usable on wwwredesign. If you think it worths it, feel free to do whatever is needed for copyright or license (i've put that code in public domain). And sure i'm available for questions/requests. Hope that helps, -- TGL. -- www-redesign@gentoo.org mailing list