[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#103975: marked as done (Sherlock searchability (Mozilla 'Search' sidebar))



Your message dated Fri, 06 Apr 2012 18:04:58 -0400
with message-id <4F7F688A.5030802@debian.org>
and subject line OpenSearch plugin coming soon on your screen
has caused the Debian Bug report #103975,
regarding Sherlock searchability (Mozilla 'Search' sidebar)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
103975: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=103975
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: www.debian.org
Severity: wishlist

Hi.  I think it'd be just swell if you could search packages.debian.org
and the bugs database through the 'Search' sidebar in Mozilla.  And, in
fact, one can without too much effort.  (See attatched Sherlock
extension files.)  But it would work even BETTER with just a little help
from the server side of things.

All we needs is a few HTML comments thrown into the output stream, one
before and after each result in the list.  e.g. <!-- resultItemStart -->
and <!-- resultItemEnd -->, or <!-- Chocolate! --> <!-- Vanilla! -->,
just so long as these identifiers are distinct.

For bugs, it'd also be handy to have a 'GET' interface that works the
same way the url-redirection queries work, i.e. have a single url that
you can perform a get-action on, with just one input parameter, which
may take the form of number/package/maint@email/from:sumbitter@email,
e.g.
 http://bugs.debian.org/supersearch?q=1235
 http://bugs.debian.org/supersearch?q=reportbug
doing the same thing as 
 http://bugs.debian.org/1235
 http://bugs.debian.org/reportbug

the reason for this being that these search gizmos are made to submit
get requests instead of doing URL construction.

Once this works well, the Mozilla maintainer may choose to include these
search extensions in the browser package, or the webmaster may put up a
little page with a javascript 'click here to install the debian package
search tab', as described on
http://www.mozilla.org/projects/search/technical.html

Thanks,

 - Kevin Turner
 <acapnotic@foobox.net>

(Note: sherlock is not a mozilla-specific thing, I think it was born in
MacOS and Konq might support it too, though I'm not sure.)
<SEARCH
    name="Debian packages"
    method="get"
    action="http://packages.debian.org/cgi-bin/search_packages.pl";
    description="Search through the names and descriptions of packages in the whole Debian package database."
>

<INPUT name="keywords" user />
<INPUT name="searchon" value="all" />
<INPUT name="subword" value="1" />
# XXX - customize version
<INPUT name="version" value="all" />
<INPUT name="release" value="all" />

# XXX - ItemStart and ItemEnd markers suck.
<INTERPRET
    browserResultType = "result"
    resultListStart = "<table"
    resultListEnd = "</table"
    resultItemStart = '<tr VALIGN="top">'
    resultItemEnd = 'k)'
/>

</SEARCH>
<SEARCH
    name="Debian filenames"
    method="get"
    action="http://packages.debian.org/cgi-bin/search_contents.pl";
    description="Search for a filename in all Debian packages in the unstable i386 distribution."
>
    
<INPUT name="word" user />
<INPUT name="casesens" value="insensitive" />
# XXX - customize distro
<INPUT name="distro" value="unstable" />
# XXX - customize arch
<INPUT name="arch" value="i386" />
<INPUT name="incdirs" value="yes" />

# XXX - no tag marking item-start or end!
#     resultItemStart = "<b class=title"
#     resultItemEnd = '<hr size=1 width="100%" align=left>'
<INTERPRET
    browserResultType = "result"
    resultListStart = "<pre>"
    resultListEnd = "</pre>"
/>

</SEARCH>

--- End Message ---
--- Begin Message ---
Hi,

Le 14/04/2011 01:12, Brian Herman a écrit :
[…]
> <Url type="text/html" method="get" template="
> http://search.debian.org/cgi-bin/omega?P={searchTerms}"/>
> <Url type="text/html" method="get" template="
> http://packages.debian.org/search?keywords={searchTerms}&searchon=names&suite=stable&section=all
[…]
> <Url type="text/html" method="get" template="
> http://bugs.debian.org/cgi-bin/pkgreport.cgi?package={searchTerms}"/>
> </OpenSearchDescription>

Multiple URLs doesn't seem supported (but multiple plugins can be added
for one page), and such OpenSearch plugin for packages.d.o or bugs.d.o
should probably be a better fit on their own website than on www.d.o
(the packages.d.o one is already distributed with Iceweasel BTW).

Thanks to Raphael's help (who also just added one for the PTS, see
#477347), we just added such a plugin, with i18n and l10n support. It
will be online tomorrow (a full rebuild is needed, since the header
changes on every page).

Regards

David, on behalf of the “Better Late Than Never Team”

P.-S.: the “Better Late Than Never Team” is looking for contributors for
its “Over Ten Years Old Bugs of the Week” initiative.


Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply to: