Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox/Mozilla/Konqueror Searchbar for Gentoo Bugzilla
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Mon Jul 05, 2004 8:54 pm    Post subject: Firefox/Mozilla/Konqueror Searchbar for Gentoo Bugzilla Reply with quote

This code will let you search https://bugs.gentoo.org/ by bug number from Firefox or Mozilla's searchbar.

[EDIT] See post below for an additional searchbar option to search bugzilla by text.


For firefox-bin copy it to /opt/firefox/searchplugins
For Mozilla copy it to /usr/lib/mozilla/searchplugins
For Firefox from source, I'm not sure but it probably goes in /usr/lib/firefox/searchplugins

Also copy this icon file to the same directory:
http://dev.gentoo.org/~pythonhead/gentoo_bugs.png

gentoo_bugs.src
Code:

# Gentoo Bugzilla Sherlock for Mozilla
#
# pythonhead at gentoo dot org July 2004
#
# Lets you search http://bugs.gentoo.org by Bug#
<search
   name="Gentoo Bugzilla"
   description="Gentoo's Bugzilla - Enter bug#"
   action="http://bugs.gentoo.org/show_bug.cgi"
   searchForm="http://bugs.gentoo.org/show_bug.cgi"
   method="GET" >

<input name="id" user >

<interpret   

   resultListStart="<!-- RESULT LIST START -->"
   resultListEnd="<!-- RESULT LIST END -->"
   
   resultItemStart="<!-- RESULT ITEM START -->"
   resultItemEnd="<!-- RESULT ITEM END -->"
>
</search>


Last edited by Pythonhead on Tue Jul 06, 2004 5:53 am; edited 3 times in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Mon Jul 05, 2004 9:40 pm    Post subject: Reply with quote

You can achieve similar with konqueror. Fight your way to the web-shortcuts dialog and add entries like these:

Gentoo Bugzilla (search for bug number) wrote:

Search-URI: https://bugs.gentoo.org/show_bug.cgi?id=\{@}
URI-shortcut: genbugno

Gentoo Bugzilla (search for arbitrary string) wrote:

Search-URI: [url=https://bugs.gentoo.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&field0-0-0=product&type0-0-0=substring&value0-0-0=\{@}&field0-0-1=component&type0-0-1=substring&value0-0-1=\{@}&field0-0-2=short_desc&type0-0-2=substring&value0-0-2=\{@}&field0-0-3=status_whiteboard&type0-0-3=substring&value0-0-3=\{@}](put in the link, not the text)[/url]
URI-shortcut: genbug

Now you can search for bug number 4711 by typing "genbugno: 4711" or search for "foo bar-1.4" with "genbug: foo bar-1.4". All without quotes, of course :wink:

If you don't like the basic quicksearch settings, replace Search-URI in the second one with [url=https://bugs.gentoo.org/buglist.cgi?query_format=&short_desc_type=allwordssubstr&short_desc=\{@}&long_desc_type=allwordssubstr&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&status_whiteboard_type=allwordssubstr&status_whiteboard=&keywords_type=allwords&keywords=&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0=]the underlying link[/url] or what you like best. If you don't like konqueror, simply ignore this.
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Mon Jul 05, 2004 11:53 pm    Post subject: Reply with quote

Here's an additonal one that will let you search bugzilla by text instead of bug number. It has an orange-ish looking icon instead of the purple one.

http://dev.gentoo.org/~pythonhead/gentoo_bugs_desc.png

gentoo_bugs_desc.src
Code:

# Gentoo Bugzilla search by text Sherlock for Mozilla
#
# pythonhead at gentoo dot org July 2004
#

<search
   name="Gentoo Bugzilla by text"
   description="Gentoo's Bugzilla - Enter text"
   action="http://bugs.gentoo.org/buglist.cgi"
   searchForm="http://bugs.gentoo.org/buglist.cgi"
   method="GET" >

<input name="query_format" value="">
<input name="short_desc_type" value="allwordssubstr">
<input name="short_desc" user >

<interpret   

   resultListStart="<!-- RESULT LIST START -->"
   resultListEnd="<!-- RESULT LIST END -->"
   
   resultItemStart="<!-- RESULT ITEM START -->"
   resultItemEnd="<!-- RESULT ITEM END -->"
>
</search>

Back to top
View user's profile Send private message
oberyno
Guru
Guru


Joined: 15 Feb 2004
Posts: 467
Location: /bin/zsh

PostPosted: Tue Jul 06, 2004 5:09 am    Post subject: Reply with quote

Woot! :) This is awesome.

BTW, the firefox from source directory is /usr/lib/MozillaFirefox/searchplugins
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum